Maximum Likelihood Estimation
Finding a Maximum Likelihood Estimate
Maximum likelihood estimation chooses the parameter value under which the observed data are most plausible according to a stated model. If independent observations have density or mass function f(x;θ), the likelihood is L(θ)=∏i=1nf(xi;θ). Although this formula resembles a probability expression, the data are held fixed while θ varies.
A likelihood curve computed for one fixed observed sample and plotted against candidate values of θ. The dashed line, the tick on the horizontal axis and the marked point all sit at the computed maximum of the plotted function, which is the maximum likelihood estimate θ^.
In practice, maximize the log-likelihood rather than the likelihood itself. Since logarithm is increasing, the maximizing parameter does not change: ℓ(θ)=logL(θ) has the same maximizer. Products become sums, which makes differentiation easier. A complete MLE calculation also checks the permitted parameter values, because a stationary point outside the model's parameter space is not an answer.
Worked Bernoulli pattern
For independent Bernoulli observations, let k be the number of successes in a sample of size n. Ignoring the factor that does not depend on p, the likelihood is proportional to pk(1−p)n−k. Differentiating the log-likelihood klogp+(n−k)log(1−p) gives the estimate p=k/n. This result has a useful check: it is between zero and one because a probability parameter must be in that range.
Relative likelihood for a binary sample with 6 successes in 10 trials
A common mistake is to maximize each individual observation separately or to forget a support restriction. For a model whose support changes with its parameter, an impossible parameter value has likelihood zero no matter how appealing a derivative calculation may look.
The figure shows the governing idea: compare candidate parameter values using the same observed sample, then choose the location of the likelihood peak.
Using the peak-selection principle in the figure, consider independent observations with exponential density f(x;λ)=λe−λx for x>0. For a sample of size 3 with total ∑xi=12, what is the maximum likelihood estimate of λ?
A likelihood curve computed for one fixed observed sample and plotted against candidate values of θ. The dashed line, the tick on the horizontal axis and the marked point all sit at the computed maximum of the plotted function, which is the maximum likelihood estimate θ^.
Relative likelihood for a binary sample with 6 successes in 10 trials
Suppose Xi are independent with density f(x;θ)=1/θ for 0≤x≤θ, and zero otherwise. The observed values are 2,5,4. Which value is the MLE of θ?