Effect size · Statistics Library

Adjusted R-squared

Adjusted R-squared modifies plain R-squared to penalize adding predictors that do not meaningfully improve the model, making it appropriate for comparing models with different numbers of predictors.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

Plain R-squared has an awkward property: adding ANY predictor to an ordinary regression fitted to the same rows, even pure random noise, can never decrease it and usually increases it slightly, purely by chance. That makes R-squared alone unreliable for deciding whether an added predictor was actually worth including.

Adjusted R-squared fixes this by subtracting a penalty that grows with the number of predictors relative to the sample size. If a newly added predictor genuinely improves the model by more than chance alone would produce, adjusted R-squared rises; if the predictor adds essentially nothing, adjusted R-squared falls even though plain R-squared ticked up.

This makes adjusted R-squared a better tool than plain R-squared for comparing two models fitted to the same rows with a DIFFERENT number of predictors; plain R-squared will always favor the bigger model even when the extra predictors are useless. To judge how well a model will predict new data, test it on data it was not fitted to (cross-validation).

Adjusted R-squared is sometimes called corrected R-squared or penalized R-squared, because it takes a penalty for every extra predictor; it is written adjusted R^2.

Practitioner explanation

Adjusted R^2 = 1 - (1-R^2) * (n-1)/(n-p-1), where p is the number of predictors (excluding the intercept); the penalty term grows as p approaches n, and adjusted R-squared can even go negative for a very poorly fitting model with many predictors relative to n, while in-sample ordinary least-squares R-squared with an intercept and a nonconstant outcome is bounded below at 0. Centered R-squared for other predictions or a model without an intercept can be negative.

Even adjusted R-squared is an IN-SAMPLE fit statistic, not a genuine out-of-sample validation: it corrects for the mechanical inflation from adding predictors but does not, unlike cross-validation, actually test the model against data it was not fit to. For model SELECTION specifically (choosing among several candidate models), AIC/BIC or cross-validated performance are generally preferred over adjusted R-squared, which is a somewhat blunter penalty.

KernelStats reports adjusted R-squared alongside ordinary R-squared on supported linear-regression cards; other regression families can use different fit measures, and the cross-validation tool (the cross-validation function) is the recommended next step whenever the choice between competing models needs a genuinely out-of-sample-validated answer rather than an in-sample adjustment.

When to use it

Consider it when

When comparing regression models that have different numbers of predictors, or when reporting a model's fit alongside its complexity.

Use caution when

As a substitute for genuine out-of-sample validation: adjusted R-squared corrects an in-sample bias, it does not measure predictive performance on new data the way cross-validation does.

Formulas and symbols

Adjusted R-squared

Radj2=1−(1−R2) n−1n−p−1R^2_{\text{adj}} = 1 - (1-R^2)\,\frac{n-1}{n-p-1}

n is the sample size, p the number of predictors (not counting the intercept).

Common misconceptions

Misconception

Adjusted R-squared is the model's expected performance on new data.

Correction

Adjusted R-squared is still computed on the training data; it merely penalizes the mechanical inflation from adding predictors. Actual out-of-sample performance requires cross-validation or a held-out test set.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §4.4.3.3 R-squared, NIST/SEMATECH (2012), §4.4.3.3.