1Residuals
Residual
Observed minus predicted. Positive: the point is above the line.
ExampleLine , point (2, 4): , so
Residuals add to zero
ExampleData (1,2), (2,4), (3,5), (4,4), (5,5): residuals add to 0
Sum of squared errors
The least-squares line makes this as small as possible.
Example
Standard error of the residuals
The typical size of a prediction error, in y's units.
Example: predictions are typically off by about 0.9
r² from the residuals
Example:
2The four cases
3What each residual plot means
| Pattern | Meaning | What to do |
|---|---|---|
| Random scatter around 0 | A line is a good model | Use the line |
| Curve (U or ∩ shape) | The relationship is not linear | Try a transformation (log, square root) or a curved model |
| Fan (spread grows or shrinks) | Unequal spread: predictions are less reliable for some x | Transform y, or be cautious with intervals |
| One large residual | An outlier in y | Check it for errors; report results with and without it |
A high r² does not prove a line fits: a curved pattern can have r² above 0.9. The residual plot is the check.
4Influential points
5Unusual points
Outlier
A point with a large residual (far from the line in the y direction).
ExampleA residual of 3.2 when the others are within ±1
High leverage
A point with an x value far from .
Examplex values 1 to 6 and one at 9
Influential
A point whose removal changes the slope, intercept or r a lot. High-leverage points often are.
ExampleFit with and without the point; if the slope moves a lot, it is influential
6Checking a linear model
- Plot y against x: is the form roughly linear?
- Fit the least-squares line and compute the residuals.
- Plot the residuals against x (or against ŷ): look for random scatter around 0.
- Look for outliers and influential points, and refit without them to compare.
- Report the line, r², and s in context.
Related
Scatterplots and correlation
Reading direction, form and strength; what weak, moderate and strong correlation look like; r, r² and the least-squares line.
Intro stats · AP Stats
Statistics on the TI-84
Keystrokes for 1-Var Stats, normal, t, binomial and geometric probabilities, every test and interval, and regression, with what to write on an AP exam.
AP Stats · Intro stats
Shape and skewness
Symmetric, skewed, uniform and bimodal shapes, where the mean and median fall, and how to measure skewness.
Intro stats · AP Stats