Lably
Skip to content

Hypergeometric distribution

Discrete probability distribution

  • 11 min read
  • 5 chapters

Related on Lably

Through Statistics, Probability distribution and Binomial distribution

Definitions

Probability mass function

The following conditions characterize the hypergeometric distribution:

  • The result of each draw (the elements of the population being sampled) can be classified into one of two mutually exclusive categories (e.g. Pass/Fail or Employed/Unemployed).
  • The probability of a success changes on each draw, as each draw decreases the population (sampling without replacement from a finite population).

A random variable X follows the hypergeometric distribution if its probability mass function (pmf) is given by

pX(k)=Pr(X=k)=(Kk)(N−Kn−k)(Nn),

where

  • N is the population size,
  • K is the number of success states in the population,
  • n is the number of draws (i.e. quantity drawn in each trial),
  • k is the number of observed successes,
  • (ab) is a binomial coefficient.

The pmf is positive when max(0,n+K−N)≤k≤min(K,n).

A random variable distributed hypergeometrically with parameters N, K and n is written X∼Hypergeometric⁡(N,K,n) and has probability mass function pX(k) above.

Combinatorial identities

As required, we have

∑0≤k≤min(n,K)(Kk)(N−Kn−k)(Nn)=1,

which essentially follows from Vandermonde's identity from combinatorics.

Also note that

(Kk)(N−Kn−k)(Nn)=(nk)(N−nK−k)(NK);

This identity can be shown by expressing the binomial coefficients in terms of factorials and rearranging the latter. Additionally, it follows from the symmetry of the problem, described in two different but interchangeable ways.

For example, consider two rounds of drawing without replacement. In the first round, K out of N neutral marbles are drawn from an urn without replacement and coloured green. Then the colored marbles are put back. In the second round, n marbles are drawn without replacement and colored red. Then, the number of marbles with both colors on them (that is, the number of marbles that have been drawn twice) has the hypergeometric distribution. The symmetry in K and n stems from the fact that the two rounds are independent, and one could have started by drawing n balls and colouring them red first.

Note that we are interested in the probability of k successes in n draws without replacement, since the probability of success on each trial is not the same, as the size of the remaining population changes as we remove each marble. Keep in mind not to confuse with the binomial distribution, which describes the probability of k successes in n draws with replacement.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics and probability