Root Mean Squared Error Versus Mean Absolute Error

MAE: Mean Average Error

MAE measures the average of the absolute length between the predicted value and the ground truth :

All the errors have same weights.

RMSE: Root Mean Squared Error

RMSE measures the average of the absolute length between the predicted value and the ground truth :

The RMSE computesthe average magnetitude of the squared distance and then take the square root.

RMSE vs. MAE

Fundamentally, the too term, MAE and RMSE measures about the same item: the average distance of the error between the ground truth and the predicted value. However:

  • RMSE is more sensitive to the examples with the largest difference This is because the error is squared before the average is reduced with the square root.

  • RMSE is more sensitive to ouliers: so the example with the largest error would skew the RMSE. MAE is less sensitive to outliers.

Here is an example to illustrate out the MSE and RMSE are more sensitive to outliers. In this example, the ground truth is . The error in absolute value is

for most point except for the point at where

The point is clearly an outlier.

The MAE is:

The RMSE is:

Clearly, RMSE is more senstive to the outliers with a larger average error.

In some cases, it might be desirabe to pay attention to the example with the largest error, in this case the RMSE is a good choice for the loss function. However, in the case we want the model to not be skewed by outliers, MAE is a better choice.