Negative Binomial Distribution Calculator
Calculate exact and cumulative probabilities for failures before a chosen number of successes in independent Bernoulli trials.
About the negative binomial distribution
Negative binomial examples
These examples use failures before the target success.
| Inputs | Result | Interpretation |
|---|---|---|
| r = 3, p = 0.5, k = 2 | P(X = 2) = 0.1875 | There is an 18.75% chance of exactly two failures before the third success. |
| r = 2, p = 0.5, k = 0 | P(X = 0) = 0.25 | Two immediate successes occur with probability 0.5 squared. |
| r = 1, p = 0.25, k = 3 | P(X = 3) = 0.10546875 | This geometric special case measures three failures before the first success. |
How to use the calculator
- Enter the positive whole number of successes required to stop the experiment.
- Enter the constant probability of success for one trial as a decimal from greater than zero through one.
- Enter the nonnegative whole number of failures to evaluate.
- Select Calculate to view the exact probability, cumulative tails, mean, and variance.
Negative binomial distribution FAQ
What does the negative binomial distribution measure?
It measures the number of failures before a specified number of successes occurs. It assumes independent trials with the same success probability.
How is it different from the binomial distribution?
A binomial experiment fixes the number of trials and counts successes. A negative binomial experiment fixes the number of successes and counts failures or trials until that target.
Is the geometric distribution related?
Yes. The geometric distribution is the negative binomial distribution with one required success, so it counts failures before the first success.
Can the probability of success be entered as a percentage?
Enter it as a decimal rather than a percentage. For example, use 0.4 for a 40 percent probability of success.
Why must successes and failures be whole numbers?
They are counts of discrete trial outcomes, so fractional values have no meaning in this model. The calculator rejects negative and non-integer counts.