Negative Binomial Distribution Calculator
Use this negative binomial distribution calculator to find exact and cumulative probabilities for the trial on which the r-th success occurs.
About the Negative Binomial Distribution
The negative binomial distribution models the number of trials needed to get the r-th success in a sequence of independent Bernoulli trials. For example, if you want to find the probability that it takes exactly 5 flips of a coin to get 3 heads, you would use this distribution.
Negative Binomial Probability Formula
The exact probability that the r-th success occurs exactly on the x-th trial is:
P(X = x) = x-1Cr-1 × pr × (1 - p)x - r
- p = Probability of success on a single trial
- r = Target number of successes
- x = The trial number on which the r-th success occurs
- x-1Cr-1 = Combinations formula
Mean and Variance
For a negative binomial distribution representing the number of trials required to achieve r successes:
- Mean (Expected Value, μ): μ = r / p
- Variance (σ²): σ² = r(1 - p) / p²
- Standard Deviation (σ): σ = √[r(1 - p) / p²]