Lably
Skip to content

Negative hypergeometric distribution

  • 3 min read
  • 4 chapters

Related on Lably

Through Statistics, Probability distribution and Random variable

Definition

There are N elements, of which K are defined as "successes" and the rest are "failures".

Elements are drawn one after the other, without replacements, until r failures are encountered. Then, the drawing stops and the number k of successes is counted. The negative hypergeometric distribution, NHGN,K,r(k) is the discrete distribution of this k.

The negative hypergeometric distribution is a special case of the beta-binomial distribution with parameters α=r and β=N−K−r+1 both being integers (and n=K).

The outcome requires that we observe k successes in (k+r−1) draws and the (k+r)-th bit must be a failure. The probability of the former can be found by the direct application of the hypergeometric distribution (HGN,K,k+r−1(k)) and the probability of the latter is simply the number of failures remaining (=N−K−(r−1)) divided by the size of the remaining population (=N−(k+r−1). The probability of having exactly k successes up to the r-th failure (i.e. the drawing stops as soon as the sample includes the predefined number of r failures) is then the product of these two probabilities:

(Kk)(N−Kk+r−1−k)(Nk+r−1)⋅N−K−(r−1)N−(k+r−1)=(k+r−1k)(N−r−kK−k)(NK).

Therefore, a random variable X follows the negative hypergeometric distribution if its probability mass function (pmf) is given by

f(k;N,K,r)≡Pr(X=k)=(k+r−1k)(N−r−kK−k)(NK)for k=0,1,2,…,K

where

  • N is the population size,
  • K is the number of success states in the population,
  • r is the number of failures,
  • k is the number of observed successes,
  • (ab) is a binomial coefficient

By design the probabilities sum up to 1. However, in case we want show it explicitly we have:

∑k=0KPr(X=k)=∑k=0K(k+r−1k)(N−r−kK−k)(NK)=1(NK)∑k=0K(k+r−1k)(N−r−kK−k)=1(NK)(NK)=1,

where we have used that,

∑j=0k(j+mj)(n−m−jk−j)=∑j=0k(−1)j(−m−1j)(−1)k−j(m+1+k−n−2k−j)=(−1)k∑j=0k(−m−1j)(k−n−2−(−m−1)k−j)=(−1)k(k−n−2k)=(−1)k(k−(n+1)−1k)=(n+1k),

which can be derived using the binomial identity,

(nk)=(−1)k(k−n−1k),

and the Chu–Vandermonde identity,

∑j=0k(mj)(n−mk−j)=(nk),

which holds for any complex-values m and n and any non-negative integer k.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics