Lably
Skip to content

Maximum likelihood estimation

Method of estimating the parameters of a statistical model, given observations

  • 20 min read
  • 6 chapters

Related on Lably

Through Statistics, Probability distribution and Mathematical optimization

If the likelihood function is differentiable, the derivative test for finding maxima can be applied. In some cases, the first-order conditions of the likelihood function can be solved analytically; for instance, the ordinary least squares estimator for a linear regression model maximizes the likelihood when the random errors are assumed to have normal distributions with the same variance.

From the perspective of Bayesian inference, MLE is generally equivalent to maximum a posteriori (MAP) estimation with a prior distribution that is uniform in the region of interest. In frequentist inference, MLE is a special case of an extremum estimator, with the objective function being the likelihood.

Principles

We model a set of observations as a random sample from an unknown joint probability distribution which is expressed in terms of a set of parameters. The goal of maximum likelihood estimation is to determine the parameters for which the observed data have the highest joint probability. We write the parameters governing the joint distribution as a vector θ=[θ1,θ2,…,θk]T so that this distribution falls within a parametric family {f(⋅;θ)∣θ∈Θ}, where Θ is called the parameter space, a finite-dimensional subset of Euclidean space. Evaluating the joint density at the observed data sample y=(y1,y2,…,yn) gives a real-valued function, Ln(θ)=Ln(θ;y)=fn(y;θ), which is called the likelihood function. For independent random variables, fn(y;θ) will be the product of univariate density functions: fn(y;θ)=∏k=1nfkunivar(yk;θ).

The goal of maximum likelihood estimation is to find the values of the model parameters that maximize the likelihood function over the parameter space, that is: θ^=argmaxθ∈ΘLn(θ;y).

Intuitively, this selects the parameter values that make the observed data most probable. The specific value θ^=θ^n(y)∈Θ that maximizes the likelihood function Ln is called the maximum likelihood estimate. Further, if the function θ^n:Rn→Θ so defined is measurable, then it is called the maximum likelihood estimator. It is generally a function defined over the sample space, i.e. taking a given sample as its argument. A sufficient but not necessary condition for its existence is for the likelihood function to be continuous over a parameter space Θ that is compact. For an open Θ the likelihood function may increase without ever reaching a supremum value.

In practice, it is often convenient to work with the natural logarithm of the likelihood function, called the log-likelihood: ℓ(θ;y)=ln⁡Ln(θ;y). Since the logarithm is a monotonic function, the maximum of ℓ(θ;y) occurs at the same value of θ as does the maximum of Ln. If ℓ(θ;y) is differentiable in Θ, necessary conditions for the occurrence of a maximum (or a minimum) are ∂ℓ∂θ1=0,∂ℓ∂θ2=0,…,∂ℓ∂θk=0, known as the likelihood equations. For some models, these equations can be explicitly solved for θ^, but in general no closed-form solution to the maximization problem is known or available, and an MLE can only be found via numerical optimization. Another problem is that in finite samples, there may exist multiple roots for the likelihood equations. Whether the identified root θ^ of the likelihood equations is indeed a (local) maximum depends on whether the matrix of second-order partial and cross-partial derivatives, the so-called Hessian matrix

H(θ^)=[∂2ℓ∂θ12|θ=θ^∂2ℓ∂θ1∂θ2|θ=θ^…∂2ℓ∂θ1∂θk|θ=θ^∂2ℓ∂θ2∂θ1|θ=θ^∂2ℓ∂θ22|θ=θ^…∂2ℓ∂θ2∂θk|θ=θ^⋮⋮⋱⋮∂2ℓ∂θk∂θ1|θ=θ^∂2ℓ∂θk∂θ2|θ=θ^…∂2ℓ∂θk2|θ=θ^],

is negative semi-definite at θ^, as this indicates local concavity. Conveniently, most common probability distributions – in particular the exponential family – are logarithmically concave.

Restricted parameter space

While the domain of the likelihood function—the parameter space—is generally a finite-dimensional subset of Euclidean space, additional restrictions sometimes need to be incorporated into the estimation process. The parameter space can be expressed as Θ={θ:θ∈Rk,h(θ)=0},

where h(θ)=[h1(θ),h2(θ),…,hr(θ)] is a vector-valued function mapping Rk into Rr. Estimating the true parameter θ belonging to Θ then, as a practical matter, means to find the maximum of the likelihood function subject to the constraint h(θ)=0.

Theoretically, the most natural approach to this constrained optimization problem is the method of substitution, that is "filling out" the restrictions h1,h2,…,hr to a set h1,h2,…,hr,hr+1,…,hk in such a way that h∗=[h1,h2,…,hk] is a one-to-one function from Rk to itself, and reparameterize the likelihood function by setting ϕi=hi(θ1,θ2,…,θk). Because of the equivariance of the maximum likelihood estimator, the properties of the MLE apply to the restricted estimates also. For instance, in a multivariate normal distribution the covariance matrix Σ must be positive-definite; this restriction can be imposed by replacing Σ=ΓTΓ, where Γ is a real upper triangular matrix and ΓT is its transpose.

In practice, restrictions are usually imposed using the method of Lagrange which, given the constraints as defined above, leads to the restricted likelihood equations ∂ℓ∂θ−∂h(θ)T∂θλ=0 and h(θ)=0,

where λ=[λ1,λ2,…,λr]T is a column-vector of Lagrange multipliers and ∂h(θ)T∂θ is the k × r Jacobian matrix of partial derivatives. Naturally, if the constraints are not binding at the maximum, the Lagrange multipliers should be zero. This in turn allows for a statistical test of the "validity" of the constraint, known as the Lagrange multiplier test.

Nonparametric maximum likelihood estimation

Nonparametric maximum likelihood estimation can be performed using the empirical likelihood.

Method of support

The method of support is a technique that is used to make inferences from datasets. According to A. W. F. Edwards, the method of support aims to make inferences about unknown parameters in terms of the relative support, or log likelihood, induced by a set of data for a particular parameter value. The technique may be used whether or not prior information is available. The method of maximum likelihood is part of the method of support, but note that the method of support also provides confidence regions that are defined in terms of their support.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics and probability