Contents
Main
Site map
Links
Site and author
News
Contact

Poisson distribution

Poisson distribution is a discrete distribution, one of the most important limiting cases of binomial distribution. The binomial distribution converges towards the Poisson distribution as the number of trials goes to infinity while the product np=λ remains fixed. Therefore, random variable having Poisson distribution with parameter λ takes non-negative values with probability

Cumulative distribution function is

Parameter λ is both mean and variance of a random variable.

Classical example of a random variable having Poisson distribution is a number of cars which pass through a road section in a given period of time. We can also mention such examples as a number of stars in the given area of the sky, a number of errors in the text of a given length, a number of phone calls in a call-center, number of web-server requests in a given period of time.

Algorithms

PoissonDistribution and PoissonCDistribution are used to calculate the areas under the left and right tails of the graph (i.e. to calculate the cumulative distribution function and its own complement). InvPoissonDistribution subroutine calculates the inverse cumulative distribution function (finds such λ that Fλ (x)=y).

This article is intended for personal use only.

Download ALGLIB

C#

C# source.

alglib-2.4.0.csharp.zip

 

C++

C++ source.

alglib-2.4.0.cpp.zip

 

C++, multiple precision arithmetic

C++ source. MPFR/GMP is used.

GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.

alglib-2.4.0.mpfr.zip

 

FreePascal

FreePascal source.

alglib-2.4.0.freepascal.zip

 

Delphi

Delphi source.

alglib-2.4.0.delphi.zip

 

Visual Basic

VBA source.

alglib-2.4.0.vb6.zip

 


 
 
Sergey Bochkanov, Vladimir Bystritsky
Copyright © 1999-2010