Hypergeometric Distribution Calculator

Enter population size, number of success states, and sample size to compute hypergeometric PMF, CDF, mean, and variance instantly.

Parameters

Total number of items in the population.

Number of success states in the population (0 ≤ K ≤ N).

Number of draws without replacement (1 ≤ n ≤ N).

Number of successes observed in the sample.

Distribution Statistics

Mean (Expected value)
Variance
Standard Deviation
Valid k range

Results for k = 2

PMF — P(X = k)
Probability of exactly k successes
CDF — P(X ≤ k)
Probability of at most k successes
P(X ≥ k)
Probability of at least k successes
p = K / N
Population success proportion

Probability Table

All valid k values
k P(X = k) P(X ≤ k)

Summary

Enter population size, number of success states, and sample size to compute hypergeometric PMF, CDF, mean, and variance instantly.

How it works

  1. Enter the population size N (total items in the group).
  2. Enter K, the number of success states in the population.
  3. Enter the sample size n (number of items drawn without replacement).
  4. Enter k, the number of observed successes you want to evaluate.
  5. The calculator instantly shows P(X = k), P(X ≤ k), P(X ≥ k), and distribution statistics.
  6. The probability table lists all possible values of k with their PMF and CDF.

Use cases

  • Card games: probability of drawing exactly k aces in a 5-card hand from a standard deck.
  • Quality control: chance of finding exactly k defects in a batch sample.
  • Election auditing: probability that a sample of ballots contains a given number of errors.
  • Medical trials: likelihood of k responders in a group selected from a clinical pool.
  • Lottery analysis: probability of matching exactly k numbers when drawing from a pool.
  • Ecology: estimating species counts in a sampled area from a known total.
  • Market research: probability that k out of n surveyed belong to a target subgroup.
  • Genetics: probability of inheriting k copies of a trait from a finite gene pool.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu