1.3.16 · D5Probability & Statistics

Question bank — Maximum likelihood estimation (MLE)

1,725 words8 min readBack to topic

Before you start, three words we'll reuse constantly, in plain language:

To make the words "peak", "curvature", and "multiple bumps" concrete, hold these two chalkboard pictures in mind as you work through the questions.


True or false — justify

MLE always returns the true parameter value.
False. It returns the value that best explains this dataset; that is a noisy pointer at truth. It only converges to truth as (consistency), not for any finite sample.
Maximizing and maximizing give the same estimate.
True. is strictly increasing, so it preserves the location of the maximum — it moves the height of the peak, never its position (see the left curve in the first figure).
The likelihood function is a probability distribution over .
False. It integrates to whatever it wants over , not to 1. It is viewed as a function of — a distribution lives over the data axis, not the parameter axis.
The MLE of a variance is unbiased.
False. divides by and systematically underestimates; the unbiased version divides by . See Bias-Variance Tradeoff.
If an estimator is biased it must be a worse choice than an unbiased one.
False. The MLE trades a little bias for lower variance; total error (mean-squared error) can be smaller than an unbiased rival. This is exactly the Bias-Variance Tradeoff.
The log-likelihood is always concave, so setting its derivative to zero always finds the maximum.
False. Concavity holds for many nice models (Bernoulli, Gaussian mean) but not in general — the second figure shows a two-bump curve where "derivative = 0" has three solutions and only one is the global max.
MLE and Maximum A Posteriori (MAP) estimation are different methods that never coincide.
False. MLE equals MAP when the prior is flat (uniform) over the parameter, since a constant prior does not move the peak — but note that a uniform prior over an unbounded space is improper (does not integrate to 1), so the coincidence is exact only on a bounded region or as a formal limit. See Bayesian Estimation.
Adding more i.i.d. data can only sharpen (never flatten) the log-likelihood peak.
True in expectation, not sample-path by sample-path. On average each point adds curvature (the Fisher Information) and the peak tightens like , but a single unlucky point can momentarily flatten or shift the observed curve — the guarantee is about the expected curvature, not every individual sample.
The Cramér-Rao bound guarantees no estimator can ever beat the MLE's variance.
False. The Cramér-Rao Bound lower-bounds the variance of unbiased estimators; a biased estimator can dip below it. The MLE only meets the bound asymptotically, not for small .

Spot the error

"I want the most likely parameters given the data, so I maximize ."
That is the posterior, i.e. Bayesian Bayesian Estimation / MAP. Plain MLE has no prior and maximizes ; without a prior you cannot even write .
"With 1000 points I'll just multiply all the directly and maximize that."
A product of 1000 sub-one probabilities underflows to in floating point (e.g. ). Take the log to turn the product into a numerically safe sum before optimizing.
"I found , so I'm done — that's the MLE."
A zero derivative marks a critical point, which could be a minimum, saddle, or boundary artefact. Confirm it is a max: check , or compare across critical points and boundaries.
"For the coin with 7 heads in 10 flips, the MLE of is somewhere near because coins are fair."
The MLE ignores your prior belief and reads only the data: . A pull toward would require a prior — that's Bayesian Estimation, not MLE.
"The invariance property means if is unbiased then is unbiased too."
Invariance says — the estimate transforms cleanly. Unbiasedness is not preserved by nonlinear (by Jensen's inequality ).
"The invariance theorem lets me push the MLE through absolutely any function ."
In its cleanest form the theorem asks to be a one-to-one, differentiable reparameterization so that "which maximizes" translates unambiguously to "which maximizes". For many-to-one you must define an induced likelihood to keep the claim precise.
"MLE is optimal, so it must be efficient at every sample size."
Efficiency (hitting the Cramér-Rao Bound) is an asymptotic () statement. For small another estimator can have smaller variance or smaller total error.

Why questions

Why do we take the log of the likelihood at all?
Three reasons: it turns products into sums (cleaner derivatives), it prevents floating-point underflow, and being monotonic it leaves the location of the maximum untouched.
Why does the i.i.d. assumption let us write the likelihood as a product?
Independence means the joint probability factorizes, ; "identically distributed" means every factor uses the same .
Why is the MLE of the Gaussian mean just the sample mean ?
The Gaussian log-likelihood is , so maximizing it means minimizing . Differentiate: , giving , i.e. . Geometrically, is the single point whose total squared pull from all data points balances out — the "centre of mass" that no other point beats.
Why is the second derivative of the log-likelihood so important beyond checking for a maximum?
Its negative expectation is the Fisher Information , which sets the MLE's asymptotic variance — sharp curvature means a confident, low-variance estimate.
Why is MLE called "frequentist" rather than "Bayesian"?
It treats as a fixed unknown constant with no probability distribution; only the data is random. Bayesian Estimation instead puts a prior distribution on and updates it.
Why can MLE beat the Method of Moments in efficiency?
MLE uses the full shape of the assumed density (all the information the model encodes), while Method of Moments only matches a few summary moments and can throw away information.

Edge cases

What is the Bernoulli MLE if you observe heads in flips?
. The estimate sits on the boundary of , so the "derivative = 0" trick fails; the maximum is at the edge and any future head would have assigned-probability zero — a warning sign of over-confidence with tiny data.
What is the Bernoulli MLE in the symmetric case (all heads)?
. This is the mirror-image boundary problem: the peak sits at the right edge of , the interior derivative never hits zero, and the model would assign probability zero to any future tail — again over-confident because a small sample cannot rule out rare outcomes.
What happens to the MLE when all your data points are identical (zero sample variance)?
The Gaussian variance MLE collapses to , making the likelihood a spike (infinite density). This is a degenerate maximum — a red flag that the model has overfit the sample.
Is the MLE unique?
Not necessarily. If the log-likelihood is flat over a region or has multiple equal peaks (e.g. label-swapping in mixtures handled by the EM Algorithm), several values tie, so "the" MLE is a set, not a point.
What does MLE do with data point?
It still returns an estimate, but with no averaging the variance is huge and, for the Gaussian, hits its degenerate value . Consistency needs ; a single point earns essentially no trust.
What if the true data-generating distribution is not in your model family at all?
MLE still converges — but to the parameter whose model is closest (in KL divergence) to the truth, not to the truth itself. "Best wrong model" beats "no model", but be aware the guarantee weakened.
Why can the likelihood equation have no finite solution — give a concrete toy model?
Take a Pareto tail with unknown index : if the data happen to be light-tailed, the log-likelihood keeps rising as (or runs off toward a boundary of ) with no interior critical point. Then has no finite root, and you must inspect the limiting behaviour rather than "solve for zero".
Recall Quick self-test

The three fastest ways to embarrass yourself with MLE ::: maximizing the posterior instead of the likelihood, forgetting the log and underflowing, and calling a critical point a maximum without checking curvature. Bias vs consistency in one line ::: MLE can be biased for finite but is consistent — it centres on truth as data grows without bound.