Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Which coin did this?
You flip a coin 10 times and see 8 heads. Which is more believable: a fair coin (50%), or a coin that lands heads 80% of the time? The 80% coin makes “8 heads” much more likely. Maximum likelihood says: pick the explanation under which what you saw was most probable. Here, that’s 80%.
It’s the most widely used way to fit models to data, from a robot’s success rate to the millions of weights in a neural network.
Estimating failure rates from life tests, sensor noise levels from logs, motor parameters from experiments, and training classifiers all use maximum likelihood. It also tells you how uncertain the estimate is, from the “sharpness” of the likelihood peak.
- 1. 8 heads in 10 flips: the maximum-likelihood chance of heads is…
- 2. Maximum likelihood picks the parameter that makes the data…
- 3. A sharper likelihood peak means…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
For iid data with density or PMF , the likelihood is , viewed as a function of . The log-likelihood is easier to work with. The MLE is , usually found by solving the score equation .
Closed forms
| Model | MLE |
|---|---|
| Bernoulli(p) | (the success fraction) |
| Poisson(λ) | |
| Exponential(rate λ) | |
| Normal(μ, σ²) | , (÷n, biased) |
| Uniform(0, θ) | (the likelihood isn’t differentiable there) |
Invariance: the MLE of is . For example, the MLE of the median life of an exponential is .
- 1. Poisson counts 3, 1, 4, 1, 5: λ̂ =
- 2. Exponential lifetimes with mean 200 h: rate MLE?
- 3. The normal MLE of σ² divides by…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Asymptotic theory
Under regularity conditions (smooth model, identifiable, true inside the parameter space):
- Consistency: .
- Asymptotic normality: .
- Efficiency: the asymptotic variance attains the Cramér–Rao bound (A5.1-3).
In practice, the SE comes from the observed information, the negative second derivative (Hessian) of at : . With several parameters, invert the negative Hessian.
Three ways to build intervals and tests
- Wald: . Simple, but symmetric, and it can leave the parameter space (for example a proportion near 1).
- Likelihood ratio: , using Wilks’ limit. It respects the parameter’s shape and range.
- Score test: uses only at the null value.
When there’s no closed form: Newton’s method
Iterate . Fisher scoring replaces by . For the Weibull lifetime model, the scale has a closed form given the shape, so Newton is only needed in one dimension (profile likelihood, Exercise 1). Logistic regression and GLMs are fitted the same way (IRLS).
- 1. The MLE's asymptotic variance is…
- 2. The likelihood-ratio 95% interval keeps θ with 2[ℓ(θ̂) − ℓ(θ)] ≤ …
- 3. SE from the observed information =
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Why the MLE is asymptotically normal
Taylor-expand the score around the true : . So
- Numerator. It’s a scaled sum of iid scores with mean 0 and variance , so it tends to by the CLT.
- Denominator. It tends to by the LLN.
- Conclude. Slutsky gives (A4.3-8). ∎
Why maximizing likelihood makes sense: KL divergence
. So the MLE minimizes the KL divergence from the data distribution to the model. If the model is misspecified, it converges to the KL-closest member, and the right SEs are the sandwich (Huber–White) form , with and .
Familiar losses are negative log-likelihoods
- Least squares is the Gaussian-noise MLE.
- L1 regression is the Laplace-noise MLE.
- Cross-entropy is the categorical MLE.
- Poisson regression is the count MLE.
Choosing a loss is choosing a noise model.
Exercise 3.1: Derive the censored-exponential MLE
Units that fail at contribute . Units still working at contribute . So with failures, and : failures divided by total time on test.
- 1. The MLE minimizes the KL divergence from…
- 2. Under misspecification, correct SEs use…
- 3. Least squares is the MLE for…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Life testing with censoring
You test 400 thrusters for 2000 hours. Most are still working when the test stops. They’re right-censored: you only know they lasted at least 2000 h. Averaging the failure times of the few that failed ignores this, and overstates the failure rate about 5×. The censored likelihood counts survivors through , giving . With the Fisher information , it gives honest 95% intervals. Censoring is everywhere in reliability, in robot task-completion times with timeouts, and in survival analysis (Kaplan–Meier, Cox).
MLE in AI, robotics and aerospace
- Deep learning. Training with cross-entropy or Gaussian negative log-likelihood is maximum likelihood. Overfitting is the MLE’s small-sample weakness, which regularization (MAP, A5.2-2) addresses.
- System identification. Fitting robot dynamics, aerodynamic coefficients or battery models to data uses (prediction-error) maximum likelihood. For state-space models, the Kalman filter’s innovations give the likelihood (Ljung, 1999; Shumway and Stoffer, 1982).
- Sensor noise calibration. MLE fits of noise variances and Allan parameters, and EM for unknown process/measurement covariances (A5.2-10).
- Reliability and survival. Weibull/lognormal fits to censored life data underpin component qualification (Meeker and Escobar, 1998).
- Tracking. Maximum-likelihood data association and ML-PDA trackers (Bar-Shalom, Willett and Tian, 2011).
References
- R. A. Fisher (1922). “On the mathematical foundations of theoretical statistics.” Phil. Trans. R. Soc. A, 222.
- S. Wilks (1938). “The large-sample distribution of the likelihood ratio for testing composite hypotheses.” Annals of Mathematical Statistics, 9(1).
- A. van der Vaart (1998). Asymptotic Statistics, Ch. 5. Cambridge University Press.
- H. White (1982). “Maximum likelihood estimation of misspecified models.” Econometrica, 50(1).
- W. Meeker, L. Escobar (1998). Statistical Methods for Reliability Data. Wiley.
- L. Ljung (1999). System Identification: Theory for the User, 2nd ed. Prentice Hall.
- R. Shumway, D. Stoffer (1982). “An approach to time series smoothing and forecasting using the EM algorithm.” Journal of Time Series Analysis, 3(4).
- Y. Bar-Shalom, P. Willett, X. Tian (2011). Tracking and Data Fusion. YBS Publishing.
- Y. Pawitan (2001). In All Likelihood. Oxford University Press.
- W. Weibull (1951). “A statistical distribution function of wide applicability.” Journal of Applied Mechanics, 18.