Negative Binomial Distribution Calculator

Enter success count r, trial count k, and success probability p to get the PMF, CDF, mean, and variance of the negative binomial distribution.

Parameters

Integer ≥ 1

Integer ≥ r

Between 0 and 1 (inclusive)

Enter values and click Calculate to see results.

Summary

Enter success count r, trial count k, and success probability p to get the PMF, CDF, mean, and variance of the negative binomial distribution.

How it works

  1. Enter r (number of successes required), k (trial number of the r-th success), and p (probability of success per trial).
  2. The calculator validates that k >= r and 0 < p <= 1.
  3. It computes the PMF: P(X=k) = C(k-1, r-1) * p^r * (1-p)^(k-r).
  4. The CDF P(X <= k) sums all PMF values from k=r up to the entered k.
  5. Mean (r/p) and variance (r*(1-p)/p^2) are displayed alongside the PMF chart.

Use cases

  • Determine the probability that the 5th defective item is found on the 20th inspection.
  • Model the number of sales calls needed to close a target number of deals.
  • Estimate how many trials are needed before achieving a certain number of successes in a clinical trial.
  • Analyze failure patterns in reliability engineering and quality assurance.
  • Model overdispersed count data in epidemiology and ecology.
  • Compute waiting-time probabilities in queuing and scheduling models.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu