liveBook · Manning

Residual plot

As explained in Statistics Slam Dunk

A residuals-versus-fitted plot displays model residuals against fitted values to reveal nonlinearity, nonconstant spread, or other systematic patterns.

A residuals-versus-fitted plot checks whether a regression or ANOVA model leaves systematic errors behind. It places residuals on the y-axis and fitted values on the x-axis. Residuals measure the vertical distance between observed and fitted values. section 5.7.5 section 14.5.2

Look for points hovering around the horizontal line without an obvious pattern. Curves or other structure can signal nonlinearity; changing spread can signal unequal variances. In an ANOVA, positive residuals mark teams above their category mean, while negative residuals mark teams below it. section 5.7.5 section 14.5.2

Inspecting an NBA ANOVA model

Fit an ANOVA model for standardized regular-season wins, grouped by points category, then request the residuals-versus-fitted and Normal QQ plots with plot(fit1, which = c(2, 1)). The residuals were less dispersed at the highest fitted values, suggesting that the equal-variances assumption was probably violated, though not substantially. section 14.5.2

plot(fit1, which = c(2, 1))

Run this R command to display the Normal QQ and Residuals vs. Fitted diagnostics for the ANOVA model. section 14.5.2

How Statistics Slam Dunk covers it

How deep it goes
Explains axes, residual meaning, pattern interpretation, and R plotting, but defers formal remedies for detected violations.
Examples
Uses NBA regular-season wins, points-category means, and R diagnostic plots for regression and ANOVA models.
What it assumes
Assumes fitted regression or ANOVA models and introduces residuals as distances between observed and fitted values.
What you can do after
Diagnose model assumptions with base R residuals-versus-fitted plots and interpret visible deviations.
How it connects
Connects residuals with fitted values, linear regression, ANOVA, normality, linearity, and homoscedasticity.

Also explained in

Compare how 3 books explain residual plot →

Related concepts

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