Function Reference: nbinpdf

statistics: y = nbinpdf (x, n, ps)

Negative binomial probability density function (PDF).

For each element of x, compute the probability density function (PDF) at x of the negative binomial distribution with parameters n and ps. The size of p is the common size of x, 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, nbininv, nbinrnd, nbinstat

Source Code: nbinpdf