Negative Binomial Distribution Calculator
Work out the probability of seeing exactly k failures before the r-th success, when each trial succeeds with probability p. It also gives the cumulative probability, the mean, the variance and the standard deviation.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Negative Binomial Distribution Calculator
- Enter the number of successes you need (r), a whole number of 1 or more.
- Enter the chance of success on each trial (p), between 0 and 1.
- Enter the number of failures (k) to check. The results update as you type.
Frequently asked questions
What does the negative binomial distribution measure?
It gives the probability of getting exactly k failures before the r-th success in a series of independent trials, where each trial succeeds with probability p. The probability is C(k+r-1, k) times p^r times (1-p)^k.
What are the mean and variance of the negative binomial distribution?
For r successes and success probability p, the mean number of failures is r(1-p)/p and the variance is r(1-p)/p^2. The standard deviation is the square root of the variance.
How is it different from the binomial distribution?
The binomial distribution fixes the number of trials and counts the successes. The negative binomial fixes the number of successes and counts the failures or trials needed to reach them. With r = 1 it becomes the geometric distribution.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.