Residual plot practice problems with full solutions
By Jude Wallis · Updated
These 8 problems build one habit: compute a residual as observed minus predicted, read its sign, then let the shape of the residual plot decide whether a line belongs on the data. Problem 7 is the one worth getting right, where r is 0.986 and the linear model is still wrong.
AP Statistics: Unit 5 (topics 5.3 Linear Regression Models, 5.4 Residuals). Topic 5.4 Residuals sits in Unit 5, Regression Analysis, of the Fall 2026 AP Statistics course, worth 10 to 20 percent of the multiple-choice section, where you are asked to calculate the difference between observed and predicted values, interpret it, and describe the form of an association from a residual plot.
What these 8 problems build
A residual is what the line missed by: , the observed response minus the predicted response, where (read "y-hat") is the value the regression line gives for that case. Every problem below runs on that one subtraction, then asks what the answer means.
Three readings come up again and again.
- Sign. A positive residual puts the observed value above the line, so the model underpredicted that case. A negative residual means the model overpredicted it.
- Size. The size of a residual, in the units of , is how far the line missed. Sign gives direction and size gives accuracy, and those are separate questions.
- Shape. A residual plot graphs the residuals against or against . Random scatter around zero says a line is an appropriate model, and curvature says it is not.
One fact saves you on several of these problems: for a least-squares line the residuals always add to exactly zero, so a sum of zero is an arithmetic check and never evidence of a good fit. Problems 1 to 3 are single-residual calculations, 4 to 6 move to full sets of residuals and to reading a plot, and 7 and 8 are the AP-style items where a strong correlation and a zero sum both fail to rescue a wrong model.
Work each problem before opening the steps. For the underlying method read how to interpret residual plots, check any line or plot you build against the regression calculator, and see the course wording at topic 5.4 Residuals. The one-line definition sits in the residual plot glossary entry, and correlation and residuals practice adds the correlation and the coefficient of determination to the same skills.
Problem 1
A ferry company models crossing time in minutes, , from the wind speed on the strait in km/h, , using the least-squares line . (a) A crossing made in a 15 km/h wind took 26 minutes. Find its residual. (b) A crossing made in a 30 km/h wind took 37 minutes. Find its residual. (c) On a residual plot of these crossings, which one plots above the horizontal line at zero?
Show the worked solution
(a) Predict first. At , minutes.
(a) Subtract predicted from observed. minutes, so that crossing finished 2 minutes sooner than the line predicted.
(b) Predict at . minutes.
(b) Subtract again. minutes, so that crossing ran 3 minutes longer than the line predicted.
(c) A residual plot puts the residual itself on the vertical axis, so a point sits above zero exactly when its residual is positive. The 30 km/h crossing has a residual of and plots 3 units above the zero line, while the 15 km/h crossing has a residual of and plots 2 units below it.
(a) minutes. (b) minutes. (c) The 30 km/h crossing, because its residual is positive.
Problem 2
A city compost program records, for each collection week, the number of households enrolled, , and the compost collected in kilograms, . The least-squares line is . (a) A week with 25 households enrolled produced 130 kg. Find the residual and say what its sign means. (b) An earlier week with 12 households enrolled produced 70 kg. Find the residual and say what its sign means. (c) A program officer writes that the 25-household week shows the model is working, because its residual came out positive. What is wrong with that reasoning?
Show the worked solution
(a) Predict at . kg.
(a) Take observed minus predicted. kg. The residual is positive, so the observed weight sits above the line and the model underpredicted that week by 15 kg.
(b) Predict at . kg.
(b) Subtract. kg. The residual is negative, so the model overpredicted that week by 6 kg.
(c) Separate sign from size. The sign of a residual reports only which side of the line a case fell on. Accuracy is the size of the miss, and by that measure the 25-household week is the worse of the two fits: the line was off by 15 kg there against 6 kg for the 12-household week.
(c) Say what the positive residual does mean. The program collected 15 kg more than the line predicted for 25 households, which may be welcome news about that week's collection. It is not a statement about how well the model describes the program.
(a) kg, positive, so the model underpredicted by 15 kg. (b) kg, negative, so the model overpredicted by 6 kg. (c) The sign gives the direction of the miss, not the quality of the fit, and the kg week is the one the line fits worse.
Problem 3
A hatchery models a young trout's length in centimeters, , from its age in months, , with the least-squares line . (a) One trout is 8 months old and has a residual of cm. How long is it, and what does the residual say about that fish? (b) A second trout measures 24 cm and has a residual of cm. How old is it? (c) A third trout has a residual of exactly . What does that tell you about that fish, and what does it not tell you about the model?
Show the worked solution
(a) Predict at . cm.
(a) Rearrange the residual formula. From you get cm. The negative residual means the line overpredicted this fish by 2.5 cm, so it is shorter than the hatchery's model expects at 8 months.
(b) Work backwards to the prediction. cm, so the line predicted 22.5 cm for this fish.
(b) Solve for the age that produces that prediction. gives , so months. Check it: cm.
(c) Read the zero. A residual of means , so that fish lies exactly on the regression line and the prediction matched its measured length.
(c) Say what it does not settle. One point on the line is a single lucky hit, not a verdict on the model. Whether a line is the right shape depends on the pattern of all the residuals together, which is what a residual plot shows.
(a) cm, and the line overpredicted this fish by 2.5 cm. (b) The prediction was cm, so and months. (c) That fish sits exactly on the line, so the prediction matched its length; it says nothing about how well the model fits the other fish.
Problem 4
A caterer records the number of guests, , and the kilograms of food waste, , at five events: , , , , . The least-squares line is . (a) Compute all five residuals. (b) Show that they add to zero and explain why that had to happen. (c) Which events did the line overpredict, and by how much? (d) Describe the residual plot and say whether a linear model is appropriate here.
Show the worked solution
(a) Predict at each guest count from , then subtract predicted from observed.
Guests Observed Predicted Residual 10 4 5 20 10 8 30 11 11 40 12 14 50 18 17 (a) Check two rows by hand. At , kg and the residual is kg. At , kg and the residual is kg.
(b) Add them. kg.
(b) Explain the zero. A least-squares line always passes through the point of averages , read as x-bar and y-bar. Here guests and kg, and , so the line does pass through it. That forces the residuals to sum to zero for any data set, which makes the sum an arithmetic check on your subtraction rather than evidence about the fit.
(c) Pick out the negative residuals, since negative means the prediction sat above the observation. The 10-guest event was overpredicted by 1 kg and the 40-guest event by 2 kg.
(d) Describe the plot. Plotted against guests, the residuals run kg: they fall on both sides of zero across the whole range, they do not bend into a curve or an arch, and their sizes do not grow as the events get larger.
(d) State the verdict. That apparent randomness is what confirms a linear form, so a line is an appropriate model for these events. Five points is thin evidence for any statement about shape, so treat it as no reason to doubt the line rather than as proof.
(a) Residuals kg. (b) They sum to , which least squares forces because the line passes through . (c) The 10-guest event was overpredicted by 1 kg and the 40-guest event by 2 kg. (d) The residuals scatter on both sides of zero with no curve and no widening, so a line is appropriate, though five points is thin evidence.
Problem 5
Three studies each fit a least-squares line and produce a residual plot of the residuals against the explanatory variable.
- Plot A, a print shop, finishing time against the number of copies in a job: the residuals fall on both sides of zero across the whole range of , and the vertical spread stays about the same, roughly to minutes, at every . Nothing bends.
- Plot B, a reservoir, water released against the rainfall two days earlier: every residual at the low end of is negative, every residual in the middle of the range is positive, and every residual at the high end is negative again, tracing a smooth arch.
- Plot C, a warehouse, order picking time against the number of items in the order: for the smallest orders the residuals sit within minutes of zero, and for the largest orders they run from about to minutes. The residuals stay centered on zero all the way across and nothing bends.
(a) For each plot, say whether a linear model is appropriate. (b) What does plot B tell you about where the line misses? (c) A student says plot C proves the line is the wrong shape. Correct that. (d) In which of the three plots do the residuals add to zero?
Show the worked solution
(a) Plot A. The residuals scatter randomly around zero with constant spread and no bend, so nothing systematic is left over. Apparent randomness in a residual plot confirms a linear form, so a line is an appropriate model.
(a) Plot B. The sign of a residual here is decided by where you sit in the range: negative at the bottom, positive in the middle, negative at the top. That is curvature, not scatter, and curvature says the linear model is not the appropriate model for these data.
(a) Plot C. Nothing bends, so the plot gives no evidence against a straight-line form. What it does show is that the spread of the residuals grows with order size, so a line is still a defensible description of the form while its predictions are far less precise for large orders.
(b) Read the arch as a set of directions. Negative residuals mean the observations sit below the line, so the model overpredicts at both the low and the high ends of rainfall. Positive residuals in the middle mean it underpredicts there. A model that bends the same way the data do would remove that pattern.
(c) Correct the student. A fan is about spread, not about shape. Curvature is the signal that the form is wrong, and plot C has none: it has unequal spread, which changes how much you trust a prediction rather than whether the line has the right form. The AP course names apparent randomness and curvature as the two things to read off a residual plot, so on the exam the defensible statement about plot C is about the reliability of predictions at large .
(d) All three. Least squares forces the residuals of a fitted line to add to zero no matter what the plot looks like, so the sum cannot tell plot A, plot B, and plot C apart. Only the pattern can.
(a) A: appropriate, random scatter with constant spread. B: not appropriate, the arch is curvature. C: the form is not contradicted, but the spread grows, so predictions for large orders are much less precise. (b) The line overpredicts at both ends of the rainfall range and underpredicts in the middle. (c) A fan reports changing spread, not a wrong form; curvature is the signal for a wrong form and plot C has none. (d) All three, because least squares forces the residuals to sum to zero.
Problem 6
A parks department fits maintenance hours per season, , to trail length in kilometers, , for six sections and gets . Its residual plot shows one point per section.
| Section | Length (km) | Residual (hours) |
|---|---|---|
| Cedar | 2 | |
| Birch | 4 | |
| Fern | 6 | |
| Granite | 8 | |
| Heron | 10 | |
| Juniper | 12 |
(a) Which section does the line fit worst, and by how much? (b) What does the sign of that section's residual say about it? (c) Which section did the line underpredict by the most? (d) How many maintenance hours did the worst-fit section actually take? (e) Does the plot give you a reason to abandon the linear model?
Show the worked solution
(a) Compare the sizes of the residuals, ignoring sign, because a miss of hours is the same size of error as a miss of . The sizes are hours, so Granite has the largest at 6 hours.
(b) Read the sign. Granite's residual is negative, so its observed hours sit below the line: the model overpredicted Granite by 6 hours, and that section took 6 fewer hours than its length would suggest.
(c) Take the largest positive residual, since positive means the model underpredicted. Fern, at hours, needed 5 more hours than the line predicted.
(d) Predict for Granite at . hours.
(d) Add the residual to the prediction. hours, so Granite actually took 18 hours.
(e) Look for a pattern rather than for a large point. Across lengths of 2 to 12 km the residuals run : they change sign irregularly, they trace no arch or U, and their sizes do not widen as the sections get longer. Their sum is , as least squares requires.
(e) Give the verdict. Nothing in the plot says the form is wrong, so there is no reason to abandon the line. The Granite miss of 6 hours is a single point to go and ask about, since something about that section made it cheaper to maintain than its length predicts.
(a) Granite, missed by 6 hours. (b) The residual is negative, so the line overpredicted Granite: it took 6 fewer hours than predicted. (c) Fern, underpredicted by 5 hours. (d) Predicted hours, so observed hours. (e) No. The residuals show no curve and no widening, so the form looks fine; Granite is one point worth investigating, not a reason to drop the model.
Problem 7
A driving school measures the braking distance in meters, , of one car from five speeds in km/h, , on the same dry surface: , , , , . Technology reports the least-squares line with . (a) Compute the five residuals. (b) Describe the residual plot. (c) The instructor argues that is proof the linear model fits well. Decide whether that argument holds, and justify your answer from the residual plot. (d) Find what the line predicts at 90 km/h, then use the pattern in the data to say whether that prediction is too high or too low.
Show the worked solution
(a) Predict at each speed, then subtract predicted from observed.
Speed Observed Predicted Residual 30 5 3 40 9 10 50 15 17 60 23 24 70 33 31 (a) Check two rows and the sum. At , m, so the residual is m. At , m, so the residual is m. The five residuals sum to , as least squares requires.
(b) Describe the shape. Against speed the residuals go : positive at both ends and negative through the middle, a clear U. That is a systematic pattern, not scatter, and it means the line underpredicts the fastest and slowest stops and overpredicts the ones in the middle.
(c) Say what actually measures. The correlation reports how tightly the points cluster around a straight line and the direction of that trend. It cannot report whether a straight line is the right shape, because it has no way to compare a line against a curve.
(c) Confirm the number, then rule against the instructor. Squaring gives , which you can verify from the residuals: the sum of the squared residuals is , the total sum of squares about m is , and . So the line does remove about 97 percent of the variation in braking distance, and the U-shaped residual plot still shows the leftover misses are systematic. The residual plot decides the form, so the instructor's argument does not hold and a curved model would fit better.
(d) Use the line first. m.
(d) Now read the data's own pattern. Across equal 10 km/h steps the observed distances rise by , , , and m, so each step adds 2 m more than the step before. Continuing that pattern gives m at 80 km/h and m at 90 km/h.
(d) State the conclusion. The line's 45 m at 90 km/h is far too low, roughly 14 m short, because the true relationship curves upward and the line cannot follow it. The prediction is also an extrapolation past the fastest speed tested, so the honest answer is that this line should not be used at 90 km/h at all.
(a) Residuals m, summing to . (b) A clear U: positive at both ends, negative through the middle. (c) The argument fails. measures scatter about a line, not whether a line is the right form, and the U shows the misses are systematic, so a curved model fits better. (d) The line gives 45 m, and the data's second differences of 2 m point to about 59 m, so the line's prediction is far too low as well as an extrapolation.
Problem 8
A park runs six clean-up events and records the number of volunteers, , and the litter collected in kilograms, : , , , , , . The least-squares line is . (a) Compute the six residuals and their sum. (b) A coordinator says the sum shows the line fits the data well. Respond. (c) Describe the residual plot and say whether a linear model is appropriate, justifying your answer. (d) A seventh event with 16 volunteers collected an amount that fell 9 kg below the line's prediction. Find that amount and say how it fits your answer to part (c).
Show the worked solution
(a) Predict at each volunteer count, then subtract predicted from observed.
Volunteers Observed Predicted Residual 4 19 22 6 29 28 8 36 34 10 42 40 12 47 46 14 49 52 (a) Check two rows and add. At , kg and the residual is kg. At , kg and the residual is kg. The sum is kg.
(b) Answer the coordinator. The sum had to be zero. A least-squares line passes through , and here volunteers and kg, with . Every least-squares fit produces residuals that sum to zero, including a terrible one, so the sum checks your subtraction and says nothing about the fit.
(c) Describe the plot. Against volunteers, the residuals run kg: negative at both ends, positive through the middle, tracing a smooth arch rather than scatter.
(c) Give the verdict and the reason. Curvature in a residual plot means the linear model is not the appropriate model, so a line should not be used here. The data say the same thing directly: each extra pair of volunteers added , and then kg, so the returns shrink as the crew grows, which is what happens when a fixed amount of litter is being picked up by more and more people.
(d) Predict at . kg, and falling 9 kg below that prediction is a residual of kg.
(d) Recover the observation. kg, the same amount the 14-volunteer event collected. That is exactly what the arch predicted: the collection has flattened out, the line keeps climbing at 3 kg per volunteer, and the gap between them grows the further past the data you push it.
(a) Residuals kg, summing to . (b) The sum is zero for every least-squares fit, since the line passes through , so it is an arithmetic check and not evidence of a good fit. (c) The residuals trace an arch, negative at both ends and positive in the middle, and that curvature means a linear model is not appropriate; the collected amounts rise by 10, 7, 6, 5, then 2 kg, showing shrinking returns. (d) Predicted kg, so the event collected kg, matching the flattening the arch already showed.