R², adjusted R² and residual standard error
R² is the share of the response's variation explained by the model, adjusted R² penalises extra predictors, and the residual standard error is the typical size of a residual.
- residual sum of squares
- total sum of squares about the mean
- number of observations
- number of coefficients including the intercept
- estimated SD of the errors, in the units of y
When to use
- Summarising how well a linear model fits, and (adjusted R², ) comparing models fitted to the same response.
How to interpret
- : the model accounts for 90% of the variation of y around its mean. In simple regression .
- says how far observations typically fall from the fitted values, in y's units — often more useful for prediction than .
- Adjusted R² only rises when a new predictor improves the fit by more than chance would; it can fall, and can be negative.
- Without an intercept, software (and the engine) uses the uncentred , so that is not comparable with the usual one.
Common mistakes
- Treating a high as proof that the model is correct: a curved pattern can have high and clearly patterned residuals.
- Treating a low as worthless: a predictor can matter even when y is noisy.
- Comparing between models with different responses (e.g. y and log y) or different data.
- Adding predictors to raise — it never decreases, even for noise.
Example
For y = 3, 5, 4, 7, 8, 9 on x = 1…6: TSS = 28, RSS = 2.8.
- ; .
- sales units.