MyVIPWebTools logo

Negative Binomial Distribution Calculator — Find P(X = k) Failures Before r Successes

Our Negative Binomial Distribution Calculator finds the probability of observing exactly k failures before achieving the rth success, in a sequence of independent trials each with success probability p, using the formula P(X = k) = C(k+r−1, k)(1−p)ᵏpʳ. It also reports the distribution's mean (r(1−p)/p) and variance (r(1−p)/p²) — useful for modeling 'how many failures until we succeed r times' scenarios like sales calls before r deals close, or defective parts before r good ones are found.

Quick Answer

The negative binomial distribution gives the probability of k failures before the rth success: P(X = k) = C(k+r−1,k)(1−p)ᵏpʳ. Enter r, p, and k below to get the exact probability along with the distribution's mean and variance.

Enter r, p, and k, then click Calculate.

How to Use the Negative Binomial Distribution Calculator — Failures Before Success

  1. 1

    Enter the number of successes needed (r).

  2. 2

    Enter the probability of success on a single trial (p), between 0 and 1.

  3. 3

    Enter the exact number of failures (k) you want the probability for.

  4. 4

    Click 'Calculate' to get P(X = k) along with the distribution's mean and variance.

Why Use Negative Binomial Distribution Calculator — Failures Before Success?

The negative binomial distribution flips the usual binomial question around: instead of asking how many successes occur in a fixed number of trials, it asks how many failures happen before a fixed number of successes is reached — the natural model for 'keep trying until you succeed r times.' The formula involves a combination term with a shifted index, C(k+r−1, k), which is easy to set up incorrectly by hand. This calculator computes the exact probability and the distribution's summary statistics instantly, with the formula shown step by step.

Frequently Asked Questions

Related Tools

Negative Binomial Distribution Calculator — Failures Before Success | MyVIPWebTools