| Study Guides
AP · Residuals · 14 min read · Updated 2026-05-10

Residuals — AP Statistics Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: Definition of a residual, residual calculation formula, constructing and interpreting residual plots, assessing linear model fit, standard deviation of residuals, and using residuals to identify unusual patterns in two-variable data.

You should already know: Least-squares regression line (LSRL) equation for bivariate data. How to calculate predicted values from a regression model. Basic properties of scatterplots for two-variable data.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Residuals?

A residual is the difference between the observed value of the response variable and the predicted value from a regression model, used exclusively to assess how well a linear model fits bivariate data. Per the AP Statistics Course and Exam Description (CED), this topic makes up 10-15% of Unit 2 (Exploring Two-Variable Data) and appears in both multiple-choice (MCQ) and free-response (FRQ) sections of the exam, almost always including at least one interpretation or justification question on the first FRQ.

Notation conventions used on the AP exam label the residual as , observed response as , and predicted response as . Residuals are sometimes called "prediction errors" in textbooks, but the AP exam consistently uses the term residual. A key property frequently tested is that the sum of all residuals for a least-squares regression line is always zero, because the LSRL balances positive and negative errors. This gives you a built-in check to confirm your calculations are correct on any problem.

2. Calculating and Interpreting Individual Residuals

To find the residual for a single data point, we use a simple formula that follows directly from the definition of a residual as the error in the model's prediction. The formula is: Where is the observed response value (measured in the original data) and is the predicted response value, calculated by plugging the observed explanatory variable into the LSRL equation .

Intuition: We want to measure how wrong the model was, so we subtract what the model predicted from what we actually observed. A positive residual means the model underpredicted the response (observed value is higher than predicted), and a negative residual means the model overpredicted the response (observed value is lower than predicted. On the AP exam, you will almost always be asked to both calculate and interpret the residual in context, so both steps are required for full credit.

Worked Example

A tutor studies the relationship between hours of tutoring per month () and student final exam score out of 100 () and finds the LSRL: . One student attended 6 hours of tutoring and scored a 74. Calculate and interpret the residual for this student.

  1. Identify known values: , observed , LSRL .
  2. Calculate predicted score: .
  3. Apply residual formula: .
  4. Interpret: The negative residual means the model overpredicted this student's final exam score by 3.6 points.

Exam tip: When interpreting a residual, you must name whether the model overpredicted or underpredicted and include the magnitude and context to earn full credit. Stating just "the residual is -3.6" will not earn the point.

3. Interpreting Residual Plots to Assess Linear Model Fit

A residual plot is a scatterplot with residuals on the y-axis and either the explanatory variable or predicted value on the x-axis. We use residual plots to check if a linear model is appropriate for the data, because subtle patterns that are hard to see on the original vs scatterplot become very clear in a residual plot.

The rule for assessment is simple: if there is no clear, systematic pattern in the residual plot, a linear model is appropriate. If there is a clear systematic pattern, a linear model is not appropriate. Common problematic patterns include: (1) curved patterns (U-shape or inverted U-shape), which indicate the true relationship between and is non-linear; (2) fanning/funnel patterns, where the spread of residuals increases or decreases as increases, which indicate non-constant variance (heteroscedasticity).

Worked Example

Three residual plots for three different linear models have the following patterns. For each, state if a linear model is appropriate: (a) Residuals are randomly scattered between -3 and 3 across the entire range of , no visible trend. (b) Residuals start negative for small , increase to positive for middle , then decrease back to negative for large , forming a clear inverted U-shape. (c) Residuals are tightly clustered between -1 and 1 for small , and spread out between -6 and 6 for large .

  1. (a): No clear systematic pattern means the linear model is appropriate. Random scatter confirms that the linear model correctly captures the relationship between and , with no systematic prediction error.
  2. (b): The clear curved inverted U pattern means the true relationship is non-linear. A linear model is not appropriate.
  3. (c): The clear fanning pattern (increasing spread of residuals as increases) indicates non-constant variance, so the linear model is not appropriate.

Exam tip: A common AP MCQ trick shows a seemingly linear original vs scatterplot but a residual plot with a clear pattern. Always rely on the residual plot, not the original scatterplot, to assess model fit.

4. Standard Deviation of Residuals

The standard deviation of residuals (written or ) is a numerical measure of the average size of the residuals, meaning it tells you how far, on average, observed values are from the regression line. It complements the graphical assessment from residual plots by giving a quantitative measure of model fit: smaller means predictions are typically closer to observed values, so the model fits better.

The formula for the standard deviation of residuals is: Where is the number of observations, and we divide by (degrees of freedom for regression) to get an unbiased estimate. We square residuals to eliminate negative signs (since the sum of raw residuals is always zero, the average raw residual is useless) then take the square root to return to the original units of the response variable.

Worked Example

A data set of 6 observations has residuals: . Calculate the standard deviation of residuals .

  1. Confirm , so degrees of freedom .
  2. Square each residual: , , , , , .
  3. Sum the squared residuals: .
  4. Plug into the formula: .

Exam tip: When interpreting on the AP exam, always mention that it is the typical deviation of observed values from the regression line, and include the original units of the response variable to earn full credit.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Calculates residual as instead of , leading to the wrong sign. Why: Students confuse the order of subtraction when writing "prediction error". Correct move: Memorize "Observed minus Expected (Predicted)" to always get the order right.
  • Wrong move: Claims a linear model is appropriate based only on the original vs scatterplot, ignoring the residual plot. Why: Subtle non-linear patterns are often invisible on the original scatterplot but clear in residuals. Correct move: Always use the residual plot to assess model appropriateness, regardless of the original scatterplot.
  • Wrong move: Interprets as the "average of the raw residuals". Why: Students forget the sum of raw residuals is always zero for LSRL. Correct move: Remember measures the average distance of observed values from the regression line, not the average of raw residuals.
  • Wrong move: Claims any small fluctuation in a residual plot means a linear model is inappropriate. Why: Students confuse random sampling variation with a systematic pattern. Correct move: Only label a pattern as problematic if it is clear and systematic across the entire range of .
  • Wrong move: When calculating , divides by instead of . Why: Students confuse population standard deviation with regression residual standard deviation. Correct move: For all AP Statistics problems, divide by when calculating for a regression model.
  • Wrong move: Claims any non-zero residual means the model is a poor fit. Why: Students think residuals should be zero for a good model. Correct move: Natural variation produces non-zero residuals for all models; we only care about systematic patterns across all residuals, not individual non-zero residuals.

6. Practice Questions (AP Statistics Style)

Question 1 (Multiple Choice)

A café owner studies the relationship between average daily temperature (F, ) and daily iced coffee sales (dollars, ). He calculates the LSRL: . On a day with an average temperature of 75F, observed sales were $245. What is the residual for this day, and what does it mean? A) Residual = -10; the model overpredicted sales by $10 B) Residual = -10; the model underpredicted sales by $10 C) Residual = 10; the model overpredicted sales by $10 D) Residual = 10; the model underpredicted sales by $10

