Hypergeometric distribution
The hypergeometric distribution counts successes in a sample drawn without replacement from a finite population with a known number of successes.
- population size
- number of successes in the population
- sample size (drawn without replacement)
- number of successes in the sample
- the finite population correction factor (squared FPC): sampling without replacement reduces the variance
When to use
Drawing without replacement from a small population: cards from a deck, a batch inspected for defectives, people selected for a committee. It is also the null distribution behind Fisher's exact test.
Assumptions
Every subset of size is equally likely (a simple random sample) and the population counts and are known.
How to interpret
- Same mean as the binomial with , but a smaller variance, by the factor .
- When is under about 10% of , the binomial gives nearly the same answers.
Common mistakes
- Using the binomial when a large fraction of the population is sampled, which overstates the variability.
- Mixing up (successes in the population) and (successes in the sample).
Example
A batch of parts contains faulty ones; are inspected. ; . The binomial approximation (, ) would give , noticeably off because 20% of the batch is sampled.