FUNCTION REFERENCE

nbinpdf

Negative binomial probability mass function.

Negative binomial probability mass function.

Syntax

Y = nbinpdf(X, R, P)

Evaluates the probability mass of 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 at X. Non-integer X gives 0. 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

nbinpdf(2, 3, 0.4)

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