Negative Binomial Distribution
Visualize the probability of experiencing a number of failures before achieving a target number of successes.
Negative Binomial Distribution
Concept Overview
The Negative Binomial Distribution models the number of failures that occur before a specified number of successes are achieved in a sequence of independent and identically distributed Bernoulli trials. Unlike the standard binomial distribution which counts successes in a fixed number of trials, the negative binomial counts failures until a fixed number of successes is reached.
Mathematical Definition
Let a sequence of independent Bernoulli trials have probability of success p in each trial. The random variable X represents the number of failures that occur before the r-th success is observed. The probability mass function (PMF) is given by:
• k = 0, 1, 2, ... is the number of failures
• r = 1, 2, 3, ... is the target number of successes
• p is the probability of success in a single trial (0 < p ≤ 1)
• C(n, k) represents "n choose k" combinations
The intuition behind the combination term C(k + r - 1, k) is that the last (k + r)-th trial must be the r-th success. Therefore, the remaining (r - 1) successes must be distributed among the preceding (k + r - 1) trials.
Key Concepts
Expected Value and Variance
The expected number of failures before the r-th success is given by:
The variance of the distribution is:
Relation to Geometric Distribution
The Negative Binomial Distribution is a generalization of the Geometric Distribution. Specifically, when the target number of successes r = 1, the Negative Binomial Distribution becomes the Geometric Distribution, modeling the number of failures before the first success.
Historical Context
The term "negative binomial" originates from the fact that the probabilities can be derived from the Taylor series expansion of a binomial expression with a negative exponent: (1 - q)-r. This mathematical structure was formalized in the early 20th century, though the underlying concepts regarding sequences of independent trials trace back to Blaise Pascal and Pierre de Fermat's foundational work in probability theory in the 1650s. It gained substantial practical importance when statisticians realized its utility in modeling overdispersed count data, situations where the variance exceeds the mean (unlike the Poisson distribution).
Real-world Applications
- Epidemiology: Modeling disease outbreaks where a few "super-spreaders" cause many infections while most cause none, leading to overdispersed infection counts.
- Quality Control: Determining the probability of finding a specific number of defective items (failures) before a required number of functional items (successes) are manufactured.
- Ecology: Modeling the distribution of species abundance and population dynamics where spatial clustering occurs, causing variance to be higher than what a Poisson model assumes.
- Insurance and Actuarial Science: Predicting the frequency of claims over a time period, especially when the claim rates vary significantly among the insured population.
Related Concepts
- Probability Distributions: General discrete distributions and PMFs for count data.
- Poisson Process: Modeling events over time, often compared against Negative Binomial models for count data.
- Maximum Likelihood Estimation: Often used to estimate parameters r and p given observed count data.
Experience it interactively
Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Negative Binomial Distribution module.
Try Negative Binomial Distribution on Riano →