Residuals: What the Line Misses
How to compute a residual as observed minus predicted, interpret its sign as underprediction or overprediction, and use a residual plot to decide whether a linear model is appropriate.
A residual is what is left over after the model makes its prediction: \(\text{residual} = y - \hat{y}\), observed minus predicted. A positive residual means the model underpredicted; a negative one means it overpredicted. Plot every residual against \(x\) (or \(\hat{y}\)): random scatter around 0 confirms a linear form, while a curve says the line is missing a pattern.
1What a residual is
A residual is the difference between the observed response value and the predicted response value for the given value of the explanatory variable:
A 4-year-old car
The regression line is \(\hat{y} = 25.69 - 1.583x\). One 4-year-old car sold for 21.0 thousand dollars. Find and interpret its residual.
- 1Predicted: \(\hat{y} = 25.69 - 1.583(4) \approx 19.36\).
- 2Residual \(= y - \hat{y} = 21.0 - 19.36 = 1.64\).
- 3Positive, so the actual price is above the prediction: the model underpredicts.
“The residual of 1.64 means this 4-year-old car sold for 1.64 thousand dollars more than the model predicts for a car of its age.”
\(\hat{y} - y\) flips every sign and reverses every interpretation. The order is always observed minus predicted, the same as “actual minus expected.”
2Reading the sign
| Residual | Point is | The model |
|---|---|---|
| Positive | Above the line | Underpredicts (underestimates) y |
| Negative | Below the line | Overpredicts (overestimates) y |
| Zero | On the line | Predicts y exactly |
A 6-year-old car
A 6-year-old car sold for 15.0 thousand dollars. Find and interpret its residual.
- 1\(\hat{y} = 25.69 - 1.583(6) \approx 16.19\).
- 2Residual \(= 15.0 - 16.19 = -1.19\).
A 10-year-old car
The 10-year-old car has a residual of −0.46. What was its actual price?
- 1Residual \(= y - \hat{y}\), so \(y = \hat{y} + \text{residual}\).
- 2\(\hat{y} = 25.69 - 1.583(10) = 9.86\), so \(y = 9.86 + (-0.46) = 9.40\).
3Residual plots
A residual plot is a scatterplot of the residuals against the explanatory variable (or the predicted values). It removes the overall trend so that any leftover pattern stands out. A linear regression model should only be fit to data that show a linear trend.
| What the residual plot shows | What it means |
|---|---|
| Apparent randomness around 0 | Confirms a linear form: the linear model is appropriate |
| Curvature | The linear model is not the most appropriate model |
Cars and stopping distance
Use Figure 2 to judge whether a linear model is appropriate for each data set.
- 1Cars: residuals bounce above and below 0 with no curve or trend. That randomness confirms a linear form.
- 2Stopping distance: residuals are positive, then negative, then positive again. That curvature means a line is not the best model, despite r = 0.991.
Stopping distance has r = 0.991, yet its residual plot curves. A large correlation says the points are close to a line; only the residual plot shows whether a line is the right shape.
Residuals of ±1.6 thousand dollars are fine as long as they scatter randomly. The question for the form is the pattern, not the size of individual residuals.
After LinReg(a+bx) L1, L2, the calculator stores the residuals in the list RESID (2nd, LIST, NAMES). Make a STAT PLOT scatterplot with Xlist L1 and Ylist RESID to see the residual plot.
Quick reference
| Fact | Rule |
|---|---|
| Residual | \(y - \hat{y}\) (observed minus predicted) |
| Positive residual | Model underpredicts |
| Negative residual | Model overpredicts |
| Actual value | \(y = \hat{y} + \text{residual}\) |
| Residual plot | Residuals vs x (or \(\hat{y}\)) |
| Random scatter | Linear model appropriate |
| Curvature | Linear model not the most appropriate |