When a model optimizes MAE versus MSE, what statistical property of the conditional distribution is it predicting?

Quick Overview

Asks which property of the conditional distribution a regression model estimates when it is trained to minimize MAE compared with MSE. Tests the link between loss functions and the statistics they target, behavior on skewed targets, and pitfalls with log-transformed outcomes.

When a model optimizes MAE versus MSE, what statistical property of the conditional distribution is it predicting?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When a model optimizes `MAE` versus `MSE`, what statistical property of the conditional distribution is it predicting? ```hint Reduce it to a constant Fix X and ask which single constant c minimizes the expected loss over the distribution of Y. Differentiate with respect to c. ``` ```hint Where it matters Try a right-skewed target such as income or latency and compare what the two answers would be. ``` ### What a Strong Answer Covers - The quantity each loss targets, with a short derivation by minimizing expected loss over a constant - When the two targets coincide and when they diverge, with a skewed example - The practical consequence for sums and aggregates of predictions - The trap of training with MSE on a log-transformed target - The general link between a loss function and the statistic it estimates ### Follow-up Questions - The business needs a 90th percentile delivery time. Which loss would you train with, and how would you evaluate the model? - How would you recover an estimate of $E[Y \mid X]$ from a model trained with MSE on $\log Y$? - What does Huber loss target, and when would you choose it over MSE or MAE? - The MAE gradient is constant in magnitude and undefined at zero. How does that affect gradient-based training?

Overview: Asks which property of the conditional distribution a regression model estimates when it is trained to minimize MAE compared with MSE. Tests the link between loss functions and the statistics they target, behavior on skewed targets, and pitfalls with log-transformed outcomes.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When a model optimizes MAE versus MSE, what statistical property of the conditional distribution is it predicting?

What a Strong Answer Covers Guidance

  • The quantity each loss targets, with a short derivation by minimizing expected loss over a constant
  • When the two targets coincide and when they diverge, with a skewed example
  • The practical consequence for sums and aggregates of predictions
  • The trap of training with MSE on a log-transformed target
  • The general link between a loss function and the statistic it estimates

Follow-up Questions Guidance

  • The business needs a 90th percentile delivery time. Which loss would you train with, and how would you evaluate the model?
  • How would you recover an estimate of E[Y∣X]E[Y \mid X] from a model trained with MSE on log⁡Y\log Y ?
  • What does Huber loss target, and when would you choose it over MSE or MAE?
  • The MAE gradient is constant in magnitude and undefined at zero. How does that affect gradient-based training?