liveBook · Manning

Adjusted r-squared

As explained in Statistics Every Programmer Needs

Adjusted R-squared is a version of R-squared that penalizes a regression model for including additional predictors.

Adjusted R-squared evaluates regression fit while penalizing unnecessary predictors. Unlike R-squared, which typically increases when variables are added, it balances explanatory power against model complexity. section 4.2.3

Use adjusted R-squared to interpret competing regression models:

  • Prioritize adjusted R-squared when it diverges substantially from R-squared, because the divergence indicates that added predictors may contribute little explanatory value. section 4.2.3
  • Reduce the model systematically by removing statistically insignificant predictors, improving interpretability and potentially accuracy. section 4.2.3
  • Interpret both measures in the context of explained variance: R-squared ranges from 0 to 1 and represents variance explained by the predictors. section 4.2.3

Comparing regression fit

A simple regression of marathon Stage 2 time on Stage 1 time produces R-squared of approximately 0.575. With additional predictors, compare adjusted R-squared rather than assuming the larger R-squared represents a better model. section 4.2.3

How Statistics Every Programmer Needs covers it

How deep it goes
Explains the predictor penalty and model-reduction rationale but does not provide the adjusted R-squared formula.
Examples
Uses marathon Stage 1 and Stage 2 running times, fitted values, sums of squares, and a regression with R-squared near 0.575.
What it assumes
Assumes regression analysis, predictors, response variance, R-squared, and statistical significance; develops the complexity penalty from these ideas.
What you can do after
Evaluate regression models and diagnose unnecessary predictors by comparing R-squared with adjusted R-squared.
How it connects
Connects R-squared, multiple regression, explanatory power, statistical significance, and model reduction.

Also explained in

Compare how 3 books explain adjusted r-squared →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Every Programmer Needs. The section links point to the parts of the book it draws on.