A Residual Is Observed Minus Predicted
- Phone plan at 50 minutes: 26 − 25 = +$1 (a $1 charge the pricing doesn't cover)
- A signed vertical gap, at the same x
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.
Café Data: Residuals From the Line
Daily high x (°F) vs iced drinks sold; regression gives
| x (°F) | Observed | Predicted | Residual |
|---|---|---|---|
| 60 | 58 | 60 | −2 |
| 65 | 73 | 70 | +3 |
| 70 | 81 | 80 | +1 |
Your Turn: Finish the Café Residuals
With
- 75 °F, 88 drinks sold
- 80 °F, 99 drinks sold
- 85 °F, 111 drinks sold
How many of the six points lie above the line?
Answer: −2, −1, +1. Three above (65, 70, 85 °F), three below.
You Have the Misses: Now Plot Them
Café residuals: −2, +3, +1, −2, −1, +1 drinks.
- A list is hard to read for patterns
- Recall: which coordinate sets a point's horizontal position? Which sets its height?
In a residual plot, x stays put; the residual becomes the height.
Phone-Plan Point: (50, 26) Becomes (50, 1)
- Keep x = 50: the horizontal position doesn't change
- The height becomes the residual, +1
- So the point plots one dollar above the zero line
- The zero line stands for "no miss at all"
Building a Residual Plot in Five Steps
- Predict at each observed x
- Residual = observed − predicted
- Plot (x, residual); x stays on the horizontal axis
- Label the vertical axis in the response's units
- Draw a horizontal reference line at 0
Your Turn: Plot the Café Residuals
Plot (60, −2), (65, 3), (70, 1), (75, −2), (80, −1), (85, 1).
- Horizontal axis: temperature, 60 to 85 °F
- Vertical axis: residual, in drinks
- Draw the line at 0
Answer: Above zero at 65, 70, 85 °F; below at 60, 75, 80 °F; all within 3 drinks.
Subtracting the Prediction Moves the Fit to Zero
- Each point shifts straight up or down by its predicted value
- The fitted function lands on the zero line
- Each point keeps its signed vertical miss
- A vertical shift: no rotating or tilting the picture
Zero Is a Reference, Not a Guaranteed Center
- A well-fitted model leaves misses on both sides of zero
- A function below most points leaves mostly positive residuals
- A poor model can leave a trend or an offset behind
The Residual Plot Is Not the Scatter Plot
- Scatter plot: observed responses vs x
- Residual plot: observed minus fitted, vs x
The Plot Is Built: Now Read It
The fitted function models the mean trend: the average response at each x.
- Center: do the misses still follow a trend, curve, or offset?
- Spread: do the misses widen or narrow across x?
- Size: are the misses small enough, in response units, for your purpose?
Café: Random Scatter About Zero
- Signs mix; no trend, curve, or widening → supports the mean trend: keep it provisionally
- Nonzero misses alone don't condemn a fit, and random scatter isn't proof the predictions are accurate enough
Within 5 Drinks? Café Versus Hot Drinks
| Fit | Residuals (drinks) | Largest miss | Useful? |
|---|---|---|---|
| Café, |
−2, +3, +1, −2, −1, +1 | 3 | Yes |
| Hot drinks, |
−10, +15, +5, −10, −5, +5 | 15 | No |
Both patternless; only the café's misses fit the purpose.
Stopping Distance: Residuals From a Line
| Speed (mph) | 20 | 30 | 40 | 50 | 60 | 70 |
|---|---|---|---|---|---|---|
| Distance (ft) | 40 | 75 | 120 | 175 | 240 | 315 |
| Residual (ft) | +16.7 | −3.3 | −13.3 | −13.3 | −3.3 | +16.7 |
- Fitted line:
(rounded) - Where are the residuals positive? Where negative?
A U-Shaped Band: Investigate a Refit
- Positive at both ends, negative in the middle: a U-shaped band
- The line misses a curved mean trend
- Context: braking distance grows with the square of speed → try a quadratic in 6.a
- Judge the refit by its own residual plot
- The data aren't wrong; the model missed something
Tips: A Fan About Zero
Bills $10 to $80; fitted
- Residuals: +0.10, −0.20, −0.30, +0.40, −0.50, +0.60, +0.70, −0.80 dollars
- Centered on zero, no curve: keep the line for the mean
- Misses grow from $0.20 to $0.80: flag changing uncertainty
- A new family isn't the automatic fix
Three Labels for Your Decision
| What you see | Decision | Also state |
|---|---|---|
| No systematic pattern | Keep provisionally | Is the error size useful? |
| Curve or offset | Investigate a refit | The pattern; what to try in 6.a |
| Fan, centered on zero | Flag changing uncertainty | Where spread is wider |
Check-In: Which Label, and Why?
- One stopping-distance residual is small (−3.3 ft), so "the line is good"
- Patternless misses up to 20; need within 5
- Centered on zero, widening to the right
Answer: 1. No: the whole plot is a U; investigate a refit. 2. Keep provisionally; too imprecise here. 3. Flag changing uncertainty.
Full Task: Compute, Plot, Judge, Decide
Given data and a fitted function:
- Compute each residual, with its sign
- Plot residual vs x, units and zero line included
- Read pattern, spread, and size
- Decide with one of the three labels, and justify it
Work it through, then compare with a partner.
Key Takeaways and What's Next
✓ A residual is signed: observed minus predicted
✓ Plot residual vs x; zero is a reference, not a promise
✓ Read center, spread, and size
✓ Keep provisionally, investigate a refit, or flag uncertainty
A pattern points at the model, not the data
Next: the correlation coefficient (C.8).