Negative binomial distribution explained

In probability theory and statistics, the negative binomial distribution is a discrete probability distribution that models the number of failures in a sequence of independent and identically distributed Bernoulli trials before a specified (non-random) number of successes (denoted

r

) occurs.[1] For example, we can define rolling a 6 on some dice as a success, and rolling any other number as a failure, and ask how many failure rolls will occur before we see the third success (

r=3

). In such a case, the probability distribution of the number of failures that appear will be a negative binomial distribution.

An alternative formulation is to model the number of total trials (instead of the number of failures). In fact, for a specified (non-random) number of successes (r), the number of failures (n − r) is random because the number of total trials (n) is random. For example, we could use the negative binomial distribution to model the number of days n (random) a certain machine works (specified by r) before it breaks down.

The Pascal distribution (after Blaise Pascal) and Polya distribution (for George Pólya) are special cases of the negative binomial distribution. A convention among engineers, climatologists, and others is to use "negative binomial" or "Pascal" for the case of an integer-valued stopping-time parameter (

r

) and use "Polya" for the real-valued case.

For occurrences of associated discrete events, like tornado outbreaks, the Polya distributions can be used to give more accurate models than the Poisson distribution by allowing the mean and variance to be different, unlike the Poisson. The negative binomial distribution has a variance

\mu/p

, with the distribution becoming identical to Poisson in the limit

p\to1

for a given mean

\mu

(i.e. when the failures are increasingly rare). This can make the distribution a useful overdispersed alternative to the Poisson distribution, for example for a robust modification of Poisson regression. In epidemiology, it has been used to model disease transmission for infectious diseases where the likely number of onward infections may vary considerably from individual to individual and from setting to setting.[2] More generally, it may be appropriate where events have positively correlated occurrences causing a larger variance than if the occurrences were independent, due to a positive covariance term.

The term "negative binomial" is likely due to the fact that a certain binomial coefficient that appears in the formula for the probability mass function of the distribution can be written more simply with negative numbers.[3]

Definitions

Imagine a sequence of independent Bernoulli trials: each trial has two potential outcomes called "success" and "failure." In each trial the probability of success is

p

and of failure is

1-p

. We observe this sequence until a predefined number

r

of successes occurs. Then the random number of observed failures,

X

, follows the negative binomial (or Pascal) distribution:

X\sim\operatorname{NB}(r,p)

Probability mass function

The probability mass function of the negative binomial distribution is

f(k;r,p)\equiv\Pr(X=k)=\binom{k+r-1}{k}(1-p)kpr

where r is the number of successes, k is the number of failures, and p is the probability of success on each trial.

Here, the quantity in parentheses is the binomial coefficient, and is equal to

\binom{k+r-1}{k}=

(k+r-1)!
(r-1)!(k)!

=

(k+r-1)(k+r-2)...m(r)
k!

=

\Gamma(k+r)
k!\Gamma(r)

.

Note that Γ(r) is the Gamma function.

There are k failures chosen from k + r − 1 trials rather than k + r because the last of the k + r trials is by definition a success.

This quantity can alternatively be written in the following manner, explaining the name "negative binomial":

\begin{align} &

(k+r-1)...m(r)
k!

\\[10pt] ={}&(-1)k

\overbrace{(-r)(-r-1)(-r-2)...m(-r-k+1)
kfactors
} = (-1)^k\binom.\end

Note that by the last expression and the binomial series, for every and

q=1-p

,

p-r=(1-q)-r=

infty
\sum
k=0

\binom{-r}{\phantom{-}k}(-q)k=

infty
\sum
k=0

\binom{k+r-1}{k}qk

hence the terms of the probability mass function indeed add up to one as below.

infty
\sum
k=0

\binom{k+r-1}{k}(1-p)kpr=p-rpr=1

To understand the above definition of the probability mass function, note that the probability for every specific sequence of r successes and k failures is, because the outcomes of the k + r trials are supposed to happen independently. Since the rth success always comes last, it remains to choose the k trials with failures out of the remaining k + r − 1 trials. The above binomial coefficient, due to its combinatorial interpretation, gives precisely the number of all these sequences of length k + r − 1.

Cumulative distribution function

The cumulative distribution function can be expressed in terms of the regularized incomplete beta function:

F(k;r,p)\equiv\Pr(X\lek)=Ip(r,k+1).

(This formula is using the same parameterization as in the article's table, with r the number of successes, and

p=r/(r+\mu)

with

\mu

the mean.)

It can also be expressed in terms of the cumulative distribution function of the binomial distribution:[4]

F(k;r,p)=Fbinomial(k;n=k+r,1-p).

Alternative formulations

Some sources may define the negative binomial distribution slightly differently from the primary one here. The most common variations are where the random variable X is counting different things. These variations can be seen in the table here:

X is counting...Probability mass functionFormulaAlternate formula(using equivalent binomial)Alternate formula(simplified using: n=k+r)Support
1k failures, given r successesf(k; r, p) \equiv \Pr(X = k) =\binom p^r(1-p)^k[5] [6] [7] \binom p^r(1-p)^k[8] [9] [10] \binom p^r(1-p)^k

fork=0,1,2,\ldots

2n trials, given r successesf(n; r, p) \equiv \Pr(X = n) =\binom p^r(1-p)^[11] [12] [13] \binom p^r(1-p)^

