MSE Penalizes Big Mistakes Harder: R² Tells You If Your Model Even Learned Anything
You've trained a regression model. It outputs numbers. How do you know if those numbers are any good? Two metrics cover this from different angles: MSE measures the size of your errors, measures whether your model learned anything at all.
Mean Squared Error: for each prediction, compute the difference between actual and predicted value, square it, average across all predictions:
The squaring does two things: negatives and positives don't cancel, and large errors get penalized disproportionately (error of 10 → squared error of 100; error of 1 → 1). This makes MSE sensitive to outliers. RMSE (root of MSE) has the same properties but units match your original variable, which is easier to interpret.
(coefficient of determination) represents goodness of fit on a scale from 0 to 1:
means perfect fit. means the model does no better than always predicting the mean. is possible, it means the model is actively worse than the mean baseline.