The binomial distribution requires independent trials with a constant probability of success ā a condition that quietly breaks whenever items are drawn from a finite population without replacement, since removing an item changes the composition of what's left. When that violation is severe enough to matter, the correct tool is the hypergeometric distribution ā the binomial's close cousin, purpose-built for exactly this situation.
- What makes a situation hypergeometric rather than binomial
- The formula, and a full worked example in quality control
- The distribution's mean and variance
- When the binomial distribution is still a safe approximation, and when it isn't
Binomial vs. Hypergeometric: The Core Difference
Both distributions count the number of "successes" in a fixed number of draws from a population containing two types of items. The difference is entirely about replacement: the binomial distribution assumes each draw is independent, with the same success probability every time (true when sampling with replacement, or when drawing from an effectively infinite population). The hypergeometric distribution instead tracks a population of fixed, known size, where each draw removes an item and genuinely changes the probabilities for every draw that follows ā sampling without replacement from a finite population.
The Formula
For a population of size N containing K "success" items (and NāK "failure" items), the probability of finding exactly k successes in a sample of n items drawn without replacement is:
The numerator counts the number of ways to choose exactly k successes from the K available successes, multiplied by the number of ways to choose the remaining nāk draws from the NāK available failures. The denominator, C(N,n), is the total number of equally likely ways to choose any n items from the full population of N ā the same combinatorics that underpin the binomial formula's C(n,k) term, just applied to the whole finite population instead of trial-by-trial.
Worked Example: Quality Control Sampling
Problem: A shipment contains 50 parts, of which 10 are defective. An inspector randomly selects 5 parts without replacement for testing. What's the probability that exactly 2 of the 5 selected parts are defective?
Here N = 50 (total parts), K = 10 (defective parts), n = 5 (sample size), k = 2 (defectives found).
C(10,2) = 45. C(40,3) = 9,880. C(50,5) = 2,118,760.
P(X=2) = (45 Ć 9,880) / 2,118,760 = 444,600 / 2,118,760 ā 0.2098
There's roughly a 21% chance the inspector's sample contains exactly 2 defective parts. For comparison, the full distribution across all possible outcomes: P(X=0) ā 0.3106, P(X=1) ā 0.4313, P(X=2) ā 0.2098, P(X=3) ā 0.0442, with smaller probabilities for X=4 and X=5 ā these five values sum to 1, as any complete probability distribution must.
Mean and Variance
For the quality control example: μ = 5 Ć (10/50) = 1.0 ā on average, an inspector examining 5 parts from this shipment expects to find exactly 1 defective one. The variance is ϲ = 5 Ć 0.2 Ć 0.8 Ć (45/49) ā 0.735, giving Ļ ā 0.857.
Notice the mean formula, nĀ·(K/N), looks identical to the binomial mean np (since K/N plays the role of p here) ā but the variance carries an extra factor, (Nān)/(Nā1), called the finite population correction. This term is always less than 1 (as long as n > 1), meaning a hypergeometric distribution always has less variance than a binomial distribution with the matching p ā sampling without replacement is inherently more consistent than sampling with replacement, because it can't draw the same "lucky" or "unlucky" item twice.
When the Binomial Is a Safe Approximation
As the finite population correction term shows, when the population N is very large relative to the sample size n, (Nān)/(Nā1) gets very close to 1, and the hypergeometric distribution converges toward the binomial distribution with p = K/N. In the worked example above, n=5 is exactly 10% of N=50 ā right at the common rule-of-thumb boundary (sample should be under about 10% of the population) for when a binomial approximation starts becoming unreliable. Treating the same problem as binomial with p=10/50=0.2 gives P(X=2) = C(5,2)Ć0.2²Ć0.8³ ā 0.2048 ā close to the exact hypergeometric value of 0.2098, but not identical, illustrating exactly how the approximation degrades as the sample size approaches a meaningful fraction of the population.
A Second Worked Example: Card Drawing
Problem: Four cards are drawn from a standard 52-card deck without replacement. What's the probability of drawing exactly 2 hearts (there are 13 hearts in a standard deck)?
N = 52, K = 13, n = 4, k = 2.
P(X=2) = [C(13,2) Ć C(39,2)] / C(52,4) = (78 Ć 741) / 270,725 ā 0.2135
There's roughly a 21.4% chance of drawing exactly 2 hearts in a random 4-card hand ā a calculation that underlies odds computations across many card games, where drawing without replacement is the entire point of the game and the binomial distribution would give a meaningfully wrong answer if mistakenly applied.
Real-World Uses
Quality control and acceptance sampling: exactly the scenario in the worked example ā inspecting a sample from a finite batch to decide whether to accept or reject the whole shipment, standard practice in manufacturing.
Lottery and card game probabilities: any game built around drawing without replacement from a fixed, known set of items uses hypergeometric logic under the hood, even when players never see the formula explicitly.
Capture-recapture population estimation: ecologists estimating an animal population's size by tagging some individuals, releasing them, then recapturing a new sample use the hypergeometric distribution's structure to work backward from the recapture data to an estimate of the total population.
Common Mistakes
Applying the binomial formula when the sample is a large fraction of the population. The 10%-of-population rule of thumb exists precisely because this is where the approximation error becomes large enough to matter ā always check this ratio before defaulting to the simpler binomial formula.
Forgetting the finite population correction when computing variance. Using the plain binomial variance formula np(1āp) for a without-replacement scenario overstates the true variability, since it ignores the (Nān)/(Nā1) correction that without-replacement sampling introduces.
Mixing up which quantity is N and which is n. N is the total population size; n is the sample size drawn from it. Swapping them produces a nonsensical calculation (often literally impossible, since combinations require the "choose" number to be no larger than the total) rather than just a wrong number, which is usually a quick way to catch the error.
Can K be larger than n, or must it always be smaller?
Is the hypergeometric distribution discrete or continuous?
What happens to the hypergeometric distribution as N approaches infinity?
Why does sampling without replacement reduce variance compared to sampling with replacement?
Share this article
Written by
Statistics Fundamentals Editorial Team
Written and reviewed by our team of statistics educators. Content is aligned with GCSE, A-Level, AP Statistics, and undergraduate curricula.
About Statistics Fundamentals ā