Hypergeometric Distribution Calculator

Calculate exact hypergeometric probabilities for sampling without replacement, with PMF, CDF, distribution tables, and binomial approximation comparison.

Total items in the population
Items with the desired property
Items drawn without replacement
P(X = 2)
0.274280
27.428% โ€” exact probability
P(X โ‰ค 2)
0.907233
CDF โ€” cumulative probability
P(X > 2)
0.092767
Upper tail
P(1 โ‰ค X โ‰ค 3)
0.767242
76.724%
Mean
1.2500
E[X] = nK/N
Std Deviation
0.9295
Variance: 0.8640
Mode
1
Most likely outcome

Probability Distribution

0
1
2
3
4
5

Full Distribution Table

kP(X = k)P(X โ‰ค k)Visual
00.2215340.221534
10.4114200.632953
20.2742800.907233
30.0815430.988776
40.0107290.999505
50.0004951.000000
Comparison: Hypergeometric vs Binomial Approximation
kHypergeometricBinomial ApproxDifference
00.2215340.2373050.015771
10.4114200.3955080.015912
20.2742800.2636720.010608
30.0815430.0878910.006348
40.0107290.0146480.003919
50.0004950.0009770.000481
Planning notes, formulas, and examples

About the Hypergeometric Distribution Calculator

The hypergeometric distribution calculator computes exact probabilities for sampling without replacement from a finite population. Each draw changes the remaining pool, so the probability of the next success is not constant the way it is in the binomial case.

Use it when the population is finite and items are not returned after each draw: inspection lots, card hands, grab samples, or any fixed-size batch where the composition shifts after every selection.

Enter the population size N, number of success states K, draw size n, and target successes k to get point probabilities, cumulative probabilities, and a full distribution table.

When This Page Helps

This calculator saves time whenever the population is fixed and the sampling is without replacement. That is the setting where binomial shortcuts can drift away from the true answer.

The distribution table is useful for spotting where the probability mass sits, and the binomial comparison shows whether the simpler approximation is close enough for your use case.

How to Use the Inputs

  1. Enter the total population size (N) โ€” all items in the group.
  2. Enter the number of success states (K) โ€” items with the desired property.
  3. Enter the draw size (n) โ€” how many items you draw without replacement.
  4. Enter the observed successes (k) for point probability.
  5. Set range bounds xโ‚ and xโ‚‚ for interval probability calculations.
  6. Review the distribution chart, full table, and binomial comparison.
  7. Use presets for quick exploration of common scenarios.
Formula used
P(X = k) = C(K,k) ร— C(Nโˆ’K, nโˆ’k) / C(N,n), where C(a,b) = a! / (b!(aโˆ’b)!). Mean = nK/N. Variance = nK(Nโˆ’K)(Nโˆ’n) / (Nยฒ(Nโˆ’1)).

Example Calculation

Result: P(X = 2) โ‰ˆ 0.2743 (27.43%)

Drawing 5 cards from a standard 52-card deck, the probability of getting exactly 2 hearts (13 in the deck) is C(13,2)ร—C(39,3) / C(52,5) โ‰ˆ 0.2743.

Tips & Best Practices

  • The hypergeometric distribution converges to binomial when N is much larger than n (rule of thumb: N > 20n).
  • If the population is very large relative to the sample, use the binomial approximation for simplicity.
  • For quality control, this models acceptance sampling โ€” drawing n items from a lot of N and deciding based on defects found.
  • In card games, this gives exact hand probabilities without the independence assumption.
  • The sum of all PMF values equals 1 โ€” use the table to verify your calculations.
  • Fisher's exact test is directly based on the hypergeometric distribution.

Why The Probability Changes

With replacement, each draw resets the population. Without replacement, every success or failure changes what remains. That is why the hypergeometric distribution is exact for finite sampling and the binomial is only an approximation.

Where It Shows Up

The same math appears in quality control, deck-of-cards calculations, sample audits, and exact tests on contingency tables. Any time you are drawing a fixed number of items from a known finite set, the hypergeometric model is the natural fit.

Reading The Approximation

The binomial comparison is a quick way to judge whether replacement assumptions are close enough. When the sample is small relative to the population, the two distributions are often close; when the sample is large, the difference becomes more important.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use hypergeometric for sampling without replacement from a finite population (card draws, quality inspection). Use binomial when draws are independent (coin flips, each trial identical).