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 is strictly positive.
- The base of the logarithm is greater than 1 (e.g., the natural logarithm).
Reasoning, step by step
- Identify the likelihood function , which is a product of individual probability terms.
- Take the natural logarithm of the likelihood to obtain the log-likelihood .
- Apply the logarithm property to convert the product into a sum: .
- Recognize that because the logarithm is monotonic, the value of that maximizes also maximizes .
- Compute the derivative of the sum, which is mathematically simpler than computing the derivative of the product.
Example
The instructor writes and . 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
5:12 – 6:00Watch this moment ↗
Connected concepts
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.