forn=r,r+1,r+2,...c

3n trials, given r failuresf(n; r, p) \equiv \Pr(X = n) =\binom p^(1-p)^\binom p^(1-p)^\binom p^(1-p)^
4k successes, given r failuresf(k; r, p) \equiv \Pr(X = k) =\binom p^k(1-p)^r\binom p^k(1-p)^r

fork=0,1,2,\ldots

-k successes, given n trialsf(k; n, p) \equiv \Pr(X = k) = This is the binomial distribution not the negative binomial: \binom p^k(1-p)^

fork=0,1,2,...c,n

Each of the four definitions of the negative binomial distribution can be expressed in slightly different but equivalent ways. The first alternative formulation is simply an equivalent form of the binomial coefficient, that is: \binom ab = \binom a \quad \text\ 0\leq b\leq a. The second alternate formulation somewhat simplifies the expression by recognizing that the total number of trials is simply the number of successes and failures, that is: n=r+k. These second formulations may be more intuitive to understand, however they are perhaps less practical as they have more terms.

\binom{k+r-1}{k}=

(k+r-1)(k+r-2)...m(r)
k!

=

\Gamma(k+r)
k!\Gamma(r)

After substituting this expression in the original definition, we say that X has a negative binomial (or Pólya) distribution if it has a probability mass function:

f(k;r,p)\equiv\Pr(X=k)=

\Gamma(k+r)
k!\Gamma(r)

(1-p)kprfork=0,1,2,...c

Here r is a real, positive number.

In negative binomial regression,[14] the distribution is specified in terms of its mean, m=\frac, which is then related to explanatory variables as in linear regression or other generalized linear models. From the expression for the mean m, one can derive p=\frac and 1-p=\frac. Then, substituting these expressions in the one for the probability mass function when r is real-valued, yields this parametrization of the probability mass function in terms of m:

\Pr(X=k)=

\Gamma(r+k)\left(
k!\Gamma(r)
r
r+m

\right)r\left(

m
r+m

\right)kfork=0,1,2,...c

The variance can then be written as m+\frac. Some authors prefer to set \alpha = \frac, and express the variance as m+\alpha m^2. In this context, and depending on the author, either the parameter r or its reciprocal α is referred to as the "dispersion parameter", "shape parameter" or "clustering coefficient",[15] or the "heterogeneity" or "aggregation" parameter.[9] The term "aggregation" is particularly used in ecology when describing counts of individual organisms. Decrease of the aggregation parameter r towards zero corresponds to increasing aggregation of the organisms; increase of r towards infinity corresponds to absence of aggregation, as can be described by Poisson regression.

Alternative parameterizations

Sometimes the distribution is parameterized in terms of its mean μ and variance σ2:

\begin{align} &p=

\mu
\sigma2

,\\[6pt] &r=

\mu2
\sigma2-\mu

,\\[3pt] &\Pr(X=k)={k+

\mu2
\sigma2-\mu

-1\choosek}\left(1-

\mu
\sigma2

\right)k\left(

\mu
\sigma2
\mu2/(\sigma2-\mu)
\right)

\\ &\operatorname{E}(X)=\mu\\ &\operatorname{Var}(X)=\sigma2. \end{align}

Another popular parameterization uses r and the failure odds β:

\begin{align} &p=

1
1+\beta

\\ &\Pr(X=k)={k+r-1\choosek}\left(

\beta
1+\beta

\right)k\left(

1
1+\beta

\right)r\\ &\operatorname{E}(X)=r\beta\\ &\operatorname{Var}(X)=r\beta(1+\beta). \end{align}

Examples

Length of hospital stay

Hospital length of stay is an example of real-world data that can be modelled well with a negative binomial distribution via negative binomial regression.[16] [17]

Selling candy

Pat Collis is required to sell candy bars to raise money for the 6th grade field trip. Pat is (somewhat harshly) not supposed to return home until five candy bars have been sold. So the child goes door to door, selling candy bars. At each house, there is a 0.6 probability of selling one candy bar and a 0.4 probability of selling nothing.

What's the probability of selling the last candy bar at the nth house?

Successfully selling candy enough times is what defines our stopping criterion (as opposed to failing to sell it), so k in this case represents the number of failures and r represents the number of successes. Recall that the NegBin(r, p) distribution describes the probability of k failures and r successes in k + r Bernoulli(p) trials with success on the last trial. Selling five candy bars means getting five successes. The number of trials (i.e. houses) this takes is therefore k + 5 = n. The random variable we are interested in is the number of houses, so we substitute k = n − 5 into a NegBin(5, 0.4) mass function and obtain the following mass function of the distribution of houses (for n ≥ 5):

f(n)={(n-5)+5-1\choosen-5}(1-0.4)50.4n-5={n-1\choosen-5}35

2n-5
5n

.

What's the probability that Pat finishes on the tenth house?

f(10)=0.1003290624.

What's the probability that Pat finishes on or before reaching the eighth house?

To finish on or before the eighth house, Pat must finish at the fifth, sixth, seventh, or eighth house. Sum those probabilities:

f(5)=0.07776

f(6)=0.15552

f(7)=0.18662

f(8)=0.17418

8
\sum
j=5

f(j)=0.59408.

