The formula
- : the squared error your model makes.
- : the squared error you would make by always predicting the mean.
- : the mean of the true values.
So the ratio is "how much error is left, as a fraction of the error you started with", and is one minus that.
What the numbers mean
means every residual is zero: a perfect fit.
means your model is exactly as good as predicting the average every time, having learned nothing.
It can be negative, and this surprises people who remember it as "the square of something".
A negative value means the model is worse than the mean, which happens routinely on a test set when a model has overfitted.
Why it is unitless, and what that buys
Both sums are in the target's units squared, so they cancel.
That makes comparable across problems in a way RMSE never is: 0.85 means the same thing on house prices and on rainfall.
It also makes it useless for telling you whether the model is good enough to use. on a target with huge variance can still be an unusably large absolute error.
Quote it alongside RMSE, never instead of it.
The trap: it never goes down
Adding any feature, even a column of random noise, cannot increase on the training set.
So on training data rises monotonically with model complexity and is worthless as a model-selection criterion.
- : number of examples.
- : number of features.
Adjusted penalises each added feature, so it falls when a new one does not pay for itself.
- Fit the model.
- Compute on held-out data, not on the training set.
- Check whether it is negative, which is a real result and not a bug.
- Report RMSE beside it so the absolute scale is visible.
- Use adjusted only when comparing models with different numbers of features on the same data.