Hypergeometric distribution
Profile
The Hypergeometric distribution counts successes when sampling without replacement from a finite population. Dependence between draws is exactly what separates it from Binomial.
| Sampling | Natural model |
|---|---|
| replacement / independent | Binomial |
| without replacement, finite population | Hypergeometric |
| large population, small fraction | Binomial approximation |
Origin and terminology
The distribution became established in finite-population sampling, urns, and contingency tables. Its exact-inference role is associated with Fisher and tests of association.
In real models
- quality control without returning sampled items
- card selection, genetics, and fixed-margin contingency tables
Comparisons
Check that K and n match the data’s population and sample roles; swapping them changes probabilities.
An urn that remembers every draw
Imagine a box containing conforming and defective parts. Once a part is drawn without replacement, the composition of the box changes. That physical memory produces the Hypergeometric distribution and separates it from the Binomial experiment, which keeps the same probability on every trial.
The finite population correction reduces variance when the sample is an appreciable fraction of the population. If the population is enormous compared with the sample, that effect fades and the Binomial becomes a reasonable approximation. The same logic underpins Fisher’s exact test when table margins are treated as fixed. In auditing and quality control, ignoring sampling without replacement will often overstate uncertainty.
Decision guide
A good candidate when: successes are counted while sampling without replacement from a finite population of known composition.
Compare it with: Binomial with replacement or a negligible sampling fraction. The finite-population correction reduces variance and should not be ignored for large sampling fractions.
References
- SciPy reference: scipy.stats.hypergeom — definition and parameterization
- Johnson, N. L., Kemp, A. W. & Kotz, S. (2005). Univariate Discrete Distributions, 3rd ed. Wiley.
- Fisher, R. A. (1935). The Design of Experiments. Oliver and Boyd.
- Hald, A. (1990). A History of Probability and Statistics and Their Applications before 1750. Wiley.