Influential points and outliers: regression practice
By Jude Wallis · Updated
An outlier has a large residual, a high-leverage point has an x-value far from x-bar, and an influential point is one whose removal changes the slope, intercept, or r. These eight problems keep the three apart by refitting lines with and without the suspect point.
AP Statistics: Unit 5 (topics 5.1 Graphical Representations Between Two Quantitative Variables, 5.4 Residuals, 5.5 Least-Squares Regression). Unit 5 of the Fall 2026 AP Statistics course asks you to describe the unusual features of a scatterplot (5.1), which the framework defines as clusters or points that do not fit the general pattern, and to calculate and interpret residuals (5.4) and the least-squares coefficients (5.5). The framework never uses the words influential or leverage, so treat those as standard course vocabulary that makes the same idea precise rather than as exam wording, and note that the framework contains no inference for regression slopes.
What these problems build
These eight problems keep apart three labels that get used as if they meant the same thing.
- An outlier in a scatterplot sits far from the pattern in the y direction, so it has a large residual, observed minus predicted, (with read "y-hat", the predicted response).
- A high-leverage point has an x-value far from ("x-bar", the mean of the x-values). Leverage is about horizontal position only, not about how well the point fits the pattern.
- An influential point is one whose removal noticeably changes the slope, the intercept, or the correlation . That is a conclusion you reach by refitting, not something you can read off a picture.
The two combinations that catch people out appear here on purpose. A high-leverage point that follows the pattern can leave the slope untouched, and a high-leverage point that does not follow the pattern can drag the line toward itself, ending up with a small residual while it quietly tilts the whole fit.
Fit the lines by hand the way problems 3, 4, and 7 ask, then drag a point and watch the same thing happen in the influential point interactive. For the slope and intercept formulas, see least-squares regression line, and check any fit you build with the regression calculator. One warning: the 1.5 IQR rule flags outliers in a single quantitative variable, not points in a scatterplot, so do not use it on regression data. More sets like this one sit on the practice page.
Problem 1
An urban beekeeper fits a least-squares line to 25 hives, relating the frames of brood counted in spring, , to the honey harvested that summer in kilograms, . All 25 hives sit close to the line , their frame counts run from 4 to 14, and the mean is frames.
Treat each hive below as a separate 26th hive added to those same 25. Classify each one as an outlier in the y direction, a high-leverage point, both, or neither.
(a) Hive A: 9 frames, 45 kg. (b) Hive B: 24 frames, 74 kg. (c) Hive C: 26 frames, 24 kg. (d) Hive D: 6 frames, 22 kg.
Show the worked solution
Set the two tests. A point is an outlier in the y direction if it sits far from the pattern vertically, meaning a large residual (observed minus predicted). A point has high leverage if its x-value sits far from , no matter how it lines up vertically.
Part (a), hive A. Its 9 frames equal exactly, so it sits dead center horizontally and has no leverage. The pattern predicts kg, and the hive gave 45 kg, so it lies kg above the pattern, far more than the other hives miss by.
Part (b), hive B. Its 24 frames sit well outside the 4 to 14 range of every other hive, so it has high leverage. The pattern predicts kg, and the hive gave 74 kg, so it lands right on the extension of the line with a residual of 0.
Part (c), hive C. Its 26 frames again sit far outside 4 to 14, so it has high leverage. The pattern predicts kg, and the hive gave 24 kg, a miss of kg, so it is also far off in the y direction.
Part (d), hive D. Its 6 frames sit inside the 4 to 14 range and only 3 frames from , so no leverage. The pattern predicts kg against 22 kg observed, a residual of kg, which is ordinary.
Sort out which one threatens the line. Hive C combines a far-out x-value with a huge vertical miss, so it is the one most likely to swing the slope. Hive A is far off vertically but sits at the center in x, where it has little grip on the tilt of the line, and hive B follows the pattern it extends.
(a) Outlier in the y direction only. (b) High leverage only. (c) Both. (d) Neither. Hive C is the one most likely to change the line.
Problem 2
A vineyard fits one least-squares line predicting a vine's grape yield in kilograms, , from the vine's age in years, , using all 40 vines in a block. Across those 40 vines the mean age is years with standard deviation years. Every vine that is not listed in the table below has an age between 6 and 18 years and a residual between -4 and +4 kg.
| Vine | Age (years) | Residual (kg) |
|---|---|---|
| A | 13 | 9.2 |
| B | 26 | -0.4 |
| C | 25 | 8.8 |
| D | 11 | -1.1 |
(a) For each vine, find how many standard deviations its age sits from . (b) Classify each vine as an outlier in the y direction, high leverage, both, or neither. (c) Which vine is most likely influential, and why does vine B's tiny residual not settle the question?
Show the worked solution
Part (a), measure horizontal distance in standard deviations with , where is the standard deviation (typical spread) of the ages. Vine A: . Vine B: .
Finish part (a). Vine C: . Vine D: .
Read the leverage verdict. Vines B and C sit more than 3 standard deviations from the mean age and outside the 6 to 18 year range of the rest, so both have high leverage. Vines A and D sit a quarter of a standard deviation from the mean, so neither has leverage.
Read the vertical verdict from the residuals. Vine A at 9.2 kg and vine C at 8.8 kg fall outside the -4 to +4 kg band that holds every vine not listed in the table, so both are outliers in the y direction. Vine B at -0.4 kg and vine D at -1.1 kg are ordinary.
Part (b), combine the two verdicts. Vine A is an outlier only, vine B is high leverage only, vine C is both, and vine D is neither.
Part (c), pick the likely troublemaker. Vine C pairs a far-out age with a large vertical miss, so it has both the grip and the pull to move the line, making it the best candidate for an influential point.
Explain why vine B stays unresolved. A high-leverage point can drag the fitted line toward itself, and once the line has moved, that point's own residual comes out small. So a residual of -0.4 kg is consistent with a vine that follows the pattern and also with a vine that bent the line to reach it. Refit the line without vine B and compare the slope, intercept, and to tell the two apart.
(a) A: 0.25 SD, B: 3.5 SD, C: 3.25 SD, D: -0.25 SD. (b) A outlier only, B high leverage only, C both, D neither. (c) Vine C; vine B's small residual proves nothing because a high-leverage point pulls the line toward itself, so you have to refit without it.
Problem 3
A pick-your-own strawberry farm records, for five weeks of one June, the week's rainfall in centimeters, , and the kilograms picked that week, : , , , , . The 20 cm week was a flood that washed out part of the field.
(a) Find the least-squares slope using all five weeks. (b) Find the slope using only the first four weeks. (c) Compare the two, and say what kind of point the flood week is.
Show the worked solution
Part (a), find the means for all five weeks. cm and kg.
Find the deviations from each mean. For : . For : , , , , .
Sum the products of the paired deviations. .
Sum the squared x-deviations, then divide. , so kg per cm.
Part (b), drop the flood week and redo the means. cm and kg, unchanged.
Recompute the two sums with four weeks. The x-deviations are and the y-deviations are still , so and . The slope is kg per cm.
Part (c), compare. Dropping one of five weeks takes the slope from 0.18 to 1.8 kg per cm, ten times steeper, so the flood week is strongly influential. Its rainfall of 20 cm is well beyond the 2 to 8 cm of every other week, so it is high leverage as well.
Check the residual, which is the surprise. With all five weeks the intercept is , so the flood week's predicted value is kg and its residual is kg. The 8 cm week has predicted value kg and residual kg, so the most influential point does not have the largest residual.
(a) kg per cm. (b) kg per cm. (c) Removing the flood week multiplies the slope by 10, so it is highly influential and high leverage, even though its residual of -2.16 kg is smaller than the +6.00 kg residual of an ordinary week.
Problem 4
A school district puts solar panels on five storage sheds and records the number of panels on each shed, , and one sunny day's output in kilowatt-hours, : , , , , .
(a) Find the least-squares line using all five sheds. (b) Find the least-squares line again without the 10-panel shed. (c) Find both ways. (d) Is the 10-panel shed a high-leverage point, and is it influential?
Show the worked solution
Part (a), find the means for all five sheds. panels and kWh.
Find the deviations. For : . For : , , , , .
Compute the two sums and the line. and , so kWh per panel and . The line is .
Part (b), drop the 10-panel shed and redo everything. panels and kWh, the x-deviations are and the y-deviations are .
Finish part (b). and , so and . The line is again, identical to two decimal places and in fact exactly the same.
Part (c), use . With all five sheds, , so and .
Finish part (c) without the 10-panel shed. , so and .
Part (d), give the split verdict. With 10 panels against 1 to 4 for every other shed, the point is clearly high leverage. It leaves the slope and intercept untouched, so it is not influential on the line, but it lifts from 0.900 to 0.989 by stretching the x-range while staying on the pattern, so it is influential on the correlation. High leverage does not force influence, and the effect on the line and the effect on can point in different directions.
(a) . (b) , exactly the same line. (c) with all five sheds and without. (d) It is high leverage, and the verdict splits: it is influential on the correlation, lifting from 0.900 to 0.989, but it is not influential on the line, which stays either way.
Problem 5
A ferry operator plots, for 30 winter crossings, the wind speed in knots at departure, , against the fuel burned in liters, . Twenty-nine of the crossings had wind between 5 and 22 knots and show a moderate positive linear association. The remaining crossing had 44 knots of wind and burned far less fuel than the pattern of the others predicts, because the captain shortened the route that day.
(a) Classify the 44-knot crossing. (b) If it is removed, does the slope get larger or smaller? (c) What happens to ? (d) What happens to ? (e) Suppose instead that the 30th crossing had 40 knots of wind and burned almost exactly what the pattern predicts, with the other 29 crossings unchanged. What happens to the slope and to if that crossing is removed?
Show the worked solution
Part (a), run both tests. At 44 knots the crossing sits at double the largest of the other wind speeds, far from , so it has high leverage. It also sits far below the pattern of the other 29, so it has a large residual. It is both.
Part (b), picture where the point pulls. The crossing sits low and far to the right, so the least-squares line has to tip its right end down to reach it, flattening the fit. Take that anchor away and the right end springs back up, so the slope gets larger, meaning steeper in the positive direction.
Part (c), reason about . The point contradicts the positive association shown by the other 29 crossings, so it weakens the linear pattern and holds closer to 0. Removing it leaves a cleaner positive pattern, so increases toward 1.
Part (d), square the result. Since is positive and rises, rises with it, so a larger share of the variation in fuel is explained by wind speed once the shortened-route crossing is out.
Name what parts (b) through (d) show. Removing one point out of 30 changes both the slope and noticeably, which is the definition of an influential point.
Part (e), switch to the separate scenario. Here the same 29 ordinary crossings are joined by a 30th that ran in 40 knots and burned almost exactly what the pattern predicts, replacing the shortened-route crossing of parts (a) through (d). At 40 knots it still sits far out in x, so it still has high leverage, but it lands on the pattern the other 29 set, so removing it barely moves the slope: the line was already pointing at it.
Finish part (e) with the effect on . That crossing stretched the x-range while adding almost nothing to the scatter around the line, which usually makes the fit look tighter, so and typically go down when it is removed. It is high leverage, not influential on the slope, and still influential on .
(a) Both a high-leverage point and an outlier in the y direction. (b) The slope gets larger (steeper positive). (c) increases toward 1. (d) increases. (e) In that separate scenario the slope barely changes, but and usually drop, since that point widened the x-range while sitting on the pattern.
Problem 6
A survey team fits a least-squares line predicting the number of nesting pairs of terns on an island, , from the island's area in hectares, , for 18 islands. Using all 18 islands the correlation is . One island covers 300 hectares while no other tops 40 hectares, and its nesting count sits well below the pattern of the rest. Refit without that island and the correlation is .
(a) Find both ways and interpret each in context. (b) Is the large island influential? (c) Once it is removed, will the slope be larger or smaller? (d) Does a change in this big prove the island's data are wrong?
Show the worked solution
Part (a), square the correlation for all 18 islands. , so about 23.0 percent of the variation in the number of nesting pairs is explained by the linear relationship with island area.
Square the correlation for the 17 islands. , so about 74.0 percent of the variation in nesting pairs is explained by island area once the 300-hectare island is set aside.
Compare the two. The explained share goes from roughly 23 percent to roughly 74 percent, more than tripling, on the strength of one island out of 18.
Part (b), apply the definition. An influential point is one whose removal noticeably changes the slope, the intercept, or . Removing this island moves from 0.48 to 0.86, so yes, it is influential. Its area of 300 hectares against a maximum of 40 for the others also makes it high leverage, which is why it has so much grip.
Part (c), find the direction. The island sits at a very large x-value and below the pattern, so it drags the right end of the fitted line downward. Removing it releases that end, so the slope gets larger.
Part (d), separate influence from error. Influence is a statement about arithmetic, not about correctness. A 300-hectare island with poor nesting habitat, heavy predation, or human traffic would produce exactly this point and be perfectly real, so a jump in is a reason to investigate the island, not a license to delete it.
(a) with all 18 islands (about 23.0 percent explained) and without (about 74.0 percent). (b) Yes, it is influential and high leverage. (c) Larger. (d) No; a large change in shows influence, not error.
Problem 7
A neighborhood repair cafe logs, for five Saturday sessions, the number of volunteer fixers on duty, , and the number of items repaired, : , , , , . The 10-fixer session was the launch open house, where the fixers spent most of the day training newcomers instead of repairing.
(a) Find the least-squares line using all five sessions. (b) Find the residual for the launch session and the residual for the 4-fixer session, and say which is larger in size. (c) Refit the line without the launch session. (d) Explain how a point can be the most influential one in the data and still not have the largest residual.
Show the worked solution
Part (a), find the means for all five sessions. fixers and items.
Find the deviations. For : . For : , , , , .
Compute the two sums and the line. and , so and . The line is .
Part (b), find the launch session's residual at . items, so the residual is items.
Find the 4-fixer session's residual at . items, so the residual is items, which is larger in size than the launch session's .
Part (c), drop the launch session and refit. fixers and items, with x-deviations and y-deviations .
Finish part (c). and , so and . The line is , and the slope has gone from to , flipping the direction of the whole relationship.
Part (d), explain the small residual. Because the launch session sits far out in x, the least-squares line swings toward it, and most of its distance from the other points gets absorbed by tilting the line rather than left over as a residual. The tilt then pushes the leftover error onto the ordinary sessions, which is why the 4-fixer session ends up with the largest residual. A small residual at a high-leverage point is evidence that the point moved the line, not evidence that it is harmless.
(a) . (b) The launch session's residual is items and the 4-fixer session's is items, so the ordinary session has the larger residual. (c) , so the slope flips from to . (d) A high-leverage point pulls the line toward itself, so its own residual shrinks while the error it creates lands on the other points.
Problem 8
A student fits a line predicting a smoothie shop's daily sales in dollars, , from the day's high temperature in degrees Fahrenheit, , over 30 days. With all 30 days ; leaving out one day gives . That day is logged at 104 degrees while every other day falls between 58 and 86 degrees, and its sales sit far below the pattern.
(a) The student wants to delete the day because the fit is better without it. Is that a good enough reason? (b) The student checks the log and finds the shop's thermometer was swapped that morning and the technician wrote 104 where the reading was 74. What should the student do? (c) Suppose instead the reading is confirmed correct, but the shop closed at noon for a power outage. What should the student do? (d) Suppose the log turns up nothing unusual at all. What should the student do?
Show the worked solution
Part (a), test the reasoning. Deleting whichever point fits worst always improves the reported , so 'the fit improves' would justify deleting your way to any conclusion you like. The jump from 0.41 to 0.88 tells you the day is influential; it says nothing about whether the day is correct.
Part (b), handle a documented recording error. This is an error in transcription with a paper trail, so the fix is to correct the value from 104 to 74 degrees, refit with the corrected value, and state in the write-up what was changed and why. Correcting the number is better than deleting the row, because the sales figure for that day is still good data.
Part (c), handle a case that does not belong. The temperature is genuine, but a day when the shop was open half its usual hours is not measuring the same thing as the other 29 days. You may exclude it as long as you say so plainly: name the day, give the reason (the power outage), and report the fit both with and without it.
Part (d), handle the case with no reason at all. Keep the day. The honest report includes it, describes it as an influential high-leverage point, and shows the analysis both ways so a reader can see how much of the conclusion rests on that single day.
State the general rule. The justification for removing a point has to come from outside the arithmetic, in the form of a documented recording error, a measurement failure, or a case that does not belong to the population being studied. The size of the change in or in the slope is what makes a point worth investigating, never what makes removal legitimate.
Note what to write in all four cases. The write-up should name the point, say what was done to it, give the reason for that choice, and report the slope and for both versions of the analysis.
(a) No; a better fit is never on its own a reason to drop data. (b) Correct the value to 74 degrees, refit, and document the change. (c) You may exclude it, but only by naming the day, stating the power outage as the reason, and reporting both fits. (d) Keep it, flag it as an influential high-leverage point, and report the analysis with and without it.