What's the probability that Pat exhausts all 30 houses that happen to stand in the neighborhood?

This can be expressed as the probability that Pat does not finish on the fifth through the thirtieth house:

30
1-\sum
j=5

f(j)=1-I0.4(5,30-5+1)1-0.99999342=0.00000658.

Because of the rather high probability that Pat will sell to each house (60 percent), the probability of her NOT fulfilling her quest is vanishingly slim.

Properties

Expectation

The expected total number of trials needed to see r successes is

r
p
. Thus, the expected number of failures would be this value, minus the successes:

E[\operatorname{NB}(r,p)]=

r
p

-r=

r(1-p)
p

Expectation of successes

The expected total number of failures in a negative binomial distribution with parameters is r(1 − p)/p. To see this, imagine an experiment simulating the negative binomial is performed many times. That is, a set of trials is performed until successes are obtained, then another set of trials, and then another etc. Write down the number of trials performed in each experiment: and set . Now we would expect about successes in total. Say the experiment was performed times. Then there are successes in total. So we would expect, so . See that is just the average number of trials per experiment. That is what we mean by "expectation". The average number of failures per experiment is . This agrees with the mean given in the box on the right-hand side of this page.

A rigorous derivation can be done by representing the negative binomial distribution as the sum of waiting times. Let

Xr\sim\operatorname{NB}(r,p)

with the convention

X

represents the number of failures observed before

r

successes with the probability of success being

p

. And let

Yi\simGeom(p)

where

Yi

represents the number of failures before seeing a success. We can think of

Yi

as the waiting time (number of failures) between the

i

th and

(i-1)

th success. Thus

Xr=Y1+Y2++Yr.

The mean is

E[Xr]=E[Y1]+E[Y2]++E[Yr]=

r(1-p)
p

,

which follows from the fact

E[Yi]=(1-p)/p

.

Variance

When counting the number of failures before the r-th success, the variance is r(1 − p)/p2. When counting the number of successes before the r-th failure, as in alternative formulation (3) above, the variance is rp/(1 − p)2.

Relation to the binomial theorem

Suppose Y is a random variable with a binomial distribution with parameters n and p. Assume p + q = 1, with pq ≥ 0, then

1=1n=(p+q)n.

Using Newton's binomial theorem, this can equally be written as:

infty
(p+q)
k=0

{n\choosek}pkqn-k,

in which the upper bound of summation is infinite. In this case, the binomial coefficient

{n\choosek}={n(n-1)(n-2)(n-k+1)\overk!}.

is defined when n is a real number, instead of just a positive integer. But in our case of the binomial distribution it is zero when k > n. We can then say, for example

(p+q)8.3

infty
=\sum
k=0

{8.3\choosek}pkq8.3.

Now suppose r > 0 and we use a negative exponent:

1=prp-r=pr(1-q)-r=pr

infty
\sum
k=0

{-r\choosek}(-q)k.

Then all of the terms are positive, and the term

pr{-r\choosek}(-q)k

is just the probability that the number of failures before the rth success is equal to k, provided r is an integer. (If r is a negative non-integer, so that the exponent is a positive non-integer, then some of the terms in the sum above are negative, so we do not have a probability distribution on the set of all nonnegative integers.)

Now we also allow non-integer values of r. Then we have a proper negative binomial distribution, which is a generalization of the Pascal distribution, which coincides with the Pascal distribution when r happens to be a positive integer.

Recall from above that

The sum of independent negative-binomially distributed random variables r1 and r2 with the same value for parameter p is negative-binomially distributed with the same p but with r-value r1 + r2.

This property persists when the definition is thus generalized, and affords a quick way to see that the negative binomial distribution is infinitely divisible.

Recurrence relations

The following recurrence relations hold:

For the probability mass function

\begin{cases} (k+1)\Pr(X=k+1)-p\Pr(X=k)(k+r)=0,\\[5pt] \Pr(X=0)=(1-p)r. \end{cases}

For the moments

mk=E(Xk),

mk+1=rPmk+(P2+P){dmk\overdP},P:=(1-p)/p,m0=1.

For the cumulants

\kappak+1=(Q-1)Q{d\kappak\overdQ},Q:=1/p,\kappa1=r(Q-1).

Related distributions

\operatorname{Geom}(p)=\operatorname{NB}(1,p).

Poisson distribution

Consider a sequence of negative binomial random variables where the stopping parameter r goes to infinity, while the probability p of success in each trial goes to one, in such a way as to keep the mean of the distribution (i.e. the expected number of failures) constant. Denoting this mean as λ, the parameter p will be p = r/(r + λ)

\begin{align} Mean:&λ=

(1-p)r
p

p=

r
r

,\\ Variance:&λ\left(1+

λ
r

\right)>λ,thusalwaysoverdispersed. \end{align}

Under this parametrization the probability mass function will be

f(k;r,p)=

\Gamma(k+r)
k!\Gamma(r)

(1-p)kpr=

λk
k!

\Gamma(r+k)
\Gamma(r)(r)k

1
\left(1+λ\right)r
r

Now if we consider the limit as r → ∞, the second factor will converge to one, and the third to the exponent function:

\limr\toinftyf(k;r,p)=

λk
k!

1

1
eλ

,

which is the mass function of a Poisson-distributed random variable with expected value λ.

