Find how far each point sits from a best-fit line, with every residual listed and a residual plot to spot curves and outliers, or work out a single residual from an observed and predicted value.
residual = observed − predicted
A residual is the gap between an observed value and the value a model predicted for it. A positive residual means the point sits above the line (the model under-predicted); a negative one means it sits below.
For a least-squares line the residuals always add up to zero, and the line is placed to make the sum of their squares as small as possible. Their size tells you how well the model fits individual points.
Their pattern matters even more. Plotted against the fitted values, good residuals look like a random band around zero. A curve, a funnel shape or a lone point far from the rest each signal a problem with the model.
As defined in OpenStax Introductory Statistics, section 12.3, and the NIST/SEMATECH e-Handbook, section 4.4.4. See Sources.
It's the cheapest flat for its size, so either a bargain or missing something the line can't see, such as a busy road or no garden.
The residuals add to zero, and their squares add to the smallest possible total.
| Area | Price | Predicted | Residual | Squared |
|---|---|---|---|---|
| 50 | 180 | 179.3 | 0.7 | 0.5 |
| 65 | 210 | 208.6 | 1.4 | 2 |
| 80 | 245 | 237.9 | 7.1 | 51 |
| 95 | 250 | 267.1 | -17.1 | 293.9 |
| 110 | 300 | 296.4 | 3.6 | 12.8 |
| 125 | 330 | 325.7 | 4.3 | 18.4 |
The actual value is higher than predicted: the point sits above the line.
A least-squares line with an intercept always passes through the point (x̄, ȳ), which balances the positive and negative residuals exactly.
A shapeless horizontal band around zero, with no curve, no funnel and no isolated points.
A residual divided by its estimated standard deviation. Values beyond about ±2 are worth a look.
The error is the gap from the true (unknown) line; the residual is the gap from the fitted line. Residuals are our estimates of the errors.
R² = 1 − (sum of squared residuals) ÷ (total sum of squares around the mean).
Use the Data Analysis ToolPak’s Regression tool and tick “Residuals”, or subtract =FORECAST.LINEAR predictions from the actual values.
Yes, the formula is the same: observed minus the curve’s prediction. The polynomial and exponential regression calculators fit curves.
Related Tools
Linear relationship strength.
Linear correlation coefficient.
Rank correlation.
Regression fit quality.
Parabolic curve fit.
Third-degree polynomial fit.