MAE (Mean Absolute Error)
The mean of the absolute differences between the true answers and the predictions.
\[
MAE=\frac1n\sum_{i=1}^{n}\lvert y_i-\hat y_i\rvert
\]
MAE vs MSE
| MAE | MSE | |
|---|---|---|
| Outliers | affect it less | affect it strongly |
| Smoothness | a kink at zero | smooth everywhere |
| Units | the same as the answer | 'squared' |
Because of the absolute value, MAE has a kink at zero — that is where the subgradient helps.