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 licensed for personal use only.

Download ALGLIB for C++ / C# / Java / Python / ...

ALGLIB Project offers you two editions of ALGLIB:

ALGLIB Free Edition:
+delivered for free
+offers full set of numerical functionality
+extensive algorithmic optimizations
-no multithreading
-non-commercial license

ALGLIB Commercial Edition:
+flexible pricing
+offers full set of numerical functionality
+extensive algorithmic optimizations
+high performance (SMP, SIMD)
+commercial license with support plan

Links to download sections for Free and Commercial editions can be found below:

ALGLIB 4.01.0 for C++

C++ library.
Delivered with sources.
Monolithic design.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.01.0 for C#

C# library with native kernels.
Delivered with sources.
VB.NET and IronPython wrappers.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.01.0 for Java

Java wrapper around HPC core.
Delivered with sources.
Seamless integration with Java.
Editions:   FREE   COMMERCIAL

ALGLIB 4.01.0 for Delphi

Delphi wrapper around C core.
Delivered as precompiled binary.
Compatible with FreePascal.
Editions:   FREE   COMMERCIAL

ALGLIB 4.01.0 for CPython

CPython wrapper around C core.
Delivered as precompiled binary.
Editions:   FREE   COMMERCIAL