Courses › Graduate Econometrics
Maximum likelihood
Likelihood, score and information, consistency and asymptotic efficiency of the MLE, the Cramér–Rao bound, the Wald, likelihood ratio and score tests, and quasi-maximum likelihood.
Least squares picks the line that minimizes squared errors. Maximum likelihood starts from a different question: if the data were generated by a model with parameter θ, which value of θ makes the data we actually observed most probable? When the model is right, the answer has remarkable properties: it is consistent, asymptotically normal, and as precise as any well-behaved estimator can be.
This module develops likelihood theory: the score and the information matrix, consistency and asymptotic efficiency of the MLE, the Cramér–Rao bound, and the trio of Wald, likelihood ratio and score tests. It ends with the question that matters most in practice: what does the MLE estimate when the model is wrong? The answer, quasi-maximum likelihood, explains why some misspecified likelihoods (like Poisson regression) are still useful, and how to fix their standard errors.
By the end of this module you will be able to
- Write down the log-likelihood for common models and solve for the MLE.
- Define the score and the information matrix and prove that the score has mean zero and variance equal to the information.
- State the asymptotic distribution of the MLE and the Cramér–Rao lower bound.
- Compute and compare Wald, likelihood ratio and score statistics.
- Explain quasi-maximum likelihood, the pseudo-true value and the sandwich variance.
What this module covers
- The likelihood principle
- Score, information, and the Cramér–Rao bound
- Large-sample properties of the MLE
- The trinity: Wald, likelihood ratio, and score tests
- Misspecification and quasi-maximum likelihood
- Problem set with step-by-step solutions
- Module quiz
Lesson 6.1 Free lesson
The likelihood principle
Suppose the observations y1, …, yn are independent draws from a density (or probability mass function) f(y; θ) that is known up to the parameter θ. The likelihood is the joint density viewed as a function of θ, and it is almost always easier to work with its logarithm:
The maximum likelihood estimator θ̂ maximizes ℓn(θ). Taking logs turns a product into a sum, which is why the law of large numbers and central limit theorem apply so easily. In regression models f is a conditional density f(yi | xi; θ), and we condition on the regressors throughout.
Worked example: Dessert orders
Of 40 café customers, 12 ordered dessert. Model each choice as Bernoulli(p): ℓ(p) = 12 ln p + 28 ln(1 − p).
Setting dℓ/dp = 12/p − 28/(1 − p) = 0 gives p̂ = 12/40 = 0.30. The MLE is the sample share.
Worked example: Customer arrivals
Arrivals per ten minutes are Poisson(λ): f(y; λ) = e−λλy/y!. Over n intervals, ℓ(λ) = −nλ + (Σyi) ln λ − Σ ln yi!.
dℓ/dλ = −n + Σyi/λ = 0, so λ̂ = ȳ. With n = 20 and ȳ = 3.5, λ̂ = 3.5.
The normal linear model
If yi | xi ~ N(xi′β, σ2), then ℓ(β, σ2) = −(n/2) ln(2πσ2) − Σ(yi − xi′β)2/(2σ2). For any σ2, maximizing over β means minimizing the sum of squared residuals, so the MLE of β is OLS. The MLE of the variance is σ̂2 = SSR/n, which divides by n rather than n − k: consistent but biased, like Module 2’s variance estimator.
Invariance
If θ̂ is the MLE of θ, then g(θ̂) is the MLE of g(θ) for any function g. The MLE of the odds of ordering dessert is 0.3/0.7 ≈ 0.43, and the MLE of the probability of no arrivals in ten minutes is e−3.5 ≈ 0.030. No new maximization is needed, and the delta method supplies standard errors.
Key ideas
- The MLE maximizes the log-likelihood Σ ln f(yi; θ).
- Bernoulli and Poisson MLEs are sample means; the normal linear model’s MLE of β is OLS, with σ̂2 = SSR/n.
- Invariance: the MLE of g(θ) is g(θ̂).
Practice questions: Maximum likelihood
Try these, then open each answer to check your work.
- 1.Of 40 customers, 12 ordered dessert. What is the MLE of the probability of ordering dessert?
- 0.12
- 0.30
- 0.40
- 0.70
Show answer
Answer: B. The Bernoulli MLE is the sample share, 12/40 = 0.30.
- 2.At the true parameter, the expected value of the score is
- one
- the Fisher information
- zero
- the MLE
Show answer
Answer: C. Differentiating ∫f(y; θ)dy = 1 gives E[s(θ0)] = 0.
- 3.The information matrix equality states that
- the variance of the score equals minus the expected Hessian
- the MLE equals OLS when the errors are normal
- the score equals the Hessian at the true parameter
- the information equals one after standardization
Show answer
Answer: A. E[ss′] = −E[∂2 ln f/∂θ∂θ′] = I(θ) when the model is correct.
Problems with step-by-step solutions
- 4.Of 200 streaming trial users, 46 subscribed. Find the MLE of the subscription probability and its SE.
Show step-by-step solution
- p̂ = 46/200 = 0.23.
- SE = √(p̂(1 − p̂)/n) = √(0.23 × 0.77/200) ≈ √0.000886 ≈ 0.0298.
- 5.Derive the MLE of λ for n iid Poisson counts.
Show step-by-step solution
- ℓ(λ) = −nλ + (Σyi) ln λ + constant.
- dℓ/dλ = −n + Σyi/λ = 0 gives λ̂ = ȳ; d2ℓ/dλ2 = −Σyi/λ2 < 0 confirms a maximum.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.