Hypergeometric Distribution Explained with Worked Examples

Drawing items without replacement from , of which are special, the number of special items drawn has , mean and variance .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Hypergeometric distribution means

A batch of has defective items; we inspect . and . The mean is and the variance . The binomial coefficients are the counts of binomial coefficients and combinations.

Unlike the binomial distribution (the binomial distribution), the trials are dependent, because each draw changes the composition. The factor in the variance (the finite population correction) shrinks it relative to the binomial value . When is large compared with , the hypergeometric is close to the binomial with .

Applications include quality control, lotteries (matching numbers), card hands and capture–recapture estimates (capture–recapture). The counting argument is the same as for the multiplication rule and the counting product rule.

What is it used for?

The hypergeometric distribution gives exact probabilities when sampling without replacement.

How to use hypergeometric distribution

  1. Identify , , and .
  2. Compute , and .
  3. Divide.
  4. Use mean and the finite population correction for the variance.

Graph

P(X = k) for N = 50, K = 10, n = 5, k = 0 to 3k = 0: 0.3106k = 1: 0.4313k = 2: 0.209800.511.522.533.544.5500.10.20.30.40.5P(X = k) for N = 50, K = 10, n = 5, k = 0 to 3k + 1yGraph with x from 0 to 5 and y from 0 to 0.5. Shows bars (4); point k = 0: 0.3106 at (1, 0.3106); point k = 1: 0.4313 at (2, 0.4313); point k = 2: 0.2098 at (3, 0.2098).

Most samples contain one or no defective items.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: exactly two defective

Find for , , .

Worked example
Answer
0.20980.2098
  1. Counts
  2. Total

Example 2: none defective

Find .

Worked example
Answer
0.31060.3106
  1. Formula

Example 3: variance

Find the variance of .

Worked example
Answer
0.73470.7347
  1. Formula

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

N = 20, K = 8, n = 5, k = 2

C(8,2)C(12,3)/C(20,5)

0.3973.

Mean

nK/N

2.

Variance

n(K/N)(1 − K/N)(N − n)/(N − 1)

0.9474.

Finite population factor

(N − n)/(N − 1)

15/19 = 0.7895.

Word problems

Drawing n items without replacement from N with K special: P(X = k) = C(K, k)C(N − K, n − k)/C(N, n), mean nK/N, variance n(K/N)(1 − K/N)(N − n)/(N − 1).

Probability

Find P(X = 2) for N = 20, K = 8, n = 5.

  1. 28 × 220 ÷ 15504
  2. Check: ✓0.3973

Mean

Find nK/N.

  1. 5 × 0.4
  2. Check: ✓2

Variance Higher

Find the variance.

  1. 5 × 0.4 × 0.6 × 15/19
  2. Check: ✓0.9474

Correction Higher

Find the finite population factor.

  1. 15/19
  2. Check: ✓0.7895

Common mistakes

Using the binomial

independent draws ✗

hypergeometric for no replacement ✓

Probabilities change.

Missing the correction

npq ✗

npq(N − n)/(N − 1) ✓

Smaller variance.

Wrong denominator

C(N, k) ✗

C(N, n) ✓

Total samples.

k > K

allowed ✗

k ≤ min(n, K) ✓

Support.

Exam tips

  1. C(K,k)C(N−K,n−k)/C(N,n).
  2. Mean nK/N.
  3. Finite population correction.
  4. Large N: binomial.
  5. Check k ≤ K.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. C(8,2) Foundation

28

2. C(12,3) Foundation

220

3. C(20,5) Foundation

15504

4. Mean N=30, K=12, n=10 Higher

4

5. P(X=1) N=10, K=4, n=3 to 4 d.p. Higher

0.5

6. P(X=3) N=10, K=4, n=3 to 4 d.p. Higher

0.0333

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Hypergeometric distribution
Counts successes without replacement.
Population (N)
Total items.
Special items (K)
Successes in the population.
Sample (n)
Items drawn.
Finite population correction
(N − n)/(N − 1).
Without replacement
No repeats.

Frequently asked questions

What is the hypergeometric distribution?

The count of special items when sampling without replacement.

What is its mean?

nK/N.

How does it differ from the binomial?

Draws are not independent.

When does it approximate a binomial?

When N is much larger than n.

Which page covers the multinomial?

multinomial distribution.

Which page covers binomial coefficients?

binomial coefficient.

More in Advanced statistics and stochastic processes and the formula sheets.