Skip to content

Hypergeometric Distribution

Definition

Let a population contain NN objects, of which KK are successes, and suppose nn objects are drawn uniformly without replacement, so every subset of size nn is equally likely, where N,K,nN,K,n are integers with N≥0N\ge0 and 0≤K,n≤N0\le K,n\le N. A random variable XX has a hypergeometric distribution if XX counts the number of successes in the draw, with

P(X=k)=(Kk)(N−Kn−k)(Nn),max⁡(0, n−N+K)≤k≤min⁡(n,K),\begin{gathered} \mathbb{P}(X=k)=\frac{\binom Kk\binom{N-K}{n-k}}{\binom Nn},\\ \max(0,\,n-N+K)\le k\le\min(n,K), \end{gathered}

and P(X=k)=0\mathbb{P}(X=k)=0 for all other kk.


Interpretation

A hypergeometric distribution counts successes when sampling without replacement. The draws change what remains, so their success indicators are generally dependent; deterministic cases such as K=0K=0 are exceptions.

Probability bars for the number of successes among 6 objects drawn without replacement from 20 objects of which 8 are successes, peaking at 2 with mean 2.4.

The diagram counts successes in a sample of n=6n=6 objects drawn without replacement from N=20N=20 objects, of which K=8K=8 are successes. The PMF is P(X=k)=(8k)(126−k)/(206)\mathbb{P}(X=k)=\binom8k\binom{12}{6-k}/\binom{20}6 for 0≤k≤60\le k\le6. Its mean is 6⋅820=2.46\cdot\tfrac{8}{20}=2.4, and its variance 1.44⋅1419≈1.0611.44\cdot\tfrac{14}{19}\approx1.061 is smaller than the variance 6(0.4)(0.6)=1.446(0.4)(0.6)=1.44 of Bin⁡(6,0.4)\operatorname{Bin}(6,0.4), the corresponding model with replacement.

A combination counts an unordered selection without replacement. Counting the chosen successes and failures separately and dividing by all samples gives the hypergeometric probabilities.


Key Results

  • The hypergeometric distribution models sampling without replacement.
  • Unlike the independent trials of the binomial distribution, success indicators are generally dependent.
  • For N>0N>0, its mean is nK/NnK/N. If N=0N=0, necessarily K=n=0K=n=0 and X=0X=0.
  • For N>1N>1, its variance is

    Var⁡(X)=nKN(1−KN)N−nN−1.\operatorname{Var}(X)=n\frac{K}{N}\left(1-\frac{K}{N}\right)\frac{N-n}{N-1}.

    For N=0N=0 or N=1N=1, the admissible sample count is deterministic and its variance is 00.

    This is the binomial variance with p=K/Np=K/N times the finite population correction N−nN−1\frac{N-n}{N-1}, which is below 11 when n≥2n\ge2 and close to 11 when the population is much larger than the sample.


Examples

  • The number of aces in a five-card hand has a hypergeometric distribution.
  • The number of defective items in a sample drawn without replacement from a shipment is hypergeometric.
  • The number of red balls drawn from an urn without replacement is hypergeometric.

Prerequisites

Sources

Keywords: hypergeometric random variable, sampling without replacement

Last updated: 27 October 2026 11:52