Home /permanent

Mean-Squared Error

A metric for assessing the quality of regression models, where we square the difference between labels and predictions and take the average.

MSE=1N∑i=1N(yi−y^i)2MSE = \frac{1}{N} \sum\limits_{i=1}^{N} (y_i - \hat{y}_i)^2

More popular than Mean Absolute Error as it significantly increases large errors.

The derivative of the MSE loss function with respect to a specific weight wjw_j is given by:

∂MSE/∂wj=−2/N×Σ(yi−y^i)×xij∂MSE/∂w_j = -2/N \times Σ(y_i - ŷ_i) \times x_ij