Skip to content
Home › Math Glossary: Key Terms from 6th to 12th Grade › Residual plot: Definition and Example

Residual plot: Definition and Example

Math Glossary: Statistics – Mathbot, the Math Made Easy robot coach

Definition: A residual plot graphs the differences between observed and predicted values against the predictor, showing whether a linear model fits or a pattern remains.

Grade 12 – AP Statistics

What is a residual?

A residual is actual minus predicted: residual = y – y-hat. Plot residuals against x (or against the predicted values). If the line is a good model, the dots scatter randomly around 0 with no pattern.

How do you read the plot?

  • Random scatter: a linear model is appropriate.
  • Curved pattern: a nonlinear model would fit better.
  • Fan shape: the spread changes with x, which breaks a model assumption.

Worked example: a regression line is y-hat = 2.5x + 10. At x = 6 the prediction is 25. If the actual value is 27, the residual is 27 – 25 = +2, a point above the line. If the actual value is 22, the residual is -3.

Residuals from a least-squares line always add up to zero.

What mistake occurs?

Subtracting in the wrong order, which flips the sign. Mathbot says: actual minus predicted, so points above the line are positive. A high r2 alone does not prove a line is appropriate.

Example: y-hat = 2.5x + 10 at x = 6 predicts 25; actual 27 gives residual +2

Where to learn it

Related terms

← Back to the math glossary