In other words, the alternatively parameterized negative binomial distribution converges to the Poisson distribution and r controls the deviation from the Poisson. This makes the negative binomial distribution suitable as a robust alternative to the Poisson, which approaches the Poisson for large r, but which has larger variance than the Poisson for small r.

\operatorname{Poisson}(λ)=\limr\operatorname{NB}\left(r,

r
r

\right).

Gamma–Poisson mixture

The negative binomial distribution also arises as a continuous mixture of Poisson distributions (i.e. a compound probability distribution) where the mixing distribution of the Poisson rate is a gamma distribution. That is, we can view the negative binomial as a distribution, where λ is itself a random variable, distributed as a gamma distribution with shape r and scale θ = or correspondingly rate β =.

To display the intuition behind this statement, consider two independent Poisson processes, "Success" and "Failure", with intensities p and 1 − p. Together, the Success and Failure processes are equivalent to a single Poisson process of intensity 1, where an occurrence of the process is a success if a corresponding independent coin toss comes up heads with probability p; otherwise, it is a failure. If r is a counting number, the coin tosses show that the count of successes before the rth failure follows a negative binomial distribution with parameters r and p. The count is also, however, the count of the Success Poisson process at the random time T of the rth occurrence in the Failure Poisson process. The Success count follows a Poisson distribution with mean pT, where T is the waiting time for r occurrences in a Poisson process of intensity 1 − p, i.e., T is gamma-distributed with shape parameter r and intensity 1 − p. Thus, the negative binomial distribution is equivalent to a Poisson distribution with mean pT, where the random variate T is gamma-distributed with shape parameter r and intensity . The preceding paragraph follows, because λ = pT is gamma-distributed with shape parameter r and intensity .

The following formal derivation (which does not depend on r being a counting number) confirms the intuition.

\begin{align} &

infty
\int
0

f\operatorname{Poisson(λ)}(k) x f\operatorname{Gamma\left(r,

p
1-p

\right)}(λ)dλ\\[8pt] ={}&

infty
\int
0
λk
k!

e x

1\left(
\Gamma(r)
p
1-p

λ\right)r-1

-
p
1-p
λ
e

\left(

p{1-p}

\right)dλ\\[8pt] ={}&\left(

p
1-p

\right)r

1
k!\Gamma(r)
infty
\int
0

λr+k-1

p+1-p
1-p
e

dλ\\[8pt] ={}&\left(

p
1-p

\right)r

1
k!\Gamma(r)

\Gamma(r+k)(1-p)k+r

infty
\int
0

f\operatorname{Gamma\left(k+r,

1
1-p

\right)}(λ)dλ\\[8pt] ={}&

\Gamma(r+k)
k!\Gamma(r)

(1-p)kpr\\[8pt]={}&f(k;r,p). \end{align}

Because of this, the negative binomial distribution is also known as the gamma–Poisson (mixture) distribution. The negative binomial distribution was originally derived as a limiting case of the gamma-Poisson distribution.[18]

Distribution of a sum of geometrically distributed random variables

If Yr is a random variable following the negative binomial distribution with parameters r and p, and support, then Yr is a sum of r independent variables following the geometric distribution (on) with parameter p. As a result of the central limit theorem, Yr (properly scaled and shifted) is therefore approximately normal for sufficiently large r.

Furthermore, if Bs+r is a random variable following the binomial distribution with parameters s + r and p, then

\begin{align} \Pr(Yr\leqs)&{}=1-Ip(s+1,r)\\[5pt] &{}=1-Ip((s+r)-(r-1),(r-1)+1)\\[5pt] &{}=1-\Pr(Bs+r\leqr-1)\\[5pt] &{}=\Pr(Bs+r\geqr)\\[5pt] &{}=\Pr(afters+rtrials,thereareatleastrsuccesses). \end{align}

In this sense, the negative binomial distribution is the "inverse" of the binomial distribution.

The sum of independent negative-binomially distributed random variables r1 and r2 with the same value for parameter p is negative-binomially distributed with the same p but with r-value r1 + r2.

The negative binomial distribution is infinitely divisible, i.e., if Y has a negative binomial distribution, then for any positive integer n, there exist independent identically distributed random variables Y1, ..., Yn whose sum has the same distribution that Y has.

Representation as compound Poisson distribution

The negative binomial distribution NB(r,p) can be represented as a compound Poisson distribution: Let (Y_n)_ denote a sequence of independent and identically distributed random variables, each one having the logarithmic series distribution Log(p), with probability mass function

f(k;r,p)=

-pk
kln(1-p)

,    k\in{N}.

Let N be a random variable, independent of the sequence, and suppose that N has a Poisson distribution with mean . Then the random sum

N
X=\sum
n=1

Yn

is NB(r,p)-distributed. To prove this, we calculate the probability generating function GX of X, which is the composition of the probability generating functions GN and GY1. Using

GN(z)=\exp(λ(z-1)),    z\inR,

and

G(z)=
Y1
ln(1-pz)
ln(1-p)

,    |z|<

1p,

we obtain

\begin{align}GX(z)&=GN(G

(z))\\[4pt] &=\expl(λl(
Y1
ln(1-pz)-1r)r)\\[4pt] &=\expl(-r(ln(1-pz)-ln(1-p))r)\\[4pt] &=l(
ln(1-p)
1-p
1-pz

r)r,    |z|<

