Example 1 — Residuals for a training log
Easy
The least-squares line for weeks of training x and push-ups y is y^=10.9+1.7x, fitted to (1, 13), (2, 15), (3, 14), (4, 18), (5, 20). Find every residual and say which week the line fits worst.
Show the steps and the answer
Predictions: y^=12.6,14.3,16.0,17.7,19.4 for weeks 1 to 5.
Each residual needs the line's value at that point's own x.
Residuals, observed minus predicted: 13−12.6=0.4, 15−14.3=0.7, 14−16.0=−2.0, 18−17.7=0.3, 20−19.4=0.6.
The order matters: actual first, so a positive residual means the point lies above the line.
Check: 0.4+0.7−2.0+0.3+0.6=0.
Residuals from a least-squares line always sum to zero, so any other total signals an arithmetic slip.
Find the largest in size: week 3, at −2.0.
Week 3's 14 push-ups were 2 below what the trend predicted, perhaps an off day; the other weeks miss by under 1.
Answer: Residuals 0.4, 0.7, −2.0, 0.3, 0.6. The line fits week 3 worst: the student did 2 fewer push-ups than predicted.
Takeaway: Compute actual minus predicted for each point, and use the zero sum as a check.
Example 2 — High correlation, wrong model
Standard
A ball rolls down a ramp. Its distance in cm after t=1,2,3,4,5,6 seconds is 1, 4, 9, 16, 25, 36. The least-squares line is y^=7t−9.33 and r≈0.98. Use the residuals to decide whether the line is a good model.
Show the steps and the answer
Predictions: −2.33,4.67,11.67,18.67,25.67,32.67.
Substitute each t into 7t−9.33.
Residuals: 3.33,−0.67,−2.67,−2.67,−0.67,3.33.
The largest miss is only about 3.3 cm, so judging by size alone, the line seems close.
Read the signs in order of t: plus, minus, minus, minus, minus, plus.
Random residuals would mix signs; a U shape means the data bend upward and the line cuts across the bend.
Notice the line's prediction at t=1 is a negative distance, −2.33 cm.
An impossible value inside the data range confirms the straight line is the wrong form; distance here grows like t2.
Answer: No. Despite r≈0.98, the residuals form a U, so the relationship is curved; the data fit y=t2 exactly.
Takeaway: Judge a line by the pattern of its residuals, not only by their size or by r.
Example 3 — Find the mistake: the sign of a residual
Application
A model predicts that a house will sell for $310,000. It sells for $295,000. Kim writes: "Residual =310,000−295,000=+15,000, so the house sold for more than the model predicted." Find the mistake and correct it.
Show the steps and the answer
Subtract with the actual price first: 295,000−310,000=−15,000.
Kim subtracted in the wrong order, which flips the sign of the residual.
Interpret the negative sign: the actual price is below the prediction.
A negative residual means the model over-predicted; this point lies below the regression line.
Compare with Kim's claim: the house sold for $15,000 less than predicted, not more.
The size of the gap was right; with the wrong sign, a buyer or seller would misread whether the price was a bargain.
Answer: The residual is −15,000 dollars: the house sold $15,000 below its predicted price, so the model over-predicted.
Takeaway: Always compute actual minus predicted; negative means the model guessed too high.