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;θ)f(x;\theta), the likelihood is L(θ)=∏i=1nf(xi;θ)L(\theta)=\prod_{i=1}^{n}f(x_i;\theta). Although this formula resembles a probability expression, the data are held fixed while θ\theta varies.

A likelihood curve computed for one fixed observed sample and plotted against candidate values of \theta. 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 \hat\theta.

A likelihood curve computed for one fixed observed sample and plotted against candidate values of θ\theta. 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 θ^\hat\theta.


In practice, maximize the log-likelihood rather than the likelihood itself. Since logarithm is increasing, the maximizing parameter does not change: ℓ(θ)=log⁡L(θ)\ell(\theta)=\log L(\theta) 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 kk be the number of successes in a sample of size nn. Ignoring the factor that does not depend on pp, the likelihood is proportional to pk(1−p)n−kp^k(1-p)^{n-k}. Differentiating the log-likelihood klog⁡p+(n−k)log⁡(1−p)k\log p+(n-k)\log(1-p) gives the estimate p^=k/n\widehat 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

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.

According to the figure, which parameter value is the maximum likelihood estimate?

A likelihood curve computed for one fixed observed sample and plotted against candidate values of \theta. 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 \hat\theta.

A likelihood curve computed for one fixed observed sample and plotted against candidate values of θ\theta. 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 θ^\hat\theta.

Relative likelihood for a binary sample with 6 successes in 10 trials

Relative likelihood for a binary sample with 6 successes in 10 trials

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Using the peak-selection principle in the figure, consider independent observations with exponential density f(x;λ)=λe−λxf(x;\lambda)=\lambda e^{-\lambda x} for x>0x>0. For a sample of size 33 with total ∑xi=12\sum x_i=12, what is the maximum likelihood estimate of λ\lambda?

A likelihood curve computed for one fixed observed sample and plotted against candidate values of \theta. 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 \hat\theta.

A likelihood curve computed for one fixed observed sample and plotted against candidate values of θ\theta. 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 θ^\hat\theta.

Relative likelihood for a binary sample with 6 successes in 10 trials

Relative likelihood for a binary sample with 6 successes in 10 trials

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Suppose XiX_i are independent with density f(x;θ)=1/θf(x;\theta)=1/\theta for 0≤x≤θ0\le x\le\theta, and zero otherwise. The observed values are 2,5,42,5,4. Which value is the MLE of θ\theta?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors