Improve Phase

Residual Analysis (Regression Diagnostics)

Residual analysis is the check of a regression model's assumptions through its residuals, the differences between observed and fitted values. Residual plots reveal curvature, non-constant variance, dependence over time, non-normal errors, missing variables and influential points. A model whose residuals look like random noise can be trusted for its p-values and intervals.

Quick facts

Type
Diagnostic check of a regression model
Residual
e = y − ŷ (observed minus fitted)
Standard plots
Residuals vs fits, normal probability plot, histogram, residuals vs order
Assumptions checked
Linearity, independence, normality and constant variance of the errors
Origin
Systematized by Anscombe and Tukey (1963); Cook's distance by Cook (1977)
Reference
IASSC™ Green Belt Body of Knowledge §4.1.3 and §4.2.4
Exam relevance
Green Belt (Improve phase)

What is residual analysis and why does it matter?

Every regression model makes assumptions about its error term: the errors are independent, roughly normal with a mean of zero, and have the same variance at every fitted value, and the chosen form (a straight line, a curve) is right. The errors cannot be seen, but their estimates can: the residuals.

Residual analysis matters because least squares always produces an equation, even a wrong one. R² and p-values do not reveal that a straight line is fitted to a curve, or that the error grows with Y. The residuals do.

In a Lean Six Sigma project, the check belongs to every regression in Improve (IASSC™ §4.1.3 for simple regression and §4.2.4 for multiple regression), before the model is used to set targets or predict results.

Residual analysis is the step that decides whether a regression model's numbers can be believed.

How do you calculate and plot residuals?

Each residual is the vertical distance from a point to the fitted line:

  • e = y − ŷ (observed minus fitted; a positive residual lies above the line)
  • Standardized residual, approximately: e / S, where S is the standard error of the regression

Worked example. Brightwater Health's pharmacy model is Ŷ = 22.0 + 4.0 × items, with S = 3.16 minutes.

Items (X)Observed (min)Fitted (min)Residuale / S
23230+2+0.63
43438−4−1.26
64746+1+0.32
85754+3+0.95
105962−3−0.95
127170+1+0.32

The residuals sum to zero, as least-squares residuals always do with an intercept. None exceeds two standard errors. Values are rounded half-up to two decimals.

Then plot them in four views: residuals versus fitted values, a normal probability plot, a histogram, and residuals in time order. Many teams view the four together on one page.

Residual analysis starts with a simple subtraction and a few plots, and six points are enough to show the method, though not enough to judge normality.

How do you read residual plots?

A good model leaves a random, even band of residuals around zero, with no shape. Each departure points to a specific problem:

What you seeWhat it suggestsUsual next step
Funnel: spread grows with the fitted valueNon-constant variance (heteroscedasticity)Transform Y (log, square root, Box-Cox)
Curve or U shape vs fits or vs XThe straight line misses curvatureAdd a squared term or transform X
Long runs above, then below zero, in time orderErrors not independent (autocorrelation)Look for a time-related X: shift, season, drift
Two clusters when colored by a groupA categorical variable is missingAdd the group as an indicator variable
Normal plot bends away at both endsNon-normal errors (heavy or light tails)Check outliers; consider a transformation
One point far from the restOutlier or data errorVerify the record (see below)

At Harbourside Council, residuals of a permit-time model plotted in date order ran above zero for six weeks and below for five: the model was missing the seasonal staffing level. Adding it removed the runs and cut S.

Residual analysis turns each visible pattern into a concrete change to the regression model.

How do you handle outliers, leverage and influential points?

Three ideas are often confused:

  • An outlier has a large residual: its Y is far from the line. As a rule of thumb, a standardized residual beyond ±2 deserves a look, beyond ±3 a close look.
  • A high-leverage point has an unusual X value, far from x̄. It can pull the line toward itself. A common flag is leverage above 2(k + 1)/n or 3(k + 1)/n, where k is the number of predictors.
  • An influential point changes the coefficients noticeably when removed. Cook's distance combines residual and leverage; values above 1 flag likely influence, and some texts already flag values above 0.5 or above 4/n.

The practice is the same for all three:

  1. Verify the record. Typing errors and measurement faults are corrected, not modeled.
  2. Compare the fits with and without the point, and report how much the conclusions depend on it.
  3. Never delete a point only because it is inconvenient. A genuine extreme case may be the most informative observation in the data.

