R Squared Vs Adjusted R Squared

5 min read

R‑squared vs adjusted R‑squared are two closely related statistics that tell you how well a regression model explains the variability of the dependent variable. Which means while both measure goodness‑of‑fit, they differ in how they penalize model complexity, making adjusted R‑squared a more reliable gauge when you compare models with different numbers of predictors. Understanding the nuance between these metrics helps you avoid over‑fitting, choose the right variables, and communicate model performance clearly to stakeholders.

What Is R‑squared?

R‑squared, also called the coefficient of determination, quantifies the proportion of variance in the outcome that is predictable from the independent variables. Mathematically, it is expressed as

[ R^{2}=1-\frac{\text{SS}{\text{res}}}{\text{SS}{\text{tot}}} ]

where SS₍ᵣₑₛ₎ is the sum of squared residuals (the unexplained variance) and SS₍ₜₒₜ₎ is the total sum of squares (the variance of the observed data around its mean) Worth knowing..

  • Interpretation: An R‑squared of 0.65 means that 65 % of the variability in the dependent variable is accounted for by the model.
  • Range: Values fall between 0 and 1 (or 0 % and 100 %). A model that merely predicts the mean yields R‑squared = 0; a perfect fit yields R‑squared = 1.
  • Limitation: Adding any predictor—no matter how irrelevant—will never decrease R‑squared; it can only stay the same or increase. This property makes R‑squared prone to over‑optimism when models become overly complex.

What Is Adjusted R‑squared?

Adjusted R‑squared modifies the ordinary R‑squared to account for the number of predictors relative to the sample size. Its formula is

[ \bar{R}^{2}=1-\left(\frac{1-R^{2}}{n-p-1}\right)(n-1) ]

where n is the number of observations and p is the number of explanatory variables (excluding the intercept).

  • Interpretation: Like R‑squared, it represents the proportion of explained variance, but it penalizes the inclusion of unnecessary predictors.
  • Behavior: If a new variable improves the model more than would be expected by chance, adjusted R‑squared will rise; if the variable contributes little, adjusted R‑squared will fall.
  • Range: Can be negative, especially when the model performs worse than a horizontal line at the mean, indicating poor explanatory power.

Key Differences Between R‑squared and Adjusted R‑squared

Aspect R‑squared Adjusted R‑squared
Response to extra predictors Never decreases; may increase artificially Increases only if the predictor improves fit beyond chance; otherwise decreases
Penalty for complexity None Explicit penalty based on p and n
Interpretability Straightforward proportion of variance explained Same interpretation but adjusted for model size
Use in model comparison Misleading when comparing models with different numbers of predictors Preferred for comparing nested or non‑nested models
Possible values 0 ≤ R² ≤ 1 Can be < 0; otherwise 0 ≤ (\bar{R}^{2}) ≤ 1

These differences make adjusted R‑squared a more honest metric when you are deciding whether to keep or discard a variable.

When to Use Which Metric

  • Exploratory analysis: If you are simply describing how much variance a set of covariates explains in a single model, reporting R‑squared is acceptable and intuitive.
  • Model building / variable selection: When you are adding or removing predictors, rely on adjusted R‑squared to guard against spurious improvements.
  • Comparing multiple models: Use adjusted R‑squared (or information criteria such as AIC/BIC) to rank models that differ in complexity.
  • Reporting to non‑technical audiences: R‑squared is often easier to explain, but you should mention that the value may be inflated if many predictors are present.

Practical Example

Imagine you are predicting house prices (y) using three candidate models based on a dataset of 150 homes:

Model Predictors R‑squared Adjusted R‑squared
A Square footage 0.42 0.So 41
B Square footage + Number of bedrooms 0. 55 0.53
C Square footage + Bedrooms + Age + Garage size + Distance to school 0.68 0.
  • Model C has the highest R‑squared, suggesting it explains 68 % of price variation.
  • On the flip side, its adjusted R‑squared (0.60) is lower than that of Model B (0.53) after accounting for the five predictors.
  • The increase from Model B to Model C in raw R‑squared (0.13) is not enough to outweigh the penalty for three extra variables, indicating that the additional predictors may not contribute meaningful information.

In this scenario, a researcher might prefer Model B because it balances explanatory power with parsimony.

Limitations and Caveats

  • Sample size sensitivity: Adjusted R‑squared relies on the ratio p/(n‑1). With very small samples, the penalty can be harsh, potentially rejecting useful variables.
  • Assumption of linearity: Both metrics assume a linear relationship between predictors and the outcome. Non‑linear patterns may depress the values even if the model captures important structure.
  • Not a causal measure: High R‑squared or adjusted R‑squared does not imply causation; it only reflects association within the sample.
  • Dependent on scale of predictors: While the metrics themselves are scale‑free, the interpretation of individual coefficients still depends on variable scaling.
  • Potential for negative values: A negative adjusted R‑squared signals that the model is worse than simply using the mean; it is a cue to re‑examine variable selection or consider alternative modeling approaches.

Frequently Asked Questions

Q: Can adjusted R‑squared be higher than R‑squared?
A: No. By construction, adjusted R‑squared is always less than or equal to R‑squared, with equality only when the model has zero predictors (i.e., only an intercept) or when the sample size is infinite relative to the number of predictors.

Q: Is a higher adjusted R‑squared always better?
A: Generally, yes, when comparing models built on the same dataset. On the flip side, you should also consider theoretical justification, residual diagnostics, and potential over‑fitting. A marginally higher adjusted R‑squared that comes from adding a dubious predictor may not warrant inclusion.

**Q: How does adjusted R‑

Up Next

Hot Topics

Others Explored

Keep the Thread Going

Thank you for reading about R Squared Vs Adjusted R Squared. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home