Hypergeometric Distribution
Deal cards and count the hearts. Pick a committee of from a club and count the Grade 12s. In both cases, once something is chosen it can’t be chosen again, so the trials are dependent and the binomial formula doesn’t apply. The hypergeometric distribution handles this kind of counting: sampling without replacement.
Key ideas
Section titled “Key ideas”When is it hypergeometric?
Section titled “When is it hypergeometric?”A random variable has a hypergeometric distribution when:
- you choose items without replacement from a population of items;
- of the items are “successes” and the other are “failures”;
- is the number of successes you choose.
Because nothing is put back, the probability of a success changes from one pick to the next. That’s what makes the trials dependent.
The formula
Section titled “The formula”This is just probability with counting:
- counts all the ways to choose items from (the sample space);
- counts the ways to choose of the successes;
- counts the ways to choose the remaining items from the failures.
The possible values of go from up to , but you can’t choose more successes than there are () or more failures than there are (). For impossible values, the formula gives .
Technology: a spreadsheet has =HYPGEOM.DIST(k, n, a, N, FALSE) for . On a calculator without a hypergeometric function, compute the three combinations with nCr.
Expected value
Section titled “Expected value”The fraction of successes in the population is , so in a sample of you expect of them. It’s the same idea as for the binomial, with .
Comparing with the binomial
Section titled “Comparing with the binomial”| Binomial | Hypergeometric | |
|---|---|---|
| Sampling | with replacement (or independent trials) | without replacement |
| Trials | independent | dependent |
| Probability of success | stays at | changes after each pick |
| Expected value |
Suppose of a population are successes and you choose items. The figure compares the two distributions for a small population and a large one.
Two things to notice:
- Both distributions have the same expected value: and .
- Without replacement, extreme results (like or successes) are less likely, so the hypergeometric histogram is a bit narrower and taller in the middle.
When the population is large compared with the sample, removing a few items barely changes the probability of success, so the hypergeometric and binomial distributions are almost the same. That’s why surveys of a few hundred people out of millions can be treated as binomial.
Worked examples
Section titled “Worked examples”Example 1: A committee
Section titled “Example 1: A committee”A club has members: in Grade 12 and in Grade 11. A committee of is chosen at random. Let be the number of Grade 12 students on the committee. Make the probability distribution, draw a conclusion from its histogram, and find .
Solution. Here , , , and .
| Ways | |||||
Check: . ✓
The histogram would have its tallest bar at , with close behind. An all-Grade-11 committee () is very unlikely: about .
Example 2: Hearts in a hand
Section titled “Example 2: Hearts in a hand”Five cards are dealt from a standard deck. Find the probability of exactly hearts.
Solution. , hearts, , .
Example 3: Quality control
Section titled “Example 3: Quality control”A box of phone chargers contains defective ones. An inspector tests chargers chosen at random. Find the probability that at least one is defective.
Solution. Use the complement, as with the binomial. , , .
Example 4: With or without replacement
Section titled “Example 4: With or without replacement”In the figure above, items are chosen from a population that is successes. Find three ways: binomial, hypergeometric with (and ), and hypergeometric with (and ).
Solution.
Binomial (with replacement), , :
Hypergeometric, :
Hypergeometric, :
With only items, sampling without replacement makes a big difference. With items, the answer is within of the binomial.
Common mistakes
Section titled “Common mistakes”Using the binomial formula for sampling without replacement. If items aren’t put back and the population is small, the trials are dependent. Use the hypergeometric formula.
Mixing up n and N, or a and k. is the population, the sample; is the number of successes in the population, the number in the sample. Write all four down before you start.
Choosing the failures from the wrong group. The second combination is : the remaining items come from the failures. Check that the top numbers add to and the bottom numbers add to .
Forgetting that some values are impossible. With only defective chargers, you can’t find . Then , so .
Adding many terms for “at least one”. Just like the binomial, use .
Practice
Section titled “Practice”1. (Warm-up) Binomial or hypergeometric?
- (a) is the number of girls when students are chosen at random from a class of .
- (b) is the number of s in rolls of a die.
- (c) is the number of red cards when cards are drawn from a deck, replacing each card before the next draw.
Solution
(a) Hypergeometric: students are chosen without replacement from a small class.
(b) Binomial: independent trials with .
(c) Binomial: with replacement, every time.
2. (Warm-up) A bag has red and green marbles. Three are drawn without replacement. Find the probability that exactly are red.
Solution
3. (Warm-up) A sample of is chosen without replacement from a population of that includes successes. Find the expected number of successes.
Solution
4. (Core) A science club has members, of them in Grade 9. Three members are chosen at random to go to a conference. Let be the number of Grade 9s chosen. Make the probability distribution of and find .
Solution
, , , and .
| Ways | ||||
Check: . ✓
5. (Core) In a lottery, numbers are drawn from to . You pick numbers. Find the probability that exactly of your numbers are drawn.
Solution
Think of the drawn numbers as the “successes” among . Your picks are the sample.
6. (Core) A pond has fish, and of them have been tagged. A biologist catches fish (without putting any back until the end). Find the probability that at least are tagged.
Solution
, , , and . Use the complement.
7. (Core) Five cards are drawn from a standard deck. Find the probability of exactly hearts if the cards are drawn with replacement. Compare with Example 2, and explain the difference.
Solution
With replacement, it’s binomial with , :
Without replacement (Example 2), it’s about . The answers are close because cards is a small part of the -card deck. Without replacement, the results bunch a little more tightly around the expected value ( hearts): values close to it, like and , become slightly more likely, and extreme values like or become slightly less likely.
8. (Challenge) Thirteen cards are dealt from a standard deck. Find the probability that the hand contains at least one ace.
Solution
, aces, . Use the complement:
9. (Challenge) To estimate the number of fish in a lake, biologists catch, tag, and release fish. Later, they catch fish and find that are tagged. Use the expected value of a hypergeometric distribution to estimate the number of fish in the lake.
Solution
In the second catch, , tagged fish, and is unknown. Assume the number of tagged fish caught equals the expected value:
The lake has about fish. (This is called the capture–recapture method.)