QUANTITATIVE ANALYSIS · BEGINNER GUIDE

R-Squared vs Adjusted R-Squared: A Worked Example

See why ordinary R-squared rises when predictors are added and how adjusted R-squared applies a complexity penalty.

Worked example · r squared vs adjusted r squared exampleUpdated October 31, 2026

Quick answer: R-squared is the sample outcome variation explained by a fitted linear model relative to a mean-only model. Adjusted R-squared penalizes for the number of predictors and sample size; neither replaces out-of-sample validation.

Infographic for r squared vs adjusted r squared example: Fit models to the same rows, then Compare both R² values, then Check added features, then Validate on held-out folds.
Infographic: a practical sequenceKeep the question, design and assumptions in view from start to finish.
R² can rise as adjusted R² falls. R² before: 0.62 fraction; R² after: 0.63 fraction; Adjusted before: 0.61 fraction; Adjusted after: 0.6 fraction.
R² can rise as adjusted R² fallsIllustrative values; cross-validation is still needed for future prediction.

What this method answers

Adding predictors cannot lower ordinary R² in least squares on the same data, even if a new predictor is noise. Adjusted R² can fall when the fit gain does not offset its complexity penalty.

Use adjusted R² as a descriptive comparison for models fit to the same outcome and observations. Use cross-validation or a held-out sample for predictive performance.

Before running a calculation, write down the population and the exact quantity you want to estimate. A method name alone does not define the question, the comparison or the assumptions.

Steps to follow

  1. Fit candidate models on the same observations and outcome.
  2. Report R² and adjusted R² with model specifications.
  3. Check whether added predictors have meaning and exist at prediction time.
  4. Compare out-of-sample errors before selecting a predictive model.

Keep a record of exclusions, recoding decisions and software settings. That makes the analysis easier to check and repeat.

Worked example

A model predicts house price from floor area. A second also adds a random record number.

ModelPredictorsR²Adjusted R²
AFloor area0.620.61
BArea + random ID0.630.60

R² rises from 0.62 to 0.63 after adding the random ID, while adjusted R² falls from 0.61 to 0.60 in this illustrative fit. The extra column slightly improves in-sample fit but not enough for its penalty.

Interpret the result carefully

The R² gain is not evidence that the identifier predicts new homes. Check feature meaning and validate on independent data.

Limit to keep in mind: Adjusted R² does not fix leakage, poor sampling, nonlinear misspecification or causal overclaiming. Values across outcomes or datasets are not directly comparable.

When reporting an analysis, include the sample size, estimate, units and uncertainty. Explain why the method fits the sampling and measurement design. Separate planned tests from exploratory checks, and avoid saying that association proves a cause.

Frequently asked questions

Can adjusted R² go down?

Yes. It can fall if a predictor adds too little fit for its complexity.

Does high R² mean accurate predictions?

Not necessarily; it summarizes in-sample fit.

Can I compare R² across different outcomes?

Usually not meaningfully without a common scale and purpose.

Is adjusted R² a test-set metric?

No. It uses the fitted sample; validation is needed for generalization.

Sources and next steps