Hypergeometric formula
N is the population, K the successes in it, n the number drawn and k the successes you want. C means combinations.
P(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n)
Example: cards
The chance of exactly 2 hearts in a 5-card hand from a 52-card deck (13 hearts) is about 27.4%.
Frequently asked questions
Is this a hypergeometric distribution calculator?
Yes. It uses the hypergeometric distribution to give the probability of exactly k successes, plus the cumulative probabilities P(X < k), P(X ≤ k), P(X > k) and P(X ≥ k).
When do I use hypergeometric instead of binomial?
When you draw without replacement from a small population, so each draw changes the odds.
Is it used in card games?
Yes. Magic: The Gathering and poker players use it to work out draw odds.
What is the mean?
n × K ÷ N.