FUNCTION REFERENCE

nbininv

Inverse of the negative binomial cumulative distribution function.

Inverse of the negative binomial cumulative distribution function.

Syntax

X = nbininv(Y, R, P)

Returns the smallest integer X with cdf(X) >= Y. Y = 0 gives 0 and Y = 1 the top of the support (Inf when it is unbounded). Parameters as in nbincdf: 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. Y outside [0, 1] gives NaN. 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.

Example

nbininv(0.3, 3, 0.4)

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.