1.3.16 · D3Probability & Statistics

Worked examples — Maximum likelihood estimation (MLE)

2,419 words11 min readBack to topic

This page is the "training ground" for MLE. The parent note showed you the machine. Here we run it on every kind of input the machine can meet: nice cases, sign-flip cases, zero cases, degenerate cases, a word problem, and an exam twist. By the end you should never meet an MLE problem whose shape you haven't seen.


The scenario matrix

Every cell below is a distinct kind of situation. The examples after it are each tagged with the cell(s) they cover.

Cell What makes it special Covered by
A. Interior maximum, bounded parameter Parameter lives in ; answer is inside, found by derivative Ex 1
B. Degenerate data (all same) Data hits an extreme (all heads / all tails) Ex 2
C. Positive-only parameter Parameter must be (a rate/scale) Ex 3
D. Boundary maximum Derivative is never zero; max sits at edge of the support Ex 4
E. Two parameters at once Solve and jointly Ex 5
F. Bias check / limiting behaviour Is the estimator unbiased? What happens as ? Ex 6
G. Real-world word problem Translate messy story into a model, then estimate Ex 7
H. Exam twist (reparametrisation / invariance) MLE of a function of the parameter Ex 8

Before the algebra, one picture of the whole idea: the log-likelihood is a curved landscape over parameter values, and MLE walks to its top.


Cell A — Interior maximum, bounded parameter


Cell B — Degenerate data (all outcomes identical)


Cell C — Positive-only parameter (a rate)


Cell D — Boundary maximum (uniform support)


Cell E — Two parameters solved jointly


Cell F — Bias and limiting behaviour


Cell G — Real-world word problem


Cell H — Exam twist: reparametrisation / invariance


Recall Which cell needs the second-derivative / boundary check most?

Cell D (Uniform) and Cell B (degenerate) — the derivative is never zero, so blindly solving fails; the maximum sits on the boundary of the support.

Recall Why is

smaller than the "true" variance on average? Because using the sample mean (itself fit to the data) removes one degree of freedom, giving .

Connections