Hypergeometric distribution
An urn with balls, of them red. You draw without replacement. How many reds do you expect to pull?
Hypergeometric PMF Binomial
approximation
What to notice
- Binomial convergence. The dashed red caps show Binomial(K, m/N). When the population is large relative to the sample size, the with-replacement and without-replacement distributions are nearly indistinguishable. Crank N up while keeping m/N fixed to watch them merge.
- The finite-population correction. The hypergeometric variance carries an extra factor of that the Binomial lacks. At K = N (you drew everything) the variance is zero — there’s no randomness left.
- Support is narrower than it looks. You can only draw between and successes. Extreme slider values make the support shrink to a single point.
Where it matters
- Quality inspection. Pulling K items from a batch of N and counting defects.
- Card games. “What’s the chance of drawing 3 aces in a 5-card hand?” is Hypergeometric(52, 4, 5).
- Capture-recapture. Tag m fish, release them, then re-sample K; the count of tagged fish in the second sample is hypergeometric. Inverting gives the Lincoln-Petersen estimate of the population size.