Short answer: a residual is the gap between an observed value and the value a model predicted: residual = actual − predicted (e = y − ŷ). Positive means the point is above the regression line; negative means below.
Last updated: November 2026.
Worked example
A regression predicts house price (£k) from floor area: ŷ = 50 + 2.5 × area (m²).
| Area (m²) | Actual price | Predicted ŷ | Residual |
|---|---|---|---|
| 80 | £260k | £250k | +£10k |
| 100 | £290k | £300k | −£10k |
| 120 | £355k | £350k | +£5k |
Key facts about residuals
- In least-squares regression with an intercept, residuals sum to zero.
- The line is chosen to make the sum of squared residuals as small as possible.
- R² compares that sum with the total variation. See R squared.
Reading a residual plot
| Pattern | What it suggests |
|---|---|
| Random scatter around 0 | The linear model fits well |
| Curve (U shape) | The relationship is not linear |
| Funnel (spread grows) | Unequal variance (heteroscedasticity) |
| One point far away | Possible outlier |
Frequently asked questions
Is a residual the same as an error?
Close, but not quite. The error is the gap from the true (unknown) population line. The residual is the gap from the line you estimated from your sample.
Is a big residual bad?
One big residual flags a point the model explains poorly. Many big residuals mean the model is a weak fit.






