FUNCTION REFERENCE
nbincdf
Negative binomial cumulative distribution function.
Negative binomial cumulative distribution function.
Syntax
Y = nbincdf(X, R, P)Syntax
Y = nbincdf(X, R, P, 'upper')P(X' <= X) for the negative binomial distribution with R > 0 successes (need not be an integer) and success probability P in [0, 1] (P = 0 puts all the mass at Inf); X counts the failures before the R-th success. With 'upper' it returns P(X' > X), computed directly in that tail so small upper probabilities keep their digits. X is rounded down to an integer. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.
Example
nbincdf(2, 3, 0.4)Example
nbincdf(2, 3, 0.4, 'upper')These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.