RSS (Residual Sum of Squares)

<aside> 💡

RSS measures how far off a model’s predictions are from the actual values. (calculates the sum of the squared differences between the observed values (actual values) and the predicted values)

</aside>

$$ \begin{align*}

\text{RSS} &= \sum_{i=1}^{n} (y_i - \hat{y}_i)^2

\end{align*} $$


MSE (Mean Squared Error)

<aside> 💡

MSE is the average of the squared errors, which is the Residual Sum of Squares (RSS) divided by the number of observations.

</aside>

$$ \begin{align*} \text{MSE} &= \frac{\sum_{i=1}^{n} (y_i - (w_0 + w_1x_i))^2}{N} \\ \\

\text{MSE} &= \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2 \end{align*} $$


RMSE (Root Mean Squared Error)

<aside> 💡

RMSE is simply the square root of the Mean Squared Error (MSE)

</aside>