This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
6m left·0%
Reading Time: 6 min
Last Updated: February 9, 2026
Main Ideas: 5
Reading Time: 6 min
Last Updated: February 9, 2026
Main Ideas: 5

Topic 2.7 Notes – Residuals

Read aloud
They help you see how far off each prediction is and whether a linear model actually makes sense. This is how we check if our regression line is doing a good job.

1. What a Residual Is and What It Tells You

A residual measures how far a single data point is from what the regression line predicted.

The formula is:

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

  • yy = actual (observed) response
  • y^\hat{y} = predicted response from the LSRL

So a residual is just actual minus predicted.

What it represents visually

A residual is the vertical distance from a point to the regression line.

Residual shown as vertical distance from a point to the LSRL

In the graph, the observed point is above the line, so the vertical segment from the line up to the point is the residual.

Notice it’s vertical, not diagonal. We measure how far up or down the point is from the line.

Sign of a residual

  • Positive residual → y>y^y > \hat{y}
    The model underestimates the actual value.
  • Negative residual → y<y^y < \hat{y}
    The model overestimates the actual value.
  • Residual = 0 → the point lies exactly on the line.

The least squares regression line is chosen to minimize the sum of the squared residuals. That’s where the name “least squares” comes from.

Small residual → good prediction for that point.
Large residual → poor prediction.

2. How to Calculate and Interpret a Residual

You’ll often be given a regression equation and asked for a residual.

Step-by-step

  1. Plug the x-value into the regression equation to find y^ \hat{y} .
  2. Subtract: residual=y−y^ \text{residual} = y - \hat{y} .
  3. Interpret in context.

Example: Suppose the model predicts a student’s test score as
y^=68+4x\hat{y} = 68 + 4x, where xx is hours studied.

A student studied 5 hours and scored 90.

Predicted:

y^=68+4(5)=88 \hat{y} = 68 + 4(5) = 88

Residual:

90−88=2 90 - 88 = 2

Interpretation (how you’d write it on the AP exam):

The model underestimates this student’s test score by 2 points.

Always include:

  • Direction (overestimate or underestimate)
  • Size (with units)
  • Context (what variable)

Reverse problems

Sometimes they give you:

  • residual and actual → solve for predicted
  • residual and predicted → solve for actual

Just rearrange:
y=y^+residualy = \hat{y} + \text{residual}

Common mistake: writing y^−y\hat{y} - y. The order matters.

3. What a Residual Plot Shows

A residual plot graphs:

  • Horizontal axis → explanatory variable xx (or sometimes y^\hat{y})
  • Vertical axis → residuals

It shows what’s “left over” after the line is fitted.

Here is an example of a residual plot:

Residual plot with random scatter around 0

The horizontal line at 0 represents perfect predictions. Points above the line are positive residuals. Points below the line are negative residuals.

Residual plots are used to judge whether a linear model is appropriate.

4. How to Interpret a Residual Plot

What you want to see

  • Residuals scattered randomly above and below 0
  • Roughly constant spread
  • No clear pattern

That “random mess” is actually good. It suggests the linear model captures the relationship.

You’d say:

The residual plot shows no apparent pattern, suggesting a linear model is appropriate.

Patterns that signal problems

Compare the two residual plots below. One supports a linear model. The other clearly does not.

Residual plots: random scatter vs. curved pattern

  1. Curved pattern (U-shape or upside-down U)
    The relationship is not linear. A line is missing curvature.
  2. Fan shape (increasing or decreasing spread)
    The variability changes as x increases. Not constant variance.
  3. Clusters or structure
    Suggests different groups or missing variables.

If there’s a visible pattern, the model is missing something systematic.

5. Using Residual Plots to Evaluate Models

Residual plots answer one main question:

Is a linear model appropriate?

  • Random scatter → linear form is supported.
  • Clear pattern → linear model is not appropriate.

The residual plot does not tell you:

  • Strength of association (that’s r and the scatterplot)
  • Causation
  • Whether predictions are “good enough” overall

It strictly checks form.

On free-response questions, students often lose points by saying “the model is good” instead of referencing the pattern (or lack of pattern) in the residual plot. Always tie your conclusion to what you see.

Key Takeaways

A residual is y−y^y - \hat{y}, and the order determines the meaning of the sign.
Positive residual means the model underestimated; negative means it overestimated.
Residuals are vertical distances from points to the regression line.
A residual plot with random scatter around 0 supports a linear model.
A curved pattern in the residual plot means the relationship is not linear.

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