1p, \end{align}

which is the probability generating function of the NB(r,p) distribution.

The following table describes four distributions related to the number of successes in a sequence of draws:

With replacements No replacements
Given number of draws hypergeometric distribution
Given number of failures negative binomial distribution negative hypergeometric distribution

(a,b,0) class of distributions

The negative binomial, along with the Poisson and binomial distributions, is a member of the (a,b,0) class of distributions. All three of these distributions are special cases of the Panjer distribution. They are also members of a natural exponential family.

Statistical inference

Parameter estimation

MVUE for p

Suppose p is unknown and an experiment is conducted where it is decided ahead of time that sampling will continue until r successes are found. A sufficient statistic for the experiment is k, the number of failures.

In estimating p, the minimum variance unbiased estimator is

\widehat{p}=r-1
r+k-1

.

Maximum likelihood estimation

When r is known, the maximum likelihood estimate of p is

\widetilde{p}=r
r+k

,

but this is a biased estimate. Its inverse (r + k)/r, is an unbiased estimate of 1/p, however.[19]

When r is unknown, the maximum likelihood estimator for p and r together only exists for samples for which the sample variance is larger than the sample mean.[20] The likelihood function for N iid observations (k1, ..., kN) is

N
L(r,p)=\prod
i=1

f(ki;r,p)

from which we calculate the log-likelihood function

\ell(r,p)=

N
\sum
i=1

ln(\Gamma(ki+r))-

N
\sum
i=1

ln(ki!)-Nln(\Gamma(r))+

N
\sum
i=1

kiln(1-p)+Nrln(p).

To find the maximum we take the partial derivatives with respect to r and p and set them equal to zero:

\partial\ell(r,p)
\partialp

=

N
-\left[\sum
i=1

ki

1
1-p

\right]+Nr

1
p

=0

and
\partial\ell(r,p)
\partialr

=

N
\left[\sum
i=1

\psi(ki+r)\right]-N\psi(r)+Nln(p)=0

where

\psi(k)=

\Gamma'(k)
\Gamma(k)

is the digamma function.

Solving the first equation for p gives:

p=

Nr
Nr+
N
\sum
i=1
ki

Substituting this in the second equation gives:

\partial\ell(r,p)
\partialr

=

N
\left[\sum
i=1

\psi(ki+r)\right]-N\psi(r)+Nln\left(

r
r+
N
\sum
i=1
ki/N

\right)=0

This equation cannot be solved for r in closed form. If a numerical solution is desired, an iterative technique such as Newton's method can be used. Alternatively, the expectation–maximization algorithm can be used.

Occurrence and applications

Waiting time in a Bernoulli process

For the special case where r is an integer, the negative binomial distribution is known as the Pascal distribution. It is the probability distribution of a certain number of failures and successes in a series of independent and identically distributed Bernoulli trials. For k + r Bernoulli trials with success probability p, the negative binomial gives the probability of k successes and r failures, with a failure on the last trial. In other words, the negative binomial distribution is the probability distribution of the number of successes before the rth failure in a Bernoulli process, with probability p of successes on each trial. A Bernoulli process is a discrete time process, and so the number of trials, failures, and successes are integers.

Consider the following example. Suppose we repeatedly throw a die, and consider a 1 to be a failure. The probability of success on each trial is 5/6. The number of successes before the third failure belongs to the infinite set . That number of successes is a negative-binomially distributed random variable.

When r = 1 we get the probability distribution of number of successes before the first failure (i.e. the probability of the first failure occurring on the (k + 1)st trial), which is a geometric distribution:

f(k;r,p)=(1-p)pk

Recent findings suggest that the waiting time in a Bernoulli process is strongly related to fractals and Dirichlet function.Probability distributions with fractal properties that are related to Dirichlet function can be derived from recurrent processes generated by uniform discrete distributions. Such uniform discrete distributions can be pi digits, flips of a fair dice or live casino spins. Consider the following waiting time in a Bernoulli process: A random variableC is repeatedly sampled N times from a discrete uniform distribution, where i ranges from 1 to N. For instance, consider integer values ranging from 1 to 10. Moments of occurrence, T,signify when events C repeat, defined as C = C or C = C, where k ranges from 1 to M, with M being less than N. Subsequently, define S as the interval between successive T, representing the waiting time for an event to occur. Finally, introduce Z as ln(S) – ln(S), where l ranges from 1 to U-1. The random variable Z displays fractal properties, resembling the shape distribution akin to Thomae's or Dirichlet function.[21]

Overdispersed Poisson

The negative binomial distribution, especially in its alternative parameterization described above, can be used as an alternative to the Poisson distribution. It is especially useful for discrete data over an unbounded positive range whose sample variance exceeds the sample mean. In such cases, the observations are overdispersed with respect to a Poisson distribution, for which the mean is equal to the variance. Hence a Poisson distribution is not an appropriate model. Since the negative binomial distribution has one more parameter than the Poisson, the second parameter can be used to adjust the variance independently of the mean. See Cumulants of some discrete probability distributions.

An application of this is to annual counts of tropical cyclones in the North Atlantic or to monthly to 6-monthly counts of wintertime extratropical cyclones over Europe, for which the variance is greater than the mean.[22] [23] [24] In the case of modest overdispersion, this may produce substantially similar results to an overdispersed Poisson distribution.[25] [26]

