Statistics

Negative Binomial Probability Calculator

Find the probability of k failures before the rth success in independent trials.

Data stays on this deviceConvention explained below
Probability workspace
Probability workspace

Probabilities range from 0 to 1. Check whether the method gives cumulative or exact-count probability.

See the method

Set model parameters

Runs on your device

Your probability

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter required successes, failures before last success, success probability.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Required successesNumeric value. Minimum: 1. Maximum: 10000.3
Failures before last successNumeric value. Zero or positive. Maximum: 10000.2
Success probabilityNumeric value. Must be greater than zero. Maximum: 1.0.5

Result for these sample inputs

0.1875
Mean failures
3

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

Choose the right inputs and workflow

This convention counts failures before the r-th success. If your data record total trials, subtract r to get failures. The trials must have a common independent success probability.

The method, explained

P(K=k)=C(k+r−1,k)p^r(1−p)^k.

A WORKED EXAMPLE

Using required successes = 3, failures before last success = 2, success probability = 0.5, the result is 0.1875. Change these example inputs to match your task; use the method above to check each step.

Understanding your result

Counts failures, not total trials. Trials are independent with constant success probability; very small probabilities may round to zero.

What to keep in mind

Counts failures, not total trials. Trials are independent with constant success probability; very small probabilities may round to zero. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.

Methodology maintained by ClarityKit. How these tools are built and checked.