explike
Exponential negative loglikelihood
Syntax
Description
[
also returns the inverse of the Fisher information nlogL,aVar] = explike(___)aVar, a scalar,
using any of the input argument combinations in the previous syntaxes. If the input
parameter value in mu is the maximum likelihood estimate (MLE),
aVar is its asymptotic variance. aVar is based on
the observed Fisher information, not the expected information.
Examples
Input Arguments
Output Arguments
Alternative Functionality
explike is a function specific to the exponential distribution.
Statistics and Machine Learning Toolbox™ also offers the generic functions mlecov, fitdist, negloglik, and proflik and the Distribution
Fitter app, which support various probability distributions.
mlecovreturns the asymptotic covariance matrix of the MLEs of the parameters for a distribution specified by a custom probability density function. For example,mlecov(params,x,"pdf",@exppdf)returns the asymptotic covariance matrix of the MLEs for the exponential distribution.Create an
ExponentialDistributionprobability distribution object by fitting the distribution to data using thefitdistfunction or the Distribution Fitter app. The object propertyParameterCovariancestores the covariance matrix of the parameter estimates. To obtain the negative loglikelihood of the parameter estimates and the profile of the likelihood function, pass the object tonegloglikandproflik, respectively.
Extended Capabilities
Version History
Introduced before R2006a