Navigation

Operators and Keywords

Function List:

C++ API

: nbininv (x, n, p)

For each element of x, compute the quantile (the inverse of the CDF) at x of the negative binomial distribution with parameters n and p.

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 p before the n-th success follows this distribution.

Package: octave