PREDICTION ERROR GUIDE

RMSE vs MAE

Both RMSE and MAE measure prediction error in the same units as the target, but RMSE gives more weight to large errors. This guide shows a worked example with and without an outlier.

Definitions

For n paired observations with actual y and predicted ŷ:

RMSE squares each error before averaging, so a single large error can pull RMSE up sharply. MAE averages absolute errors, so every miss contributes linearly.

Worked example without an outlier

ActualPredictedError|Error|Error²
32.5−0.50.50.25
55.20.20.20.04
22.10.10.10.01
76.3−0.70.70.49

RMSE and MAE are close because the errors are similar in size.

Same example with one large outlier

Replace the last row with a much larger prediction error:

ActualPredictedError|Error|Error²
32.5−0.50.50.25
55.20.20.20.04
22.10.10.10.01
710.03.03.09.00

RMSE grows faster because the large error is squared. Whether that is desirable depends on whether large misses are proportionally worse for your decision.

When to use which

Try it

Paste either table into the RMSE calculator to reproduce the values.

Limitations

Back to statistics guides