betalike
Beta negative loglikelihood
Description
returns the beta negative loglikelihood of the distribution parameters
(nlogL = betalike(params,x)params) given the sample data (x).
params(1) and params(2) correspond to the beta
a and b parameters, respectively.
betalike is a utility function for maximum likelihood estimation of
the beta distribution. The likelihood assumes that all the elements in the data sample are
mutually independent. Because betalike returns the negative beta
loglikelihood function, minimizing betalike using fminsearch is the same as maximizing the likelihood.
[
also returns the inverse of the Fisher information matrix nlogL,aVar] = betalike(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
betalike is a function specific to the beta 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",@betapdf)returns the asymptotic covariance matrix of the MLEs for the beta distribution.Create a
BetaDistributionprobability 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