![]() |
Binomial distribution B(n,p) is a distribution of a number of successes in a sequence of n experiments, each of which yields success with probability p. Important limiting cases of this distribution are Poisson distribution and normal distribution.
If X - binomial random variable:

BinomialDistribution and BinomialCDistribution subroutines calculate P(x ≤ k) and P(x > k) with given n, p and k. Subroutines use the above mentioned formula which calculates the cumulative distribution function by using an incomplete beta-function.
This article is intended for personal use only.
C# source.
C++ source.
C++ source. MPFR/GMP is used.
GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.
FreePascal version.
Delphi version.
VB.NET version.
VBA version.
Python version (CPython and IronPython are supported).
|
ALGLIB® - numerical analysis library, 1999-2012. |