📏R-Squared
Also known as R², Coefficient of Determination, R2 Score
A score for models that guess numbers. 1 is perfect, and 0 is no better than the average.
Think of it like
It is like a grade for how well a line follows the dots. A full mark means it hits every dot.
Example
Lucy's model guesses flat prices from size and street. It gets an R-squared of 0.75, so it explains about three quarters of why the prices differ.
Why it matters
It has no units, so you can compare models on one task at a glance. It also shows if a model beats the simplest guess.
Formula
R² = 1 - (sum of squared errors ÷ sum of squared gaps from the mean)Definition
Common mistake
Key takeaways
- 1Beat the average. 0 means no better than the mean.
- 21 is perfect. Every value matched.
- 3No units. Easy to compare on one task.