MSE (Mean Squared Error)
The mean of the squared differences between the true answers \(y_i\) and the predictions \(\hat y_i\).
\[
MSE=\frac1n\sum_{i=1}^{n}(y_i-\hat y_i)^2
\]
Why the Square
- it removes the sign: positive and negative errors do not 'eat' each other;
- it penalizes large misses more heavily: the error grew tenfold — the contribution to MSE grew a hundredfold.
Pros and Cons
| Pro | smooth and convenient for optimization |
| Con | sensitive to outliers |
If robustness to outliers is needed, use MAE; to interpret the error in the same units as the answer, use RMSE.