FUNCTION REFERENCE

negloglik

Negative log-likelihood of a fitted distribution object.

Negative log-likelihood of a fitted distribution object.

Syntax

nll = negloglik(pd)

Returns the negative log-likelihood of the data the object was fitted to (with its censoring and frequencies), at the object's parameters; the same value as pd.NLogL. Objects from makedist return [].

Example

pd = fitdist([1.2 0.4 2.2 0.9 3.1]', 'Weibull'); nll = negloglik(pd)

Differences from MATLAB: truncated distributions are not supported.

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