“How good is my model?” has several answers. See MAE, MSE, RMSE and R² drawn right on the data, and learn which one to trust when.
For every point, error = prediction − real value. The four metrics are just four different ways of summarising that same column of errors.
MAE averages the absolute errors. MSE averages the squared errors. RMSE is the square root of MSE. R² compares the squared errors with those of the laziest model: always predicting the average.
A new point appears at x = 8, this far from your line. Drag the slider and compare how each metric reacts. Squaring makes big errors count far more.
Imagine y is a length. Change the unit it is measured in and watch the metrics. MAE and RMSE keep y’s unit, MSE lives in squared units, and R² has no unit at all.
Same model, same errors, but MSE changed by a factor of 1,000,000 while R² did not move. That is why R² (or a percentage error) is used to compare across different datasets.
Metrics squeeze all errors into one number. A residual plot shows the errors themselves. If they look like random scatter, the line is the right shape. If they form a curve, the model is missing something, even when R² looks high.
Easy to explain: “we are off by about 3 on average”. Not dominated by a few extreme misses.
Same unit as y, but punishes large misses harder. Use it when big errors are especially costly.
Smooth and easy to optimise, so it is the usual training loss. Harder to read because of squared units.
Unit-free score against the “always guess the mean” baseline. Great for comparing, but check residuals too.
Push an outlier far away and compare MAE with MSE.
Tilt the line the wrong way and watch R² go negative.
R² still looks high, but the residual plot shows a clear curve.
Switch to millimetres and see which metrics explode.