FUNCTION REFERENCE

prob.NegativeBinomialDistribution

Negative binomial probability distribution object returned by makedist('NegativeBinomial', ...) or fitdist(x, 'NegativeBinomial').

Negative binomial probability distribution object returned by makedist('NegativeBinomial', ...) or fitdist(x, 'NegativeBinomial').

Syntax

pd = makedist('NegativeBinomial', 'R', R, 'p', p)

Stores number of successes R and success probability p. Supports pdf, cdf, icdf, random, mean, std, var, median, paramci and negloglik.

Example

pd = makedist('NegativeBinomial', 'R', 5, 'p', 0.5); class(pd)   % 'prob.NegativeBinomialDistribution'

Differences from MATLAB: Truncation via truncate() is not supported yet.

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