What is the least squares criterion, and why minimize squared errors instead of absolute errors?

Quick Overview

Asks what the least squares criterion is and why regression minimizes squared errors instead of absolute errors. Tests knowledge of the normal equations, the Gaussian likelihood link, outlier sensitivity, and what absolute-error regression estimates.

What is the least squares criterion, and why minimize squared errors instead of absolute errors?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the least squares criterion, and why do we minimize the sum of squared errors instead of the sum of absolute errors? ```hint Think about the optimization Compare what each loss lets you do with calculus. Where is each one differentiable, and what do you get when you set the gradient to zero? ``` ```hint Shrink the model Fit a model that predicts one constant for every observation. Which summary of the data minimizes each loss, and how does each react to one extreme value? ``` ### What a Strong Answer Covers - A precise statement of the criterion in terms of residuals - Why squared loss is easier to optimize, and when its solution is unique - The statistical justification for squared error - How the two losses treat large errors and outliers - What absolute-error regression estimates and what it costs to fit ### Follow-up Questions - Derive the normal equations from the squared-error objective. - Does OLS need normally distributed errors to give unbiased coefficients? What does the Gauss-Markov theorem say? - What is Huber loss, and when would you choose it over either of these? - How is least absolute deviations regression fitted in practice?

Overview: Asks what the least squares criterion is and why regression minimizes squared errors instead of absolute errors. Tests knowledge of the normal equations, the Gaussian likelihood link, outlier sensitivity, and what absolute-error regression estimates.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

What is the least squares criterion, and why do we minimize the sum of squared errors instead of the sum of absolute errors?

What a Strong Answer Covers Guidance

  • A precise statement of the criterion in terms of residuals
  • Why squared loss is easier to optimize, and when its solution is unique
  • The statistical justification for squared error
  • How the two losses treat large errors and outliers
  • What absolute-error regression estimates and what it costs to fit

Follow-up Questions Guidance

  • Derive the normal equations from the squared-error objective.
  • Does OLS need normally distributed errors to give unbiased coefficients? What does the Gauss-Markov theorem say?
  • What is Huber loss, and when would you choose it over either of these?
  • How is least absolute deviations regression fitted in practice?