Find the chance of drawing a number of successes when sampling without replacement, such as hearts in a poker hand, winning lottery numbers or faulty items in a batch.
P(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n)
Everything you could draw from.
How many of those count as a success.
Drawn without putting any back.
The count you’re asking about.
The hypergeometric distribution gives the chance of drawing a certain number of successes from a finite group without putting anything back. Each draw changes what's left, so the chance of a success shifts as you go.
Card hands, lottery draws, picking jurors from a pool and inspecting a sample from a small batch all work this way. It's the without-replacement counterpart of the binomial distribution.
When the group is much bigger than the sample (say, 20 times bigger) removing a few items barely changes the odds, and the binomial gives almost the same answers.
As given in OpenStax Introductory Statistics, section 4.5. See Sources.
The last factor, the finite population correction, makes the spread smaller than the binomial's.
A binomial model with p = 1/4 would give 26.4%: close, but not right, because each heart dealt leaves fewer in the deck.
Pick 6 numbers; 6 are drawn from 59. N = 59, K = 6 (your numbers), n = 6.
| Matches | Chance | About 1 in |
|---|---|---|
| 0 | 50.95% | 2 |
| 1 | 38.21% | 3 |
| 2 | 9.75% | 10 |
| 3 | 1.04% | 96 |
| 4 | 0.05% | 2,180 |
| 5 | 7.06e-6 | 141,690 |
| 6 | 2.22e-8 | 45,057,474 |
One in C(59, 6) = 45,057,474.
When the population is at least about 20 times the sample, the two give nearly the same answers. Use p = K/N.
Acceptance sampling: inspect n items from a lot of N and accept the lot if at most c are defective. The hypergeometric gives the chance of accepting a lot with K defects.
A test for 2 × 2 tables built on the hypergeometric distribution. It asks how surprising a table is if the row and column totals are fixed.
=HYPGEOM.DIST(k, n, K, N, FALSE) for exactly k, TRUE for at most k.
Without replacement, early draws tell you about later ones, which reduces the variation. The factor (N − n) ÷ (N − 1) captures this.
To find the chance of drawing the cards they need, such as at least one ace in an opening hand of seven from a 60-card deck with four aces.
Up to 100,000 here. The calculator works in logarithms, so large populations don’t overflow.
Related Tools
Gaussian probabilities.
Z-score from probability.
Binary outcome probabilities.
Rare event frequency.
Time between events.
Equal probability distribution.