# R Squared: Better Than Guessing the Average?

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.

![Cheat sheet: R Squared: Better Than Guessing the Average?](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/84a651b6b56d4f048fd7f20e4d15a741.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Mean Absolute Error, Mean Squared Error, python, R Squared
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-r-squared-cheat-sheet
