# Error in One Number

Error in One Number: Errors and the Mean Absolute Error, Squared Errors and RMSE, R Squared: Better Than Guessing the Average?.

Updated: November 19, 2026

1. [Errors and the Mean Absolute Error](https://www.ask-codey.com/lessons/ml-mean-absolute-error) (Apprentice): A guess's error, or residual, is the actual value minus the guess, and because errors above and below cancel out when they're averaged, the mean absolute error averages their sizes instead, giving how far off the guesses usually are in the label's own units, by hand or with scikit-learn's mean_absolute_error.
2. [Squared Errors and RMSE](https://www.ask-codey.com/lessons/ml-root-mean-squared-error) (Journeyman): Squaring each error before averaging makes big misses count much more, giving the mean squared error in squared units, and its square root, the root mean squared error (RMSE), puts it back in the label's units; RMSE is never smaller than the MAE, and a big gap between them says a few guesses are very wrong.
3. [R Squared: Better Than Guessing the Average?](https://www.ask-codey.com/lessons/ml-r-squared) (Journeyman): R squared compares a model's squared errors with those of always guessing the average of the values being scored, so 1 is perfect, 0 is no better than the average, and below 0 is worse, which can happen on test data; scikit-learn's r2_score computes it, and on its own it can't say whether the misses are small enough to use.

Source: https://www.ask-codey.com/courses/machine-learning-python/topics/ml-error-in-one-number
