Trials until r-th success (generalization of geometric)
The negative binomial distribution models the number of trials needed to achieve successes in repeated independent trials. The probability mass function is . The expected value is and the variance is . This distribution is used for modeling scenarios like the number of calls until sales are made, games played until wins are achieved, or attempts until successes occur.
CDF for waiting time until r-th success
| Aspect | Formula or statement | Note or example |
|---|---|---|
| ParametersThe two numbers that fix the distribution, as the parameters section explains. | , the target number of successes (a positive integer); , the success probability, | trials are independent with constant success probability |
| SupportThe trial numbers on which the -th success can land, set out with the PMF and its support. | at least trials are needed to collect successes | |
| PMFThe probability that the -th success comes on trial , from the PMF section. | the -th trial must be the -th success; arrange successes among the first trials | |
| CDFThe probability of reaching successes within trials, from the CDF section. | no closed form; expressible through the regularized incomplete beta function | |
| Expected valueThe average number of trials needed for successes, derived in the expected value section. | times the geometric wait, by linearity over independent geometric waits | |
| VarianceHow widely the number of trials spreads, worked out in variance and standard deviation. | ; | grows linearly with ; explodes as |
| Mode and medianThe most likely trial count and the middle of the distribution, found in mode and median. | trials; the median lies between the mode and the mean and is computed numerically | right-skewed; the median is typically slightly below the mean |
| Special caseWaiting for a single success is the geometric wait, as the key terms note. | setting collapses to the geometric distribution | |
| Canonical exampleThe die-rolling wait the page works through; variance and standard deviation finishes its numbers. | rolling a die until three 6s: , | rolls, , |