7m left·0%
Reading Time: 7 min
Last Updated: September 15, 2026
Main Ideas: 5
Reading Time: 7 min
Last Updated: September 15, 2026
Main Ideas: 5

Topic 5.4 Notes – Residuals

Verified for 2027 AP® Statistics Exam
Read aloud
Residuals connect one data point to the whole regression model. For a single observation, a residual tells you how far the model’s prediction missed. For the whole data set, residual plots show whether a straight-line model actually fits the pattern or leaves a curved pattern behind.

What Residuals Are

When you have a regression line, it predicts a response value y^\hat y from an explanatory value xx.

y^=a+bx \hat y = a + bx

For one observation, the residual compares what actually happened to what the line predicted.

residual=y−y^ \text{residual} = y - \hat y

A few things matter here:

  • yy is the observed response value from the data.
  • y^\hat y is the predicted response value from the regression line.
  • A residual is the prediction error for one point.
  • The subtraction order matters. It is observed minus predicted, never the other way around.
  • Residuals use the same units as the response variable because you are subtracting two response values.

Geometrically, a residual is the signed vertical distance from the point to the regression line. In the figure, the top row shows scatterplots with regression lines, and the bottom row shows the matching residual plots.

Study guide illustration

Scatterplots and their residual plots

Sign and meaning

  • Positive residual means the point is above the line, so y>y^y > \hat y. The model underpredicted.
  • Negative residual means the point is below the line, so y<y^y < \hat y. The model overpredicted.
  • Zero residual means the point lies exactly on the line.

The size of the residual, ∣residual∣|\text{residual}|, tells how far off the prediction was. The sign only tells direction.

Calculating and Interpreting a Residual

Suppose a regression line predicting quiz score from study hours is

y^=50+5x \hat y = 50 + 5x

If a student studied x=4x=4 hours and actually scored y=73y=73:

  1. Find the predicted value

    y^=50+5(4)=70 \hat y = 50 + 5(4) = 70

  2. Compute the residual

    y−y^=73−70=3 y - \hat y = 73 - 70 = 3

  3. Interpret it in context

    The model underpredicted the student’s quiz score by 3 points.

If the observed score had been 68 instead:

68−70=−2 68 - 70 = -2

Now the model overpredicted the student’s quiz score by 2 points.

Useful rearrangements sometimes show up:

  • y=y^+residualy = \hat y + \text{residual}
  • y^=y−residual\hat y = y - \text{residual}

Common mistakes:

  • Reversing the subtraction and flipping the sign
  • Saying “overpredicted by −2-2” instead of “overpredicted by 2 points”
  • Rounding y^\hat y too early

What a Residual Plot Shows

A residual plot is a scatterplot of residuals against either:

  • the explanatory values xx, or
  • the predicted values y^\hat y

Each original data point becomes one point on this new graph.

  • Against xx, the plotted point is (x,y−y^)(x, y-\hat y)
  • Against predicted value, the plotted point is (y^,y−y^)(\hat y, y-\hat y)

The horizontal line at 0 splits positive and negative residuals. In these examples, the residuals are plotted against fitted values, which is another name for predicted values.

Study guide illustration

Residual plots against fitted values

This matters because the linear trend has already been removed. So the residual plot shows what pattern is still left unexplained.

  • Above 0 means observed > predicted
  • Below 0 means observed < predicted
  • Farther from 0 means a bigger miss

Using Residual Plots to Judge a Linear Model

This is the main job of residual plots. You are checking whether a linear model is appropriate.

What you want is apparent randomness:

  • points scattered above and below 0
  • no clear upward or downward trend
  • no curve or other pattern

Then you can say the association has a linear form, so simple linear regression is appropriate.

The three residual plots below show the key contrast. Focus on the left panel for a good linear fit, then compare it to the curved patterns in the middle and right panels.

Study guide illustration

Curvature means the line missed the shape:

  • U-shape
    positive residuals at low and high xx, negative in the middle
    The line underpredicts at the ends and overpredicts in the middle.
  • Upside-down U
    negative residuals at the ends, positive in the middle
    The line overpredicts at the ends and underpredicts in the middle.

Mixed positive and negative residuals by themselves are normal. The issue is whether they form a pattern.

What to Say on the Exam and Where Students Slip

Good AP-style wording sounds like this:

  • “The residual plot shows apparent randomness with no clear pattern, so a linear model is appropriate.”
  • “The residual plot shows a clear curved pattern, so a linear model is not appropriate.”

You need both parts:

  • describe the pattern
  • state what it means for the model

A few easy traps:

  • A random residual plot does not mean predictions are perfect.
  • Residual plots do not prove causation.
  • Correlation alone does not decide whether a linear model fits. The residual plot is the check.
  • One huge residual might mean one badly predicted point. It does not automatically mean nonlinearity.
  • A changing spread pattern is still nonrandom, even if it is not curved.

Key Takeaways

A residual is always y−y^y-\hat y, which means observed minus predicted.
Positive residual means underprediction, and negative residual means overprediction.
Residuals are measured in the units of the response variable.
A residual is the signed vertical distance from a point to the regression line.
In context, say “underpredicted by 3 points” or “overpredicted by 2 minutes,” not just “the residual is 3.”
A residual plot with random scatter around 0 supports a linear model.
A curved residual plot means a linear model is not appropriate.
Seeing some points above 0 and some below 0 is normal, and the pattern is what matters.
One large residual can show one poor prediction without showing the whole relationship is nonlinear.
Correlation can be strong even when the residual plot shows a linear model is a bad fit.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining