Linear regression models and residuals
Predict a car’s price, interpret its residual, judge the residual plot, and recognize extrapolation.
It opens on
What price does the age-only model predict for your friend’s six-year-old car?
Why it matters
A calculated prediction is useful only when its error and the model’s limits are understood.
Good to know first
- Correlation: how age and price move together. Residuals and residual plots: judging how well a model fits
- a residual is observed minus predicted
Step by step
Predict price
Calculate a predicted car price from its age.
At age 6, ŷ = 25.6 − 1.81(6) = 14.74 thousand dollars.
A common mix-up
The line gives the actual sale price.
In fact: Its height is predicted; an observed point can differ.
Price gaps
Calculate and interpret a signed residual.
At age 6, residual = 13.2 − 14.74 = −1.54 thousand dollars.
A common mix-up
Residual is predicted minus observed.
In fact: The point below the line gives 13.2 − 14.74 = −1.54.
Plot gaps
Judge whether a line is appropriate from the residual plot.
Move the age-6 gap to (6, −1.54) on the residual plot, below zero.
A common mix-up
A clear residual pattern means a good fit.
In fact: a curve is structure the line failed to capture.
Age limits
Identify extrapolation and explain why its prediction is less reliable.
Extend the fitted line to age 16: ŷ = 25.6 − 1.81(16) = −3.36 thousand dollars.
A common mix-up
An equation is equally reliable at every age.
In fact: Extending this line to age 16 predicts an impossible price.
Try it
Predict the price at age 8.Answer
11.12 thousand dollars, or $11,120 (hint: replace x with 8).
A three-year-old car sold for 19.8 thousand dollars. Find and interpret its residual.Answer
−0.37 thousand dollars; overpredicted by $370 (hint: first predict 20.17).
Residuals steadily rise from negative at age 1 to positive at age 9. Is a line appropriate?Answer
No; a trend remains (hint: look for a pattern around zero).
Age 10 gives a positive prediction of 7.50 thousand dollars. Is it interpolation?Answer
No; it is extrapolation (hint: compare 10 with 1–9).
Write that prediction in thousands of dollars.Answer
ŷ = 25.6 − 1.81(7.5) = 12.025 thousand dollars.