Negative binomial modeling is widely employed in ecology and biodiversity research for analyzing count data where overdispersion is very common. This is because overdispersion is indicative of biological aggregation, such as species or communities forming clusters. Ignoring overdispersion can lead to significantly inflated model parameters, resulting in misleading statistical inferences. The negative binomial distribution effectively addresses overdispersed counts by permitting the variance to vary quadratically with the mean. An additional dispersion parameter governs the slope of the quadratic term, determining the severity of overdispersion. The model's quadratic mean-variance relationship proves to be a realistic approach for handling overdispersion, as supported by empirical evidence from many studies. Overall, the NB model offers two attractive features: (1) the convenient interpretation of the dispersion parameter as an index of clustering or aggregation, and (2) its tractable form, featuring a closed expression for the probability mass function.[27]

In genetics, the negative binomial distribution is commonly used to model data in the form of discrete sequence read counts from high-throughput RNA and DNA sequencing experiments.[28] [29] [30] [31]

In epidemiology of infectious diseases, the negative binomial has been used as a better option than the Poisson distribution to model overdispersed counts of secondary infections from one infected case (super-spreading events).[32]

Multiplicity observations (physics)

The negative binomial distribution has been the most effective statistical model for a broad range of multiplicity observations in particle collision experiments, e.g.,

p\barp,hh,hA,AA,e+e-

[33] [34] [35] [36]