Residual analysis treats unusual points as questions about the process before treating them as problems for the model.

What changes for residuals in multiple regression?

The assumptions and the four standard plots are the same with several predictors. Multiple regression adds a few checks:

  • Residuals versus each X in the model. A curve against one predictor shows which term needs a square or a transformation.
  • Residuals versus variables not in the model, such as team, shift or day. Structure here means the variable explains part of the remaining variation.
  • Residuals in time order, with the Durbin-Watson statistic as a formal test of autocorrelation when data are sequential (Durbin and Watson, 1950).
  • Leverage and Cook's distance become more important, because unusual combinations of Xs are harder to see in any single plot.

Multicollinearity does not show in the residuals; it is checked with the variance inflation factors.

Residual analysis in multiple regression follows the same logic as in simple regression, applied to every predictor and every candidate predictor.

What are the common mistakes in residual analysis?

Residual analysis is quick, visual and catches problems that summary statistics hide. Its common mistakes are:

  • Testing the normality of X or Y instead of the residuals. The model assumes normal errors; the predictors can have any distribution.
  • Reading the sign backwards. The residual is observed minus fitted.
  • Over-reading small samples. With few points, a normal plot always looks a little crooked.
  • Removing outliers to improve R² without checking the records.
  • Skipping the time-order plot when data were collected over weeks.

Residual analysis works when every pattern found leads to a question about the process and a change to the model.

Residual analysis vs. normality tests: what is the difference?

Residual analysisNormality test on raw data
What is checkedThe errors of a fitted modelThe distribution of one variable
Used forValidating a regression before using its p-values and intervalsChoosing a test or a capability method
Main toolsResiduals vs fits, normal plot, histogram, residuals vs orderNormal probability plot, Anderson-Darling or similar test
Assumptions coveredLinearity, independence, normality, constant varianceNormality only
In regressionRequiredNot required for X or Y themselves

A regression model assumes normal errors, not normal predictors or responses. Residual analysis checks that assumption, and three others, on the residuals of the fitted model.

Exam focus

Residual analysis is IASSC™ section 4.1.3 for simple regression and 4.2.4 for multiple regression, in Green Belt scope only. Questions show a residual pattern and ask which assumption fails (funnel, curve, runs, clusters, bent normal plot), ask for a residual with its sign, or test what to do with a high-leverage or influential point. The common trap is thinking X must be normal. Practise in the Improve phase drill.

Practise this DMAIC phase →

FAQ

What should a good residual plot look like?

A random, horizontal band of points centered on zero, with roughly the same spread at every fitted value and no curves, funnels, runs or clusters. The normal probability plot should follow a straight line without strong bends at the ends. Any visible structure means the model is missing something.

What does a funnel shape in a residual plot mean?

A funnel, where the residuals spread wider as the fitted values grow, means the error variance is not constant. P-values and intervals then become unreliable. Transforming Y, often with a log, square root or Box-Cox power, usually stabilizes the variance.

Do the X variables need to be normally distributed in regression?

No. Regression treats the X values as fixed and makes its assumptions about the error term: independence, constant variance, normality and a mean of zero. Those assumptions are checked on the residuals. A skewed X is acceptable, though a few extreme X values may have high leverage.

Should I delete outliers from a regression?

Not automatically. First verify the record: correct genuine errors. If the point is real, fit the model with and without it and report the difference. A real extreme case may reveal an important condition of the process, and deleting it hides that information.

How do I calculate a residual?

Subtract the fitted value from the observed value: e = y − ŷ. If a model predicts 38 minutes for a prescription that took 34 minutes, the residual is −4 minutes. A negative residual means the point lies below the line; a positive one, above it.

Sources

Last reviewed

Six Sigma is a registered trademark of Motorola Trademark Holdings, LLC. IASSC™, International Association for Six Sigma Certification™, IASSC Certified Green Belt™ and IASSC Certified Yellow Belt™ are trademarks of the International Association for Six Sigma Certification. ASQ® and its certification names belong to ASQ. Other names may be trademarks of their respective owners. This guide is independent and is not affiliated with, endorsed by or sponsored by IASSC™, PeopleCert, ASQ® or any certifying body. Its practice questions are original and are not taken from any exam.