Binomial Approximation to a Hypergeometric Random Variable

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

If balls are sampled from a bin containing balls of which are marked, then the distribution of the number of marked balls in the sample depends on whether the sampling is done with or without replacement.

[more]

If the sampling is done with replacement, the number of marked balls is a binomial random variable, while if the sampling is done without replacement, then this quantity is a hypergeometric random variable. However, if the number of balls sampled is small relative to the number of balls in the bin, it makes little difference how the sampling is done.

The probability histogram for the binomial random variable is colored orange, and the hypergeometric random variable is blue. A measure of agreement between the two is obtained by computing the purple area—100% would represent complete agreement between the two distributions.

[less]

Contributed by: