Residuals and Model Assessment

AP Statistics · Unit 5 — Regression Analysis

Residual = actual − predicted

$$e=y-\hat y$$

A positive residual means the model underpredicted that observation; negative means it overpredicted. Say which way round — the rubric checks it.

The residual plot is the real test of whether a linear model fits. Requirements:

Crucially, a high $r^2$ does not rescue a patterned residual plot.

scatterplot + regression line the line "looks fine" RESIDUAL plot clear CURVED pattern ⟹ linear model not appropriate The scatterplot hides what the residual plot exposes. Residuals must be SCATTERED EVENLY around the 0 axis for the model to be valid — a curve, a funnel or clusters mean the model is wrong, even if r is very close to 1.
Same data set, two opposite conclusions. On the left, the points hug the line fairly closely — at a glance the model looks fine and $r$ will be fairly high. On the right are the residuals of that very model: they rise and then fall in a clear arc. That curved pattern says the true relationship is curved, and the line underpredicts in the middle and overpredicts at the two ends — a systematic error that the scatterplot hides.

Worked example: calculating and interpreting a residual

Model $\hat y=12+3x$. One observation has $x=5$, $y=30$. Compute the residual and interpret it.

Solution

Prediction: $\hat y=12+3(5)=27$.

Residual: $e=y-\hat y=30-27=3$.

Interpretation: the actual value is $3$ units higher than the model's prediction — the model underpredicted for this observation.

Writing it backwards as $\hat y-y=-3$ and then saying “overpredicted” is wrong in both sign and conclusion.

Common mistake

Extrapolation — using the model outside the range of the data — always gets the answer “should not”. Exams often give a model built from children aged $6$–$12$ and then ask for a prediction for a $40$-year-old; you must say clearly that this is extrapolation and the model has no evidence in that region.

Key takeaway

A positive residual = underprediction. The model is valid only if the residual plot has no pattern. A high $r^2$ cannot replace that.

← Correlation and the Least-Squares Line · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Outliers, Influential Points and Transforming for Linearity →