evlike
Extreme value negative loglikelihood
Syntax
Description
returns the type 1 extreme value negative loglikelihood of the distribution parameters
(nlogL = evlike(params,x)params) given the sample data (x).
params(1) and params(2) are the location parameter
mu and scale parameter sigma, respectively.
The type 1 extreme value distribution is also known
as the Gumbel distribution. The software uses a version of the distribution that is
suitable for modeling minima. You can use the mirror image of this distribution to model
maxima by negating x. If x has a Weibull
distribution, then X = log(x) has the type 1 extreme
value distribution. See Extreme Value Distribution for more details.
[
also returns the inverse of the Fisher information matrix nlogL,aVar] = evlike(___)aVar, using
any of the input argument combinations in the previous syntaxes. If the values in
params are the maximum likelihood estimates (MLEs) of the
parameters, the diagonal elements of aVar are their asymptotic
variances. aVar is based on the observed Fisher information, not the
expected information.
Examples
Input Arguments
Output Arguments
Alternative Functionality
evlike is a function specific to the extreme value 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",@evpdf)returns the asymptotic covariance matrix of the MLEs for the extreme value distribution.Create an
ExtremeValueDistributionprobability 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