Hypergeometric Distribution Calculator

Enter the population, the successes in it and the size of the draw.

How many items there are in all.

How many of the items count as successes.

The size of the draw, without replacement.

The number of successes in the draw.

Find

Choose what to find.

Try

Result

You enteredN=52, K=4, n=5, k=2N = 52,\ K = 4,\ n = 5,\ k = 2

P(X=2)≈0.03993\displaystyle P(X = 2) \approx 0.03993

Fraction

216254145\displaystyle \frac{2162}{54145}

Mean

513≈0.384615\displaystyle \frac{5}{13} \approx 0.384615

Variance

9402873≈0.327184\displaystyle \frac{940}{2873} \approx 0.327184
Show the work
  1. Hypergeometric distribution

    A population of N=52N = 52 items has K=4K = 4 successes. Drawing n=5n = 5 items without replacement, XX counts the successes drawn. Every set of nn items is equally likely, so the probability is the number of favourable sets over the number of all sets.

    Using P(X=k)=(Kk)(N−Kn−k)(Nn)P(X = k) = \dfrac{\binom{K}{k}\binom{N-K}{n-k}}{\binom{N}{n}}

  2. Counting favourable and all samples

    Choose 22 of the 44 successes and 33 of the 4848 others, and compare with every way to choose 55 items from 5252.

    P(X=2)=(42)(483)(525)=1037762598960≈0.03993\begin{aligned} P(X = 2) &= \frac{\binom{4}{2}\binom{48}{3}}{\binom{52}{5}} \\ &= \frac{103776}{2598960} \approx 0.03993 \end{aligned}
  3. Result

    So the probability is 0.039930.03993.

Worked examples