Contents
Main
Site map
Links
Site and author
News
Contact

Binomial distribution

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:

Algorithms

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.

Links

  1. http://mathworld.wolfram.com/BinomialDistribution.html

This article is intended for personal use only.

Download ALGLIB

C#

C# source.

alglib-2.3.0.csharp.zip

 

C++

C++ source.

alglib-2.3.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.3.0.mpfr.zip

 

FreePascal

FreePascal source.

alglib-2.3.0.freepascal.zip

 

Delphi

Delphi source.

alglib-2.3.0.delphi.zip

 

Visual Basic

VBA source.

alglib-2.3.0.vb6.zip

 


 
 
Sergey Bochkanov, Vladimir Bystritsky
Copyright © 1999-2010