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

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu