GO-V.ORG
As seen in

Negative hypergeometric distribution

{{Probability distribution Negative hypergeometric distribution is an encyclopedia record, sourced from en.wikipedia.org, last updated 2026-03-12, source revision https://en.wikipedia.org/w/index.php?oldid=1343145442. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

{{Probability distribution | name =Negative hypergeometric| type =mass| pdf_image = | cdf_image = | parameters = N \in \left\{0,1,2,\dots\right\} - total number of elements K \in \left\{0,1,2,\dots,N\right\} - total number of 'success' elements r \in \left\{0,1,2,\dots,N-K\right\} - number of failures when experiment is stopped| support = k \in \left\{0,\, \dots,\, K\right\} - number of successes when experiment is stopped.| pdf = \frac{{{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}}}{N \choose K} | cdf =| mean = r\frac{K}{N-K+1} | median =| mode =| variance = r\frac{(N+1)K}{(N-K+1)(N-K+2)}[1-\frac{r}{N-K+1}] | skewness =| kurtosis =| entropy =| mgf =| char =| }} In probability theory and statistics, the negative hypergeometric distribution describes probabilities for when sampling from a finite population without replacement in which each sample can be classified into two mutually exclusive categories like Pass/Fail or Employed/Unemployed. As random selections are made from the population, each subsequent draw decreases the population causing the probability of success to change with each draw. Unlike the standard hypergeometric distribution, which describes the number of successes in a fixed sample size, in the negative hypergeometric distribution, samples are drawn until r failures have been found, and the distribution describes the probability of finding k successes in such a sample. In other words, the negative hypergeometric distribution describes the likelihood of k successes in a sample with exactly r failures. The negative hypergeometric distribution is a special case of the beta-binomial distribution with parameters \alpha = r and \beta = 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)\text{-th} bit must be a failure. The probability of the former can be found by the direct application of the hypergeometric distribution (HG_{N,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\text{-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: \frac{\binom{K}{k} \binom{N - K}{k+r-1-k}}{\binom{N}{k+r-1}} \cdot \frac{N-K-(r-1)}{N-(k+r-1)} =\frac{{{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}}}{N \choose K}. Therefore, a random variable X follows the negative hypergeometric distribution if its probability mass function (pmf) is given by f(k; N, K, r) \equiv \Pr(X = k) =\frac{{{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}}}{N \choose K}\quad\text{for }k = 0, 1, 2, \dotsc, 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, a \choose b is a binomial coefficient By design the probabilities sum up to 1. However, in case we want show it explicitly we have: \sum_{k=0}^{K} \Pr(X=k) = \sum_{k=0}^{K} \frac{{{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}}}{N \choose K} = \frac{1}{N \choose K}\sum_{k=0}^{K} {{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}} = \frac{1}{N \choose K} {N \choose K} = 1, where we have used that, \begin{align} \sum_{j=0}^k \binom{j+m}{j} \binom{n-m-j}{k-j} &=\sum_{j=0}^k (-1)^{j} \binom{-m-1}{j} (-1)^{k-j} \binom{m+1+k-n-2}{k-j}\\ &= (-1)^{k} \sum_{j=0}^k \binom{-m-1}{j} \binom{k-n-2-(-m-1)}{k-j}\\ &= (-1)^{k} \binom{k-n-2}{k}\\ &= (-1)^{k} \binom{k-(n+1)-1}{k}\\ &= \binom{n+1}{k}, \end{align} which can be derived using the binomial identity, {{n \choose k} = (-1)^k {k-n-1 \choose k}}, and the Chu–Vandermonde identity, \sum_{j=0}^k \binom m j \binom{n-m}{k-j} = \binom n k, which holds for any complex-values m and n and any non-negative integer k . E[X] &= \sum_{k=0}^{K} k \Pr(X=k) = \sum_{k=0}^{K} k \frac{{{k+r-1}\choose{k}}{{N-r-k}\choose{K-k}}}{N \choose K} = \frac{r}{N \choose K}\left[\sum_{k=0}^{K} \frac{(k+r)}{r} {{k+r-1}\choose{r-1}}{{N-r-k}\choose{K-k}}\right]-r \\ &= \frac{r}{N \choose K}\left[\sum_{k=0}^{K} {{k+r}\choose{r}}{{N-r-k}\choose{K-k}}\right]-r = \frac{r}{N \choose K}\left[\sum_{k=0}^{K} {{k+r}\choose{k}}{{N-r-k}\choose{K-k}}\right]-r\\ &= \frac{r}{N \choose K}\left[{{N+1} \choose K} \right]-r = \frac{rK}{N-K+1}, \end{align} where we have used the relationship \sum_{j=0}^k \binom{j+m}{j} \binom{n-m-j}{k-j}= \binom{n+1}{k} , that we derived above to show that the negative hypergeometric distribution was properly normalized. E[X^2] &= \sum_{k=0}^{K} k^2 \Pr(X=k) = \left[\sum_{k=0}^{K} (k+r)(k+r+1) \Pr(X=k)\right]-(2r+1)E[X]-r^2-r \\ &=\frac{r(r+1)}{N \choose K}\left[\sum_{k=0}^{K} {{k+r+1}\choose{r+1}}{{N+1-(r+1)-k}\choose{K-k}}\right]-(2r+1)E[X]-r^2-r\\ &= \frac{r(r+1)}{N \choose K}\left[{{N+2} \choose K} \right]-(2r+1)E[X]-r^2-r = \frac{r K (N - r + K r + 1)}{(N-K+1)(N-K+2)} \end{align} Then the variance is \textrm{Var}[X]=E[X^2]-\left(E[X]\right)^2 = \frac{r K (N + 1) (N-K-r+1)}{(N - K + 1)^2 (N - K + 2)} NHG_{N,K,r}(k) = 1-HG_{N,N-K,k+r}(r-1) Negative-hypergeometric distribution (like the hypergeometric distribution) deals with draws without replacement, so that the probability of success is different in each draw. In contrast, negative-binomial distribution (like the binomial distribution) deals with draws with replacement, so that the probability of success is the same and the trials are independent. The following table summarizes the four distributions related to drawing items: Some authors define the negative hypergeometric distribution to be the number of draws required to get the r th failure. If we let Y denote this number then it is clear that Y=X+r where X is as defined above. Hence the PMF \Pr(Y=y)=\binom{y-1}{r-1}\frac{\binom{N-y}{N-K-r}}{\binom{N}{N-K}}. If we let the number of failures N-K be denoted by M means that we have \Pr(Y=y)=\binom{y-1}{r-1}\frac{\binom{N-y}{M-r}}{\binom{N}{M}}. The support of Y is the set \{r,r+1,\dots,N-M+r\} . It is clear that: E[Y]=E[X]+r= \frac{r(N+1)}{M+1} and \textrm{Var}[X]=\textrm{Var}[Y] .

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Negative hypergeometric distribution". 1773323089. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1343145442

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·