Introduction
When objects are drawn from a fixed group without being put back, each draw changes what remains. The hypergeometric model describes this situation by calculating the probability of getting a particular number of selected items in a sample. It is useful for questions about cards, quality checks, survey samples, and any other finite group where the items are chosen without replacement.
What the hypergeometric model describes
The hypergeometric model is a probability model for counting how many items with a particular feature appear in a sample drawn from a finite population. A population, in this context, simply means the complete group under consideration. The key condition is that sampling happens without replacement: once an item is chosen, it is not returned before the next draw.
Imagine a box containing 20 objects, of which 7 are marked. If 5 objects are selected, the model can answer questions such as, “What is the probability that exactly 2 selected objects are marked?” The number of marked objects drawn is the outcome being counted; the identities and order of the individual objects do not matter.
This setting differs from repeated independent trials. In independent trials, the chance of success stays the same from one trial to the next. In a draw without replacement, the chance changes as the contents of the group change. The hypergeometric model takes that changing composition into account.
The three main parameters
A hypergeometric problem is usually described by three quantities:
N is the population size: the total number of items in the group.
K is the number of items with the feature of interest, often called “successes” in probability notation. Here, success is just a label for the category being counted; it does not imply that the outcome is desirable.
n is the sample size: the number of items drawn.
The random variable X represents the number of items with the feature in the sample. Its possible values depend on what the population and sample sizes allow. For example, a sample cannot contain more marked objects than exist in the population, and it cannot contain fewer than zero.
More precisely, the smallest possible value of X is the greater of zero and n − (N − K). The largest is the smaller of n and K. These limits matter when a sample is large or a category is rare: some apparently imaginable counts are impossible.
The probability formula
The probability of drawing exactly x items with the feature is given by:
P(X = x) = [C(K, x) × C(N − K, n − x)] / C(N, n)
Here, C(a, b), read as “a choose b,” counts the number of ways to select b items from a items when order does not matter. The numerator counts the favorable samples: choose x of the K marked items, then choose the remaining n − x items from the N − K unmarked ones. The denominator counts every possible sample of size n from the whole population.
This ratio works because each sample of n distinct items is treated as equally likely. It is a counting argument rather than an assumption that the draws are independent.
A worked example
Return to the box with 20 objects, 7 marked and 13 unmarked. Five objects are selected without replacement. To find the chance of getting exactly 2 marked objects, set N = 20, K = 7, n = 5, and x = 2:
P(X = 2) = [C(7, 2) × C(13, 3)] / C(20, 5)
There are C(7, 2) ways to choose the two marked objects and C(13, 3) ways to choose the three unmarked ones. Multiplying gives 6,006 favorable samples. There are 15,504 possible samples of five objects altogether, so the probability is 6,006 / 15,504, or about 0.387. In other words, under these assumptions, roughly 38.7 percent of equally likely samples contain exactly two marked objects.
The word “exactly” is important. To find the probability of at least two marked objects, add the probabilities for two, three, four, and five marked objects. To find the probability of at most two, add the probabilities for zero, one, and two. The same formula supplies each individual probability, provided the value is possible.
Why draws without replacement are dependent
Suppose the first object drawn from the box is marked. The remaining group then has 19 objects, with 6 marked. The probability that the next draw is marked is now 6/19, rather than the original 7/20. If the first object is unmarked, the next-draw probability instead becomes 7/19.
Thus, the outcomes of successive draws are dependent: knowing what happened on an earlier draw gives information about the composition left for later draws. The hypergeometric formula handles this dependence by counting complete samples from the original group. It does not require calculating each possible sequence of draws one at a time.
Although the probability changes after each draw, the final sample still has a simple description when order is ignored. Every distinct subset of n items has the same chance of being selected, assuming the selection process is fair. That is why combinations provide a direct route to the probability.
Expected count and variation
The expected number of marked items in a sample is:
E(X) = nK/N
This is the average count one would approach over many comparable samples; it need not be a whole number or the count most likely in any single sample. In the example, the expected count is 5 × 7/20 = 1.75 marked objects.
The variance, which measures how spread out the counts tend to be around their mean, is:
Var(X) = n(K/N)(1 − K/N) × (N − n)/(N − 1)
The term (N − n)/(N − 1) is called the finite population correction in this setting. It reflects the fact that sampling a substantial part of a finite group leaves less uncertainty than repeatedly drawing from an effectively unlimited source. When the sample is tiny compared with the population, this adjustment is close to 1. When the sample approaches the entire population, the count becomes much more constrained.
How it differs from the binomial model
The binomial model also counts successes across a fixed number of trials, but it assumes that trials are independent and that the success probability remains constant. It is therefore a natural fit for repeated draws with replacement, or for situations where the population is so large relative to the sample that removing a few items has a negligible effect.
The hypergeometric model instead fits a fixed, finite population sampled without replacement. If 5 items are drawn from a group of 20, removing each one can noticeably change the group’s composition. If 5 are drawn from a group of millions, the change may be so small that a binomial approximation is convenient. The approximation’s adequacy depends on the relative sample size and the precision needed; it is not a reason to ignore the actual sampling process.
A useful practical question is therefore: does the probability of the feature change meaningfully after an item is removed? If yes, the hypergeometric model is often appropriate. If not, a binomial model may provide a simpler approximation.
Applications in everyday analysis
Quality inspection: A batch contains a known number of items, some of which are defective. An inspector selects a sample without replacement and considers the probability of finding a specified number of defects. The model describes the sampling count, though decisions about acceptable quality require additional rules.
Cards and other collections: A card hand is a sample from a fixed deck. To calculate the chance of a hand containing a certain number of cards from a category, such as a suit, the hypergeometric model captures the fact that dealt cards are not returned during the deal.
Survey sampling: Researchers may select a fixed number of people from a defined group and count how many belong to a particular category. The model is relevant when selection is random and without replacement. Real surveys can involve nonresponse, unequal selection chances, or other design features, so the basic model may not describe them fully.
Ecology and inventory: The same mathematics can describe a sample of organisms from a known collection or items selected from a stock. In each case, it is the finite group, the feature being counted, and the sampling method that determine whether the model fits.
Assumptions and common mistakes
The basic model assumes that the population size and the number of feature-bearing items are known, that the sample is drawn without replacement, and that each possible sample of the specified size is equally likely. If some items are more likely to be selected than others, or if the group changes during sampling, the simple formula may not apply directly.
A frequent mistake is to use the total population as K or to confuse the number of draws with the number of feature-bearing items. Keeping the roles clear helps: N describes the whole group, K describes the category, and n describes the sample. Another common error is to treat “at least” as if it meant “exactly.” “At least two” requires adding all allowed probabilities from two upward.
It is also important to distinguish a random sample from a convenient selection. A formula can calculate probabilities only under its assumptions; it cannot make a biased or nonrandom selection representative. Finally, probabilities refer to a long-run pattern across comparable sampling situations, not a guarantee about one particular sample.
Conclusion
The hypergeometric model gives a precise way to calculate how many items of a chosen category appear when a sample is drawn without replacement from a finite group. Its formula compares favorable combinations with all possible samples, while its parameters make the population, category, and sample size explicit. Recognizing the model’s assumptions helps distinguish it from the binomial model and apply it sensibly to real sampling questions.

