Function Reference: nbininv

statistics: x = nbininv (p, n, ps)

Inverse of the negative binomial cumulative distribution function (iCDF).

For each element of p, compute the quantile (the inverse of the CDF) at p of the negative binomial distribution with parameters n and ps. The size of x is the common size of p, n, and ps. A scalar input functions as a constant matrix of the same size as the other inputs.

When n is integer this is the Pascal distribution. When n is extended to real numbers this is the Polya distribution.

The number of failures in a Bernoulli experiment with success probability ps before the n-th success follows this distribution.

See also: nbininv, nbinpdf, nbinrnd, nbinstat

Source Code: nbininv