A Residual Is the Signed Vertical Gap
The vertical gap from the point to the line, observed − predicted.
Positive Above the Line, Negative Below
The sign tells you the direction of the miss:
- Above the line → positive residual (model under-predicted)
- Below the line → negative residual (model over-predicted)
Never drop the sign — it's what reveals patterns later.
Compute Residuals for Several Points
Observed minus predicted, keeping the sign:
| Observed | Predicted | Residual |
|---|---|---|
| 26 | 25 | +1 |
| 23 | 25 | −2 |
| 31 | 30 | +1 |
| 28 | 30 | −2 |
Your Turn: Compute a Residual
The model predicts 40; the observed value is 37.
- Compute the residual (observed minus predicted)
- What does its sign tell you?
Work it out, then advance.
Answer:
You Have the Misses — Now Plot Them
You computed signed residuals: +1, −2, +1, −2.
- A list is hard to read for patterns
- Plotting the residuals against x turns them into a picture
Next: build the residual plot.
The Residual Plot: Misses Against x
Residual vs x, with a bold zero line for a perfect prediction.
Flattening the Fitted Line to Zero
Imagine bending the slanted fitted line flat to horizontal.
- That flattened line becomes the zero line
- Each point's distance from the line → distance from zero
We remove the trend so only the misses remain.
The Residual Plot Is Not the Scatter Plot
Same data, two different pictures — the trend is removed on the right.
Your Turn: Build a Residual Plot
Plot these residuals against x, with a zero line:
: +2 · : −1 · : +1 · : −2
Sketch the zero line, then plot each point, then advance.
Answer: Two points above zero (at x=1, 3), two below (at x=2, 4), scattered — no pattern.
The Plot Is Built, Now Read Its Shape
Everything so far was setup. Now the plot becomes a diagnostic.
- Its shape tells you if the model captured the relationship
- The key reading will feel backwards at first
Let's read the three cases.
Random Scatter Is the Goal, Not a Problem
Random, patternless scatter means the model captured the structure.
A Curve or U-Shape: Wrong Model Family
A clear curved or U-shaped band of residuals is a pattern.
- It means the data bends but you fit it with a line
- The data is fine — refit with a curve (back to 6.a)
A pattern indicts the model family, not the data.
A Fan: Spread Grows With x
A fan shape — residuals widening as x increases.
- The model fits the center, but the spread grows
- Predictions are less reliable at large x
The model isn't wrong, but trust it more at one end.
The Keep-or-Refit Decision From Residuals
The residual plot gives a clear verdict:
- Random scatter → keep the model
- A pattern (curve or fan) → refit, usually a new family
Informal — the eye reads the shape, no formulas.
Quick Check: Read This Residual Plot
The residuals form a clear U-shape — low middle, high ends.
- What does this shape tell you about the fit?
- What should you do next?
Decide, then advance.
Answer: A pattern → wrong family; the data curves. Refit with a quadratic.
Sort Three Residual Plots by Verdict
Match each residual plot to its verdict:
- Random scatter
- A clear curve
- A fan widening to the right
Assign each a verdict, then advance.
Answer: 1. Good fit — keep. 2. Wrong family — refit. 3. Spread grows — less reliable at large x.
Full Task: Compute, Plot, Judge, Decide
Given data and a fitted line, run the diagnostic:
- Compute each residual (signed)
- Sketch the residual plot
- Judge the fit; decide keep or refit
Do all three, then advance.
Answer: Compute observed − predicted; plot vs x; random → keep, pattern → refit.
Key Takeaways and What's Next
✓ A residual is signed: observed minus predicted
✓ Plot residual vs x — a different picture from the scatter
✓ Random scatter → keep; a pattern → refit
A pattern indicts the model, not the data
Next: the correlation coefficient (C.8).