The model and its errors
The least squares line and each day's error. There are several ways to turn these eight errors into one number; each answers a different question.
MAE: mean absolute error
We drop the sign of the errors and average them: MAE = 1.95. Its unit is ice creams: on an average day the model is off by 1.95 ice creams. It is the easiest metric to understand.
MSE: mean squared error
We average the squares of the errors: MSE = 4.31. Large errors weigh more because they grow with their square. This is usually the loss minimised in training, but its unit is ice creams squared.
RMSE: the square root
The square root of the MSE is RMSE = 2.08. Its unit is ice creams again, so it can be read next to the MAE. RMSE is never smaller than MAE; the gap shows how unevenly the errors are spread.
The simplest model to compare with
A model that learns nothing predicts the mean sales, 39.13, every day. The blue dashed lines are this baseline's errors. The sum of their squares is 876.88; ours is 34.49.
R²: the share explained
R² = 1 − 34.49 / 876.88 = 0.96. It tells how much of the squared error left by the mean the model explains. 1 means perfect, 0 means no better than the mean.
An outlier day
Drag a day far up or down. Because errors are squared, MSE and RMSE grow fast while MAE grows more slowly. When there are outliers, MAE is the sturdier metric.
Why it matters
Which metric to use depends on the job. If large errors are costly, RMSE; if every error matters the same, MAE; to compare models across different data, R². A report should state the unit too.