The formula
P(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n)
C(a, b) is the number of combinations ("a choose b"). The hypergeometric distribution applies when each draw changes what's left, unlike the binomial distribution, which assumes replacement.
Example
The chance of exactly one ace in a 5-card poker hand: N = 52 cards, K = 4 aces, n = 5, k = 1. That's 4 × 194,580 ÷ 2,598,960 = 0.2995, about 30%. The chance of at least one ace is 0.3412.
Tips
- For counting combinations directly, use the permutation and combination calculator.
- For single events, see the probability calculator.
Frequently asked questions
When do I use the hypergeometric distribution?
When you draw a sample without replacement from a finite population with two kinds of items.
How is it different from the binomial?
The binomial assumes each trial has the same probability (with replacement); the hypergeometric doesn't.
What is the mean?
n × K ÷ N, the expected number of successes in the draw.
Written and checked by Vijay. Last updated .