CalcWorldHub
Free online calculator · no signup

Negative-binomial exact probability calculator

Find the probability of exactly k failures before the r-th success in independent Bernoulli trials.

Worked example
Relevant result
Clear result · useful details
Default calculator result0.0464

Calculator

4,000 tools
Negative-binomial exact probability calculator — Required successes r, Failure probability before success q, Failure count k and calculation method
Negative-binomial exact probability calculator: inputs and calculation method.

How to use this calculator

Find the probability of exactly k failures before the r-th success in independent Bernoulli trials.

  1. Enter Required successes r, Failure probability before success q, Failure count 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

Negative-binomial exact probability calculator

Find the probability of exactly k failures before the r-th success in independent Bernoulli trials.

Inputs and units

  • Required successes r: Positive whole-number target of successful Bernoulli trials before the count stops.
  • Failure probability before success q: Probability of failure on each independent trial, from 0 to below 1; success probability is 1−q.
  • Failure count k: Nonnegative whole-number failures observed before the r-th success.

Formula and method

P(F=k)=C(k+r−1,k)(1−q)^r q^k

Worked example

For r=3, failure probability q=0.4, and k=5, C(7,5)(0.6)^3(0.4)^5≈0.0464.

Interpreting the result

This is the probability of one exact failure count; probabilities over several counts must be summed.

Assumptions and limits

r is a positive integer, k a nonnegative integer, q in [0,1], and trial success probability stays constant.

Sources and method

  • Documents the failures-before-successes parameterization and probability-mass-function implementation; mean and variance are available as distribution moments. SciPy: negative-binomial distribution

Frequently asked questions

Which inputs determine this result?

The visible inputs are Required successes r, Failure probability before success q, Failure count k. Each is used by the displayed formula; the calculator does not use any other hidden measurement.

When does this method apply?

r is a positive integer, k a nonnegative integer, q in [0,1], and trial success probability stays constant.

How do I use the Negative-binomial exact probability calculator?

Enter Required successes r, Failure probability before success q, Failure count 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 exact probability?

For r=3, failure probability q=0.4, and k=5, C(7,5)(0.6)^3(0.4)^5≈0.0464.

What does the Negative-binomial exact probability calculator calculate?

Find the probability of exactly k failures before the r-th success in independent Bernoulli trials.

Good calculators show their work.

CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units