mlprep
Medium10 min·1 round·Loss Functions

Compare MSE, MAE, and Huber loss — when would you use each?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

Compare MSE, MAE, and Huber loss for regression. What does each optimize for, and how do outliers affect each?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How would you pick the δ hyperparameter in Huber loss? Is there a principled way?
  • Your target variable is log-normally distributed (house prices). Would you log-transform targets and use MSE, or use MAE on raw prices? What's the trade-off?
  • What loss function would you use for quantile regression — predicting the 90th percentile of delivery time instead of the mean?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions