NEGBINOM.DIST
Returns negative-binomial probabilities for failures observed before a target success count.
NEGBINOM.DIST supports exact-failure mode (PMF) and cumulative mode (CDF).
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=NEGBINOM.DIST(number_f, number_s, probability_s, cumulative)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number_f | number | Required | — |
number_s | number | Required | — |
probability_s | number | Required | — |
cumulative | number | Required | — |
How it works
At f failures before the rth success, the probability is C(f+r−1,f) pʳ(1−p)ᶠ. The cumulative mode counts at most f failures. Valid inputs have f ≥ 0, r ≥ 1 and p in [0,1].
Remarks
number_fis truncated and must be>= 0.number_sis truncated and must be>= 1.probability_smust satisfy0 < p < 1.
Error cases
- Returns
#NUM!when counts or probability are outside valid ranges.
Examples
Find the point probability for three failures before the fourth success.
Formula =NEGBINOM.DIST(3,4,0.5,FALSE)
Expected result 0.15625
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Accumulate probabilities for no more than two failures before the fourth success.
Formula =NEGBINOM.DIST(2,4,0.5,TRUE)
Expected result 0.34375
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate the probability of four successes without any failure.
Formula =NEGBINOM.DIST(0,4,0.5,FALSE)
Expected result 0.0625
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The failure count cannot be negative.
Formula =NEGBINOM.DIST(-1,4,0.5,FALSE)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Negative binomial PMF
Formula =NEGBINOM.DIST(2,1,0.5,FALSE)
Expected result 0.125
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Negative binomial CDF
Formula =NEGBINOM.DIST(2,1,0.5,TRUE)
Expected result 0.875
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.