PoissonDistribution<T>

Models & Types · AiDotNet.Distributions

Represents a Poisson probability distribution.

Inheritance: DistributionBase<T> → PoissonDistribution<T>

For Beginners

The Poisson distribution is for counting rare events, like:

  • Number of customers arriving per hour
  • Number of typos on a page
  • Number of earthquakes per year

It’s characterized by just one parameter λ (lambda), which is both the mean and variance. If the variance of your count data is much larger than the mean, consider Negative Binomial instead.

How It Works

The Poisson distribution models the number of events occurring in a fixed interval of time or space when these events occur with a known constant mean rate and independently of each other.

PMF: P(X = k) = (λ^k * e^(-λ)) / k!

Constructors

Constructor Summary
PoissonDistribution(T lambda) Initializes a new Poisson distribution with specified rate.

Properties

Property Summary
T Lambda { get; } Gets the rate parameter (λ).
T Mean { get; }
T Variance { get; }
Vector<T> Parameters { get; set; }
int NumParameters { get; }
string[] ParameterNames { get; }

Methods

Method Summary
Matrix<T> FisherInformation()
T Cdf(T x)
T InverseCdf(T p)
T LogPdf(T x)
T LogPmf(int k) Computes the log probability mass function at integer k.
T Pdf(T x)
T Pmf(int k) Computes the probability mass function (PMF) at integer k.
T Sample(Random random)
Vector<T> GradLogPdf(T x)