Skip to content
← All questions

Why do we use the log-likelihood instead of the raw likelihood function when finding the MLE?

We use the log-likelihood because the natural logarithm is a strictly increasing (monotonic) function, so maximizing the log-likelihood yields the exact same parameter value as maximizing the original likelihood. Additionally, the logarithm converts the product of independent probabilities into a sum, which makes differentiation much easier.

Conditions

  • The likelihood function L(θ)L(\theta) is strictly positive.
  • The base of the logarithm is greater than 1 (e.g., the natural logarithm).

Reasoning, step by step

  1. Identify the likelihood function L(θ∣x1,…,xn)L(\theta \mid x_1, \dots, x_n), which is a product of individual probability terms.
  2. Take the natural logarithm of the likelihood to obtain the log-likelihood ℓ(θ∣x1,…,xn)=log⁡L(θ∣x1,…,xn)\ell(\theta \mid x_1, \dots, x_n) = \log L(\theta \mid x_1, \dots, x_n).
  3. Apply the logarithm property log⁡(ab)=log⁡(a)+log⁡(b)\log(ab) = \log(a) + \log(b) to convert the product into a sum: ∑i=1nlog⁡f(xi∣θ)\sum_{i=1}^n \log f(x_i \mid \theta).
  4. Recognize that because the logarithm is monotonic, the value of θ\theta that maximizes ℓ(θ)\ell(\theta) also maximizes L(θ)L(\theta).
  5. Compute the derivative of the sum, which is mathematically simpler than computing the derivative of the product.

Example

The instructor writes ℓ(Θ∣x1,...,xn)=log⁡L(Θ∣x1,...,xn)\ell(\Theta | x_1, ..., x_n) = \log L(\Theta | x_1, ..., x_n) and log⁡(ab)=log⁡(a)+log⁡(b)\log(ab) = \log(a) + \log(b). She explains, "it's just a lot easier to use log because remember if we're taking the log of a product, that's just the sum of the logs."

Common misconceptions

  • Thinking that maximizing the log-likelihood gives a different parameter value than maximizing the likelihood.
  • Assuming the logarithm can be applied to zero or negative likelihood values without considering the domain restrictions.

Watch the explanation

Connected concepts

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.