Advertisement

Hypergeometric distribution calculator

Count successes in a random sample drawn without replacement. Every population item must have the same chance of being selected.

Calculator

Value
1.000000
Density or probability mass
0.500000
P(X ≤ x)
66.666667%
P(X > x)
33.333333%
Selected probability
66.666667%
Mean
1.200000
Variance
0.560000
Standard deviation
0.748331

Advertisement

How this calculator works

The numerator counts ways to select the requested successes and the remaining failures. The denominator counts all samples of that size. The finite population factor reduces variance relative to independent sampling. The numerical limits are one million population items and 10,000 draws. Sampling the whole population makes the count certain.

Formula

P(X=k) = C(K,k)C(N-K,n-k)/C(N,n); E[X] = nK/N; Var[X] = n(K/N)(1-K/N)(N-n)/(N-1).

Worked example

With N = 10, K = 4 and n = 3, exactly two successes have probability 36/120 = 0.3. At most one has probability 80/120 = 2/3.

Advertisement

Frequently asked questions

When should I use binomial instead?

Use binomial for independent sampling or sampling with replacement.

Can all draws be successes?

Only if the population contains at least as many successes as draws.

Why is the variance smaller?

Removing an item changes the remaining composition, creating negative dependence.

Sources

Advertisement