The Engineering Desk
Engineering, without the noise.

DesignSimulations and MathematicsLibrary

Residual analysis

Checking a regression, ANOVA or DOE model by looking at what it leaves unexplained.

Surface plate
Photo: “Surface plate” by Rrudzik, CC0, via Wikimedia Commons

A model is only as good as its assumptions. Residuals, the differences between observed and fitted values, show whether those assumptions hold.

The four standard plots

  • Normal probability plot: points near a line. Curvature means non-normal errors; isolated points off the line mean outliers.
  • Residuals versus fitted values: a random band around zero. A funnel means non-constant variance; a curve means a missing term.
  • Histogram: roughly bell-shaped.
  • Residuals versus run order: no trend or cycles. A pattern here means something drifted during the study, such as tool wear or warm-up.

Influential points

Some points pull the fit strongly. Leverage measures how unusual a point's inputs are; Cook's distance measures how much the fit changes without it. Investigate influential points; do not delete them without a reason.

Fixing problems

See also

References

  1. Montgomery, D. C., Peck, E. A., and Vining, G. G. Introduction to Linear Regression Analysis. Wiley.

More in Simulations and Mathematics