The negative binomial distribution, also known as the Pascal distribution or Pólya distribution, gives the probability of successes and
failures in
trials, and success on the
th trial. The probability
mass function is therefore given by
|
(1)
| |||
|
(2)
| |||
|
(3)
|
where
is a binomial coefficient. The distribution
function is then given by
|
(4)
| |||
|
(5)
| |||
|
(6)
|
where
is the gamma function,
is a regularized
hypergeometric function, and
is a regularized
beta function.
The negative binomial distribution is implemented in the Wolfram Language as NegativeBinomialDistribution[r, p].
Defining
|
(7)
| |||
|
(8)
|
the characteristic function is given by
|
(9)
|
and the moment-generating function by
|
(10)
|
Since ,
|
(11)
| |||
|
(12)
| |||
|
(13)
| |||
|
(14)
|
The raw moments are therefore
|
(15)
| |||
|
(16)
| |||
|
(17)
| |||
|
(18)
|
where
|
(19)
|
and
is the Pochhammer symbol. (Note that Beyer 1987,
p. 487, apparently gives the mean incorrectly.)
This gives the central moments as
|
(20)
| |||
|
(21)
| |||
|
(22)
|
The mean, variance, skewness and kurtosis excess are then
|
(23)
| |||
|
(24)
| |||
|
(25)
| |||
|
(26)
|
which can also be written
|
(27)
| |||
|
(28)
| |||
|
(29)
| |||
|
(30)
|
The first cumulant is
|
(31)
|
and subsequent cumulants are given by the recurrence relation
|
(32)
|
In a different use of the name, a Pólya distribution describes the number of draws of one color in a Pólya urn with a fixed total number of draws. For positive reinforcement, the distribution of this finite count is a beta binomial distribution (Siegrist).
The Banach matchbox problem uses the number of selections of one box before a fixed number of selections of the other, a negative binomial count.