Notes and References

  1. Web site: Weisstein . Eric . Negative Binomial Distribution . Wolfram MathWorld . Wolfram Research . 11 October 2020.
  2. e.g. . 10.1038/nature04153 . Superspreading and the effect of individual variation on disease emergence . 2005 . Lloyd-Smith . J. O. . Schreiber . S. J. . Kopp . P. E. . Getz . W. M. . 438 . 7066 . 355–359 . free . 16292310 . 7094981 . 2005Natur.438..355L .
    The overdispersion parameter is usually denoted by the letter

    k

    in epidemiology, rather than

    r

    as here.
  3. Book: Casella . George . Berger . Roger L. . Statistical inference . 2002 . limited . Thomson Learning . 0-534-24312-6 . 95 . 2nd.
  4. Morris K W (1963),A note on direct and inverse sampling, Biometrika, 50, 544–545.
  5. Web site: Mathworks: Negative Binomial Distribution.
  6. Web site: Notes on the Negative Binomial Distribution. Cook. John D..
  7. Web site: Introduction to Probability / Fundamentals of Probability: Lecture 14. Saha. Abhishek.
  8. [SAS Institute]
  9. Book: Crawley, Michael J.. The R Book. Wiley. 2012. 978-1-118-44896-0.
  10. Web site: Set theory: Section 3.2.5 – Negative Binomial Distribution.
  11. Web site: Randomservices.org, Chapter 10: Bernoulli Trials, Section 4: The Negative Binomial Distribution.
  12. Web site: Stat Trek: Negative Binomial Distribution.
  13. Web site: Distinguishing Between Binomial, Hypergeometric and Negative Binomial Distributions. Wroughton. Jacqueline.
  14. Book: Hilbe, Joseph M.. Joseph Hilbe

    . Negative Binomial Regression. Joseph Hilbe. Cambridge University Press. 2011. 978-0-521-19815-8. Second. Cambridge, UK.

  15. Lloyd-Smith. J. O.. 2007. Maximum Likelihood Estimation of the Negative Binomial Dispersion Parameter for Highly Overdispersed Data, with Applications to Infectious Diseases. PLoS ONE. 2. 2. e180. 10.1371/journal.pone.0000180. 17299582. 1791715. 2007PLoSO...2..180L. free.
  16. Carter, E.M., Potts, H.W.W. . 4 April 2014 . Predicting length of stay from an electronic patient record system: a primary total knee replacement example . BMC Medical Informatics and Decision Making . 14 . 26 . 10.1186/1472-6947-14-26 . 3992140 . 24708853 . free .
  17. Orooji . Arezoo . Nazar . Eisa . Sadeghi . Masoumeh . Moradi . Ali . Jafari . Zahra . Esmaily . Habibollah . 2021-04-30 . Factors associated with length of stay in hospital among the elderly patients using count regression models . Medical Journal of the Islamic Republic of Iran . 35 . 5 . 10.47176/mjiri.35.5 . 8111647 . 33996656.
  18. Greenwood . M. . Yule . G. U. . 1920 . An inquiry into the nature of frequency distributions representative of multiple happenings with particular reference of multiple attacks of disease or of repeated accidents . . 83 . 2 . 255–279 . 10.2307/2341080 . 2341080 .
  19. J. B. S. . Haldane . J. B. S. Haldane . On a Method of Estimating Frequencies . . 33 . 3 . 1945 . 222–225 . 2332299 . 10.1093/biomet/33.3.222. 21006837 . 10338.dmlcz/102575 . free .
  20. Aramidis . K. . 1999 . An EM algorithm for estimating negative binomial parameters . . 41 . 2 . 213–221 . 10.1111/1467-842X.00075 . 118758171 . free .
  21. Endrit Dheskali. Generation of a recurrent fractal process using discrete uniform distributions, 26 February 2024, PREPRINT (Version 1) available at Research Square https://doi.org/10.21203/rs.3.rs-3987858/v1
  22. Villarini . G. . Vecchi, G.A. . Smith, J.A.. 2010 . Modeling of the dependence of tropical storm counts in the North Atlantic Basin on climate indices . . 138 . 7 . 2681–2705 . 10.1175/2010MWR3315.1 . 2010MWRv..138.2681V . free .
  23. Mailier . P.J. . Stephenson, D.B. . Ferro, C.A.T. . Hodges, K.I. . 2006 . Serial Clustering of Extratropical Cyclones . . 134 . 8 . 2224–2240 . 10.1175/MWR3160.1 . 2006MWRv..134.2224M . free .
  24. Vitolo . R. . Stephenson, D.B. . Cook, Ian M. . Mitchell-Wallace, K. . 2009 . Serial clustering of intense European storms . . 18 . 4 . 411–424 . 10.1127/0941-2948/2009/0393 . 2009MetZe..18..411V . 67845213 .
  25. Book: McCullagh, Peter . Peter McCullagh . Nelder, John . John Nelder . Generalized Linear Models . Second . Boca Raton: Chapman and Hall/CRC . 1989 . 978-0-412-31760-6 . McCullagh1989.
  26. Book: Cameron, Adrian C. . Trivedi, Pravin K. . Regression analysis of count data . Cambridge University Press . 1998 . 978-0-521-63567-7 . Cameron1998 . registration .
  27. Stoklosa . J. . Blakey, R.V. . Hui, F.K.C. . 2022 . An Overview of Modern Applications of Negative Binomial Modelling in Ecology and Biodiversity . . 14 . 5 . 320 . 10.3390/d14050320 . free .
  28. Robinson . M.D. . Smyth, G.K. . 2007 . Moderated statistical tests for assessing differences in tag abundance. . . 23 . 21 . 2881–2887 . 10.1093/bioinformatics/btm453 . 17881408. free .
  29. Web site: Differential analysis of count data – the.
  30. Airoldi . E. M. . Cohen, W. W. . Fienberg, S. E. . June 2005 . Bayesian Models for Frequent Terms in Text . Proceedings of the Classification Society of North America and INTERFACE Annual Meetings . 990 . 991 . St. Louis, MO, USA .
  31. Web site: edgeR: differential expression analysis of digital gene expression data . Chen . Yunshun . Davis . McCarthy . September 25, 2014 . October 14, 2014.
  32. Lloyd-Smith. J. O. . Schreiber, S. J. . Kopp, P. E. . Getz, W. M. . 2005 . Superspreading and the effect of individual variation on disease emergence . . 438 . 7066 . 355–359 . 10.1038/nature04153. 16292310 . 7094981 . 2005Natur.438..355L .
  33. Grosse-Oetringhaus . Jan Fiete . Reygers . Klaus . 2010-08-01 . Charged-particle multiplicity in proton–proton collisions . Journal of Physics G: Nuclear and Particle Physics . 37 . 8 . 083001 . 10.1088/0954-3899/37/8/083001 . 0954-3899. 0912.0023 . 119233810 .
  34. Rybczyński . Maciej . Wilk . Grzegorz . Włodarczyk . Zbigniew . 2019-05-31 . Intriguing properties of multiplicity distributions . Physical Review D . en . 99 . 9 . 094045 . 10.1103/PhysRevD.99.094045 . 1811.07197 . 2019PhRvD..99i4045R . 2470-0010. free .
  35. Tarnowsky . Terence J. . Westfall . Gary D. . 2013-07-09 . First study of the negative binomial distribution applied to higher moments of net-charge and net-proton multiplicity distributions . Physics Letters B . 724 . 1 . 51–55 . 10.1016/j.physletb.2013.05.064 . 1210.8102 . 2013PhLB..724...51T . 0370-2693. free .
  36. Zborovský . I. . 2018-10-10 . Three-component multiplicity distribution, oscillation of combinants and properties of clans in pp collisions at the LHC . The European Physical Journal C . en . 78 . 10 . 816 . 10.1140/epjc/s10052-018-6287-x . 1811.11230 . 2018EPJC...78..816Z . 1434-6052. free .
  37. Book: Kittel . Wolfram . Soft multihardon dynamics . De Wolf . Eddi A . World Scientific . 2005.
  38. Schaeffer . R . 1984 . Determination of the galaxy N-point correlation function . Astronomy and Astrophysics . 134 . 2 . L15. 1984A&A...134L..15S .
  39. Schaeffer . R . 1985 . The probability generating function for galaxy clustering . Astronomy and Astrophysics . 144 . 1 . L1–L4. 1985A&A...144L...1S .
  40. Perez . Lucia A. . Malhotra . Sangeeta . Rhoads . James E. . Tilvi . Vithal . 2021-01-07 . Void Probability Function of Simulated Surveys of High-redshift Ly α Emitters . The Astrophysical Journal . 906 . 1 . 58 . 10.3847/1538-4357/abc88b . 2011.03556 . 2021ApJ...906...58P . 1538-4357 . free .
  41. Hurtado-Gil . Lluís . Martínez . Vicent J. . Arnalte-Mur . Pablo . Pons-Bordería . María-Jesús . Pareja-Flores . Cristóbal . Paredes . Silvestre . 2017-05-01 . The best fit for the observed galaxy counts-in-cell distribution function . Astronomy & Astrophysics . en . 601 . A40 . 10.1051/0004-6361/201629097 . 1703.01087 . 2017A&A...601A..40H . 0004-6361. free .
  42. Elizalde . E. . Gaztanaga . E. . January 1992 . Void probability as a function of the void's shape and scale-invariant models . Monthly Notices of the Royal Astronomical Society . 254 . 2 . 247–256 . 10.1093/mnras/254.2.247 . 0035-8711. free . 2060/19910019799 . free .
  43. Hameeda . M . Plastino . Angelo . Rocca . M C . 2021-03-01 . Generalized Poisson distributions for systems with two-particle interactions . IOP SciNotes . 2 . 1 . 015003 . 10.1088/2633-1357/abec9f . 2021IOPSN...2a5003H . 2633-1357. free . 11336/181371 . free .
  44. Giovannini . A. . June 1973 . "Thermal chaos" and "coherence" in multiplicity distributions at high energies . Il Nuovo Cimento A . 15 . 3 . 543–551 . 10.1007/bf02734689 . 1973NCimA..15..543G . 118805136 . 0369-3546.
  45. Tezlaf . Scott V. . 2023-09-29 . Significance of the negative binomial distribution in multiplicity phenomena . Physica Scripta . 98 . 11 . 10.1088/1402-4896/acfead . 2310.03776 . 2023PhyS...98k5310T . 263300385 . 0031-8949.
  46. Montmort PR de (1713) Essai d'analyse sur les jeux de hasard. 2nd ed. Quillau, Paris
  47. Pascal B (1679) Varia Opera Mathematica. D. Petri de Fermat. Tolosae
  48. Derrick . M. . Gan . K. K. . Kooijman . P. . Loos . J. S. . Musgrave . B. . Price . L. E. . Repond . J. . Schlereth . J. . Sugano . K. . Weiss . J. M. . Wood . D. E. . Baranko . G. . Blockus . D. . Brabson . B. . Brom . J. M. . 1986-12-01 . Study of quark fragmentation in $^$$^$ annihilation at 29 GeV: Charged-particle multiplicity and single-particle rapidity distributions |url=https://link.aps.org/doi/10.1103/PhysRevD.34.3304 |journal=Physical Review D |volume=34 |issue=11 |pages=3304–3320 |doi=10.1103/PhysRevD.34.3304|pmid=9957066 |hdl=1808/15222 |hdl-access=free }}[36] (See [37] for an overview), and is argued to be a scale-invariant property of matter,[38] [39] providing the best fit for astronomical observations, where it predicts the number of galaxies in a region of space.[40] [41] [42] [43] The phenomenological justification for the effectiveness of the negative binomial distribution in these contexts remained unknown for fifty years, since their first observation in 1973.[44] In 2023, a proof from first principles was eventually demonstrated by Scott V. Tezlaf, where it was shown that the negative binomial distribution emerges from symmetries in the dynamical equations of a canonical ensemble of particles in Minkowski space.[45] Roughly, given an expected number of trials

    \langlen\rangle

    and expected number of successes

    \langler\rangle

    , where

    \langlel{n}\rangle-\langler\rangle=k,\langlep\rangle=

    \langler\rangle
    \langlel{n

    \rangle}     \implies     \langlel{n}\rangle=

    k
    1-\langlep\rangle

    ,\langle{r}\rangle=

    k\langlep\rangle
    1-\langlep\rangle

    ,

    an isomorphic set of equations can be identified with the parameters of a relativistic current density of a canonical ensemble of massive particles, via

    c2\langle\rho2\rangle-\langlej2\rangle=

    2,
    c
    0

    \langle

    2
    \beta
    v

    \rangle=

    \langlej2\rangle
    c2\langle\rho2\rangle

    \implies c2\langle\rho2\rangle=

    2
    c
    0
    1-\langle
    2
    \beta
    v
    \rangle

    ,\langlej2\rangle=

    2
    c\langle
    2
    \beta
    v
    \rangle
    0
    1-\langle
    2
    \beta
    v
    \rangle

    ,

    where

    \rho0

    is the rest density,

    \langle\rho2\rangle

    is the relativistic mean square density,

    \langlej2\rangle

    is the relativistic mean square current density, and

    \langle

    2
    \beta
    v

    \rangle=\langlev2\rangle/c2

    , where

    \langlev2\rangle

    is the mean square speed of the particle ensemble and

    c

    is the speed of light—such that one can establish the following bijective map:
    2
    c
    0

    \mapstok,\langle

    2
    \beta
    v

    \rangle\mapsto\langlep\rangle,c2\langle\rho2\rangle\mapsto\langlel{n}\rangle,\langlej2\rangle\mapsto\langler\rangle.

    A rigorous alternative proof of the above correspondence has also been demonstrated through quantum mechanics via the Feynman path integral.

    History

    This distribution was first studied in 1713 by Pierre Remond de Montmort in his Essay d'analyse sur les jeux de hazard, as the distribution of the number of trials required in an experiment to obtain a given number of successes.[46] It had previously been mentioned by Pascal.[47]

    See also

    References

    .