Worked Solution: First calculate predicted sales for : . Next apply the residual formula: . A negative residual means the observed value is less than the predicted value, so the model overpredicted sales by $10. Correct answer: A.


Question 2 (Free Response)

A real estate agent studies the relationship between house size (in square feet, ) and selling price (in thousands of dollars, ) for 15 houses for sale in a neighborhood. She fits a linear regression model and finds the residual plot has a clear pattern: residuals become more spread out as house size increases. (a) A 1800 square foot house has an observed selling price of $420 thousand and a predicted selling price of $405 thousand. Calculate the residual for this house. (b) Is a linear model appropriate for this data? Justify your answer. (c) The standard deviation of residuals is . Interpret this value in context.

Worked Solution: (a) Use the residual formula . The residual is 15 thousand dollars, or $15,000. (b) A linear model is not appropriate. The residual plot shows a clear fanning pattern, where the spread of residuals increases as house size increases. This systematic pattern indicates non-constant variance, which violates the assumptions for a linear model. (c) A standard deviation of residuals means that, on average, observed selling prices of houses deviate from the linear regression model's prediction by approximately 12.8 thousand dollars, or $12,800.


Question 3 (Application / Real-World Style)

An agricultural scientist studies the relationship between annual rainfall (in inches, ) and corn yield (in bushels per acre, ) for 7 test plots. She calculates the LSRL , and the residuals for the 7 plots are: . Calculate the standard deviation of residuals for this model, and interpret the result in context.

Worked Solution: We have , so degrees of freedom . Square each residual: , , , , , , . Sum of squared residuals: . Plug into the formula: bushels per acre. Interpretation: On average, observed corn yields deviate from the linear regression model's prediction by approximately 0.72 bushels per acre.

7. Quick Reference Cheatsheet

Category Formula Notes
Individual Residual Observed minus Predicted. Positive = underprediction; negative = overprediction.
Predicted Response Plug in explanatory ; = LSRL intercept, = LSRL slope.
Sum of Residuals (LSRL) Always true for least-squares lines. Use to check calculation accuracy.
Standard Deviation of Residuals Measures average distance of observed values from the regression line. Smaller = better fit.
Linear Model Appropriateness No clear pattern = appropriate Random scatter confirms linear model is appropriate.
Curved Residual Pattern Pattern = inappropriate Curved pattern means true relationship is non-linear.
Fanning Residual Pattern Pattern = inappropriate Changing spread means non-constant variance, linear model not appropriate.
Potential Outlier $ e

8. What's Next

Residuals are the foundational prerequisite for all regression work in AP Statistics. Immediately after this topic, you will learn how to use residuals to identify outliers and influential points in regression, and how these points impact the slope, intercept, and correlation of your model. Without correctly calculating and interpreting residuals, you cannot correctly assess model fit or the impact of unusual points. Across the rest of the course, residuals are critical for checking the assumptions required for inference for regression, which is a major topic on the AP exam. All inference for regression relies on checking that residuals are independent, normally distributed, and have constant variance—skills you build in this chapter.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →