# Errors and the Mean Absolute Error

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.

![Cheat sheet: Errors and the Mean Absolute Error](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/68436aca51f14776a0bfb9f74666ba75.webp)

- Category: Machine Learning
- Level: Apprentice
- Tags: ai, Mean Absolute Error, python, Residual, Test Data
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-mean-absolute-error-cheat-sheet
