Probability distribution calculator

Negative Binomial Distribution Calculator

Calculate the probability of k failures before the r-th success, with cumulative probability, mean and variance.

Negative Binomial Calculator

Calculate the probability of k failures before the r-th success.

P(X = k) = C(k + r − 1, k) × pʳ × (1 − p)ᵏ

This calculator uses the convention that X counts failures before the r-th success.

Negative binomial distribution formula

P(X = k) = C(k + r − 1, k) × pʳ × (1 − p)ᵏ

Here r is the required number of successes, p is the probability of success on each trial, and k is the number of failures before the r-th success.

Negative binomial vs binomial

A binomial distribution fixes the number of trials and counts successes. A negative binomial distribution fixes the number of successes and counts the failures or trials needed to reach that target. The two distributions therefore answer different probability questions even though both use repeated success/failure trials.

For the standard binomial model, see the Binomial PDF vs CDF guide to understand exact and cumulative probability. For a direct calculation, use the Binomial Distribution Calculator.

Example

If the probability of success is 0.4 and you want 3 successes, the negative binomial model can answer questions about how many failures occur before the third success.

Related distributions and probability guides