A regression model predicts for true targets . What are the MAE and RMSE, why is RMSE strictly larger here, and when is each metric preferred?
ML systems and evaluation, Regression metrics
Level L2 Elementary. Length Short. Nature Th+Mat Both.
What's being asked
Whether you can compute MAE and RMSE, explain why squaring amplifies outliers, and link each metric to its Bayes-optimal predictor.
Key idea
weights all errors linearly across the examples, whereas squares errors first, giving disproportionate weight to large residuals.
Steps
- Compute the residuals : .
- Compute , and .
- Explain the gap: Jensen’s inequality (or Cauchy–Schwarz) gives , while gives ; equality with the upper bound occurs because all error sits on a single outlier.
- Choose by goal: use MAE when targets have heavy outliers or you want to estimate the conditional median; use RMSE when large errors are genuinely much worse than small ones or you want to estimate the conditional mean.
Common mistakes
- Saying RMSE is always bigger than MAE; when all residuals have the exact same magnitude, .
- Comparing RMSE against MSE directly; MSE is in squared units while RMSE and MAE share the target’s units.
How long your answer should be
Two lines of arithmetic and 3–4 sentences.
Last checked on 4 December 2026.
Read this
Previous in ML systems and evaluation: On four test examples with true labels , Model A predicts probabilities and Model B predicts . Both achieve 75% accuracy at threshold 0.5; what is the binary log loss of each model, and why do they differ so sharply?
Next in ML systems and evaluation: A search engine returns 4 results for three queries with binary relevance , and , where 1 means relevant and each query has exactly 2 relevant documents in the corpus. What are MRR and MAP, and when would you prefer each?