Lesson 7: Regression Diagnostics — Residuals, Outliers and Influential Points
A regression line is a summary, and like every summary it can hide as much as it reveals. The way to check it is to look at what it leaves behind: the residuals, the differences between the observed values and the values the line predicts. A residual is computed as observed minus predicted, so a positive residual means the actual value sits above the line and a negative one means it sits below. Plotting the residuals against the explanatory variable is the single most informative diagnostic in regression, and it should become a reflex.
A good residual plot looks like a random scatter of points around the horizontal line at zero, with no pattern and roughly constant vertical spread. A curved pattern in the residuals is a clear signal that the relationship is not really linear, and that a line is the wrong model — this is the plot's most valuable message. A fan shape, where the spread of residuals grows as x grows, signals that the variability of the response changes with x, which undermines the usual inference procedures. Either pattern means you should stop and reconsider the model rather than reporting the line's numbers.
Two kinds of unusual points need separate names because they do different damage. An outlier in regression is a point with a large residual, sitting far above or below the line, while other points follow the pattern. An influential point is a point whose removal would substantially change the line, typically because it has an extreme x-value and sits far from the bulk of the data. A point can be one, the other, or both: an extreme-x point that follows the pattern is influential without being an outlier, and a large-residual point near the middle of the x-range is an outlier without being influential.
The practical response to an unusual point is investigation, not automatic deletion. Ask whether it is a data-entry error, a measurement from a different population, or a genuine extreme that the model should account for. If it is an error, correct or remove it and say so; if it is genuine, report the analysis with and without it so the reader can see its effect. In free-response answers, a good discussion names the point, says whether it is an outlier or influential, and explains how the line, the correlation, or the conclusions would change if it were removed.
A worked example
Worked example: consider the worked-example data on ten houses, with size in hundreds of square feet and price in thousands: the fitted line is ŷ = 50 + 30x. A house of 20 hundred square feet is predicted at 650 thousand, but its actual price is 720 thousand, so its residual is 720 − 650 = +70, a large positive residual that marks it as an outlier if the other residuals are within about 20 of zero. Now add an eleventh house, a mansion of 90 hundred square feet priced at 2,700 thousand: its x-value is far beyond the rest, so removing it would tilt the whole line, making it influential, even though it happens to sit close to the line's extension and is not an outlier.
A residual plot is also where you check the conditions that later inference will need, so get in the habit of describing it fully: random scatter or pattern, roughly constant spread or a fan, and any points standing apart. When you report a regression in an answer, the residual plot is part of the evidence, not decoration: a line with a curved residual plot is not a good model, however impressive its r² looks. The next lesson takes up the curved case directly and shows how transformations can straighten a relationship that a line cannot describe.
Key Terms
- Residual
- Observed value minus predicted value; what the regression line leaves unexplained.
- Residual plot
- A plot of residuals against x; random scatter supports a linear model, a pattern argues against it.
- Outlier (regression)
- A point with a large residual, far from the line.
- Influential point
- A point whose removal would substantially change the regression line.
- Leverage
- How far a point's x-value is from the bulk of the data; high leverage points have more potential influence.
Discussion Questions
- A residual plot shows a clear U-shape. What should you conclude about the linear model?
- Can a point be influential without being an outlier? Give an example.
- Why is it wrong to delete an unusual point just because it is unusual?
Practice Questions
- An observed value is 40 and the line predicts 35. What is the residual?
- A residual plot shows residuals growing more spread out as x increases. What does this suggest?
- A point has an extreme x-value and sits almost exactly on the line. Is it an outlier, influential, both, or neither?
- What pattern in a residual plot suggests the relationship is curved rather than linear?
- Why do we plot residuals against x rather than against the predicted values only?
Show answers
- 40 − 35 = +5.
- The variability of the response is not constant; the spread increases with x, which is a problem for inference.
- It is influential, because its extreme x-value gives it leverage over the line, but it is not an outlier since its residual is small.
- A systematic curve, such as a U-shape or an arch, in the residuals.
- Plotting against x can reveal patterns tied to the explanatory variable, including curvature and changing spread, which the line itself would hide.