Skip to content

Negative Binomial Distribution

Definition

Let rr be a positive integer and p∈(0,1]p\in(0,1]. A random variable XX has a negative binomial distribution if XX counts the number of trials needed to obtain the rrth success in independent Bernoulli trials with success probability pp.


Interpretation

In this trial-count convention, a negative binomial distribution generalizes the first success distribution. Instead of waiting for the first success, it waits for a fixed later success.

Probability bars for the trial on which the third success occurs with success probability 0.4, starting at trial 3, peaking at 5 and 6, with mean 7.5.

The diagram uses r=3r=3 and p=0.4p=0.4. For k≥rk\ge r, P(X=k)=(k−1r−1)pr(1−p)k−r\mathbb{P}(X=k)=\binom{k-1}{r-1}p^r(1-p)^{k-r}: the first k−1k-1 trials have r−1r-1 successes, and trial kk is the rrth success.

Independent random variables describe the successive trial results. Their probabilities multiply for any fixed success-and-failure sequence, after which counting the sequences that place the final success at the specified trial gives the mass function.


Key Results

  • It counts waiting time until a fixed number of successes.
  • For r=1r=1, XX has the first success distribution. The shifted variable X−1X-1 has the geometric distribution used in this course.
  • The failure-count convention uses X−rX-r instead of XX. For k=r,r+1,…k=r,r+1,\ldots, the trial-count probability is P(X=k)=(k−1r−1)pr(1−p)k−r\mathbb{P}(X=k)=\binom{k-1}{r-1}p^r(1-p)^{k-r}; the final trial is a success, and the preceding k−1k-1 trials contain exactly r−1r-1 successes.

Examples

  • The number of sales calls needed to close five sales can be negative binomial.
  • The number of coin tosses needed to obtain three heads follows a negative binomial model.
  • The number of inspected items until the tenth defective item can be modelled this way under independent constant defect probability.

Prerequisites

Sources

Aliases: Pascal distribution Keywords: NBin(r,p), negative binomial random variable Symbols: element of

Last updated: 20 October 2026 03:02