Negative Binomial Distribution

Modeling the number of trials needed to achieve a specified number of successes.

A Generalization of the Geometric Distribution

The Negative Binomial distribution answers the question: "How many trials will it take to get my rr-th success?" It is a generalization of the Geometric distribution, which is just the special case where r=1r=1.

In finance, a trader might use this to model how many trades it will take to achieve 10 winning trades. A venture capitalist could model how many startups they need to fund to get 3 successful exits.

The Formula
The probability that the rr-th success occurs on the kk-th trial is:
P(X=k)=(k1r1)pr(1p)krP(X=k) = \binom{k-1}{r-1} p^r (1-p)^{k-r}
  • kk is the total number of trials.
  • rr is the desired number of successes.
  • pp is the probability of success on a single trial.
Interactive Negative Binomial Distribution
Adjust the required number of successes (rr) and the probability (pp) to see how the distribution changes.