CalcWorldHub
Free online calculator · no signup

Negative binomial probability calculator

Find the probability that the rth success occurs on exactly trial k in repeated Bernoulli trials.

Negative binomial probability calculator — Success probability p, Required successes r, Trial of rth success k and calculation method
Negative binomial probability calculator: inputs and calculation method.

How to use this calculator

Find the probability that the rth success occurs on exactly trial k in repeated Bernoulli trials.

  1. Enter Success probability p, Required successes r, Trial of rth success k. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How the Negative binomial probability calculator works

Find the probability that the rth success occurs on exactly trial k in repeated Bernoulli trials.

Inputs and units

  • Success probability p: Success probability p is the probability of success on each trial, from 0 to 1.
  • Required successes r: Required successes r is a positive whole count.
  • Trial of rth success k: Trial k is the whole trial number on which success r occurs.

Formula and method

P(Tᵣ=k)=C(k−1,r−1)pʳ(1−p)^(k−r), k≥r.

Worked example

For p=0.5, r=2, and k=3, the first two trials contain one success and the third is a success: C(2,1)(0.5)²(0.5)=0.25.

Interpreting the result

The count k includes the final successful trial; the number of failures before it is k−r.

Assumptions and limits

Trials are independent with a constant success probability. r and k are whole counts, r≥1 and k≥r. At p=0, the event has probability zero; at p=1 it is certain only when k=r.

Sources and method

Frequently asked questions

Does k count failures or total trials?

k is the total trial number, including the trial on which the rth success occurs.

What if k<r?

There are too few trials to contain r successes, so the input is invalid.

How do I use the Negative binomial probability calculator?

Enter Success probability p, Required successes r, Trial of rth success k. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Negative binomial probability?

For p=0.5, r=2, and k=3, the first two trials contain one success and the third is a success: C(2,1)(0.5)²(0.5)=0.25.

What does the Negative binomial probability calculator calculate?

Find the probability that the rth success occurs on exactly trial k in repeated Bernoulli trials.