AP® Precalculus · Unit 2 · Topic 2.6

Residual Plots

A residual plot graphs the leftover errors (actual minus predicted) against x. If those leftovers still show a pattern, your model has the wrong shape, no matter how small the errors look.

A residual is one subtraction: actual value minus predicted value. For each data point, run it through your model, get a prediction, and subtract. Do that for every point and plot the results against x. If your model captured the real shape of the data, those residuals should look like random scatter around zero, no trend, no curve, no funnel shape. That randomness is the signature of a good fit: whatever is left over is just noise.

If instead the residual plot shows a curve, a U-shape, or any systematic bend, your model is missing structure. That leftover shape is literally the piece of the pattern your equation failed to capture. A line fit to data that actually curves upward will produce residuals that dip negative in the middle and rise positive at both ends, or some similar bow shape, because the line cuts through the curve rather than following it. The residual plot is doing diagnostic work: it shows you the shape of your mistake, which tells you what kind of model to try next, maybe quadratic or exponential instead of linear.

This sits right after fitting regression models to data. Once you have a candidate equation, the residual plot is the check: did I pick the right family of function, not just the right numbers. It also connects forward to comparing linear, quadratic, and exponential fits, since a patterned residual plot is often the clue that pushes you toward a log transformation or a different model type entirely.

Key terms

residual
The actual observed value minus the value the model predicted for that same x.
residual plot
A graph of residuals against x, used to check whether a model's shape matches the data.
random scatter
A pattern with no visible trend, the sign of a residual plot that a model fits well.
systematic pattern
A visible curve or trend in a residual plot showing the model missed real structure in the data.

Watch it explained

  1. How it worksHow is a residual built as the actual value minus the value the model predicted?
  2. Worked exampleDraw the residual plot for a line fitted to data that actually curves upward.
  3. Common mistakeWhy doesn't a small total error by itself prove a model is appropriate?

Check yourself

Your turn1 of 2
A model predicts 33 for a data point. Write the residual as a function of the actual value x (residual = x - predicted).

End of topic.