Statistics
Intermediate
10 min

Maximum Likelihood Estimation

Choose the parameter that makes the observed data most probable by maximizing the (log-)likelihood function.

1. The idea

Given data assumed drawn i.i.d. from a distribution with unknown parameter , the likelihood measures how probable the observed sample is under each candidate . The MLE maximizes this.

Taking the log converts the product into a sum, which is easier to differentiate: maximize instead. Since is increasing, the maximizer is unchanged.

For several common distributions the MLE has a clean closed form: Bernoulli's MLE for is the sample mean; Exponential's MLE for is the reciprocal of the sample mean; Uniform's MLE for is the sample maximum.

2. Why it matters

MLE is the default estimation framework in quant research, and interviewers expect you to derive standard MLEs (Bernoulli, exponential, uniform) from first principles quickly.

3. Core mathematics

Likelihood

Log-likelihood

Bernoulli MLE

Exponential MLE

Uniform(0,θ) MLE

Boundary maximum, not a calculus stationary point.

4. How to recognize it

Think of this when…

  • You are given a sample and a parametric family, and asked to 'estimate' a parameter
  • The distribution is Bernoulli, exponential, or uniform — recognize the closed-form MLE immediately
  • The support of the distribution depends on the parameter (uniform case) — calculus won't find the max, the boundary will

5. Worked example

Worked example

Observed i.i.d. exponential data with unknown rate . Derive the MLE for .

  1. 1

    Write the log-likelihood using the exponential density .

  2. 2

    Differentiate with respect to and set to zero.

  3. 3

    Solve for .

  4. Answer:

6. Common mistakes

  • Trying to differentiate the uniform likelihood — its maximum is at a boundary, not a stationary point
  • Forgetting that the exponential MLE is the reciprocal of the sample mean, not the sample mean itself
  • Skipping the log transform and struggling with the product rule on the raw likelihood
  • Confusing MLE with method-of-moments — they coincide for Bernoulli and exponential but not always in general

7. Quick check

You observe 7 heads in 10 independent coin flips. What is the MLE for p?

For Uniform(0, θ) data with observed maximum 8.2, what is the MLE for θ?

8. Practice

5 QuantSolve questions use this concept.

Practice this concept

9. Related methods