Least Squares as Maximum Likelihood

Context: FIT2086_MOC ยท the bridge that licenses everything downstream โ€” least squares is maximum likelihood under normal errors, which is why a likelihood-based criterion can score regression models (Model Selection and Information Criteria (AIC, BIC)) and why residuals get a normal predictive distribution

Quick Revision

  • ๐ŸŽฏ Objective: put on the regression errors โž” the negative log-likelihood becomes โž” minimising NLL in = minimising RSS.
  • โšก Key Constraint: only scales the RSS term, so it drops out of the argmin โ€” the equivalence holds for any , but only under the normal error assumption.

๐Ÿ“ Core

  • Error form of the model โž” with , independent across .
  • Equivalent conditional statement โž” โ€” the mean moves with the predictors, the variance does not.
  • Residuals estimate the errors โž” is the observable stand-in for the unobservable .
  • What the equivalence buys โž” a fitting rule (least squares) is upgraded to a probability model, unlocking -values on , predictive distributions, and penalised-likelihood model selection.
  • ML variance estimate โž” โž” underestimates the true variance (same bias story as in Estimator Quality (Bias, Variance, MSE)).
  • Unbiased variance estimate โž” โž” divisor is minus the fitted coefficients, not .

๐Ÿงฎ Proof Blueprint

Theorem. If then โ€” the ML and LS estimates coincide.

Strategy. Write the iid normal likelihood, collapse the product of exponentials, recognise RSS in the exponent, take , and note is a positive constant factor on the only -dependent term.

Derivation.

  • Step 1 justification โž” independence turns the joint density into a product; collapses the exponentials into one sum.
  • Step 2 justification โž” that sum is the residual sum-of-squares by definition.
  • Step 3 justification โž” in , the first term is free of and the second is divided by the positive constant โž” the minimiser is unchanged by that scaling.

Q.E.D. from least squares are exactly the maximum-likelihood estimates under normal errors.

โš ๏ธ Common Mistakes

  • ๐Ÿ’ก Claiming LS โ€œassumes normalityโ€ โž” least squares is a loss choice valid with no distributional assumption; normality is what makes it coincide with ML and is what the -values and predictive intervals need.
  • ๐Ÿ’ก Dividing by for the regression variance โž” the unbiased divisor is ; is the special case (the mean model).
  • ๐Ÿ’ก Using for inference โž” it is biased low โŸน over-narrow prediction intervals and over-confident tests; use . It is the right one inside the information criteria, where the NLL is evaluated at the ML estimates.

๐Ÿง  Active Recall