Negative Binomial Distribution Calculator
Enter r successes, probability p and k failures.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The negative binomial distribution models the number of failures that occur before a fixed number of successes, r, is reached in a sequence of independent trials each with success probability p — for example, how many times you would expect to miss a free throw before making your 5th successful one. Its mean is r(1−p)/p and its variance is r(1−p)/p², and setting r = 1 reduces it to the simpler geometric distribution, which just counts failures before the first success.
It differs from the ordinary binomial distribution in what is held fixed: binomial fixes the number of trials and counts successes, while negative binomial fixes the number of successes and counts trials (or failures) needed to get there. Beyond coin-flip style examples, the distribution is widely used in reliability engineering to model the number of failures before a set number of successful units, in sports analytics for streaks, and in ecology and epidemiology to model overdispersed count data — counts with more variance than a plain Poisson distribution would predict, such as disease case counts across regions.
Enter the number of required successes r, the success probability p, and the number of failures k, and the calculator returns the probability along with the distribution's mean and variance.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)