gplike
Generalized Pareto negative loglikelihood
Description
returns the generalized Pareto (GP) negative loglikelihood of the distribution parameters
(nlogL = gplike(params,x)params) given the sample data (x).
params(1) and params(2) correspond to the GP shape
(k) and scale (sigma) parameters, respectively.
gplike does not allow a threshold (location) parameter. If the
threshold parameter is known to be nonzero, subtract it from x before
calling gplike.
[
also returns the inverse of the Fisher information matrix nlogL,aVar] = gplike(params,x)aVar. 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
gplike is a function specific to the GP 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",@gppdf)returns the asymptotic covariance matrix of the MLEs for the GP distribution.Create a
GeneralizedParetoDistributionprobability 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.
References
[1] Embrechts, P., C. Klüppelberg, and T. Mikosch. Modelling Extremal Events for Insurance and Finance. New York: Springer, 1997.
[2] Kotz, S., and S. Nadarajah. Extreme Value Distributions: Theory and Applications. London: Imperial College Press, 2000.
Extended Capabilities
Version History
Introduced before R2006a