IMSL C# Numerical Library

Cdf.PoissonProb Method 

Evaluates the Poisson probability density function.

public static double PoissonProb(
   int k,
   double theta
);

Parameters

k
An int specifying the argument for which the Poisson probability function is to be evaluated.
theta
A double specifying the mean of the Poisson distribution.

Return Value

A double specifying the probability that a Poisson random variable takes a value equal to k.

Remarks

Method PoissonProb evaluates the probability function of a Poisson random variable with parameter theta. theta, which is the mean of the Poisson random variable, must be positive. The probability function (with \theta = theta) is

f(x) = e^{- \theta} \,\,\theta ^k /k!,\,\,\,\,\, 
            for\,k = 0,\,\,1,\,\,2,\, \ldots

PoissonProb evaluates this function directly, taking logarithms and using the log gamma function.

Poisson ProbabilityFunction

See Also

Cdf Class | Imsl.Stat Namespace | Example