Dulranga's Notes
Semester 3MathematicsApplied StatisticsDistributions

Negative Binomial Distribution

This is the opposite of Binomial Distribution. Thus called, "Negative binomial distribution". There is no negative probabilities involved, just the idea is the other way around.

neg-binomial.png

Core Idea

Binomial is about modeling distribution of success cases of a repeating bernoulli experiment. Negative Binomial is about modeling the distribution of failed cases until the first success of a repeating bernoulli experiment.

Imagine you are playing a video game where you need to collect rr rare items (successes) to unlock a trophy. Each attempt has a success probability pp. The total number of failed attempts XX you experience along the way follows a Negative Binomial distribution.

We write this as:

X∼NB(r,p)X \sim \text{NB}(r, p)

Where:

  • rr = target number of total successes (a fixed positive integer)
  • pp = probability of success on any single trial
  • XX = total number of trials required to achieve rr successes (here XX includes failures + rr successes)

PMF

P(X=x)=(x−1r−1)pr(1−p)x−rP(X = x) = \binom{x - 1}{r - 1} p^r (1 - p)^{x - r}

Explanation: The experiment might go like any of this. r=5r=5

0,0,0,1,1,0,0,0,1,1,0,10,1,1,0,1,1,10,1,1,0,1,0,0,0,0,0,0,0,1,1\begin{align*} 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0,1 \\ 0, 1, 1, 0, 1, 1, 1 \\ 0, 1, 1, 0, 1, 0,0,0,0,0,0,0,1, 1 \\ \end{align*}

But notice the last item is always 11. This is because we stop the at the last position. So that is not a probability but a Fact. So we need to find ways to choose r−1r-1 spots from x−1x-1 positions to distribute them. Thus, (x−1r−1)\binom{x - 1}{r - 1} term is included. The other part is just Bernoulli Distribution

Properties

Expected Value

E[X]=rpE[X] = \frac{r}{p}

Variance

Var(X)=r(1−p)p2\text{Var}(X) = \frac{r(1 - p)}{p^2}

On this page