InsightFab
Knowledge Base/Residual Analysis in Improvement Validation: Assessing Model Fit
DMAIC6 min read

Residual Analysis in Improvement Validation: Assessing Model Fit

This article highlights the critical role of residual analysis, explaining why seemingly robust models often fail to deliver accurate real-world predictions, starting with a troubling CPK report. It details what residuals are, their significance for model fit, and how to identify crucial factors missed by models to prevent discrepancies between predicted and actual outcomes.

That Day, When the CPK Report Came Out, the Room Was Silent for Three Seconds, and Only Then Did I Understand the Meaning of 'Residuals'

I recall a day when a new product on our production line was gearing up for mass production. The first CPK report came out, showing a result of 1.08. The entire room fell silent for three seconds, followed by the General Manager's voice: "1.08? How do we explain this to the customer?" Everyone knows that CPK 1.33 is the basic threshold; 1.08 is simply asking for trouble. Subsequent investigation revealed that our validation model consistently showed a noticeable gap between predicted and actual values under certain specific conditions. At that moment, I wondered, what exactly was wrong with this model? To put it plainly, we simply hadn't grasped the significance of 'residuals,' this little devil.

Where Does the Problem Lie? Why Are Models Always Slightly Off?

Have you ever encountered a similar situation? The model produces beautiful data, but actual production is always just a little bit off. Frankly, this indicates an issue with your model's 'fit.' In plain language, the model hasn't 100% captured all factors influencing the outcome. During validation, we often build a model to predict results, for instance, predicting the performance of a certain parameter across different machines or batches. Residual analysis, in essence, examines the difference between your model's predicted values and the actual values. This 'difference' is the residual.

Therefore, the key point is: the larger the residuals, the less accurate your model's predictions. If residuals exhibit a pattern, it's even more problematic, indicating that your model might have omitted some important variables. For example, in our case, with a CPK of 1.08 and DPMO as high as 6210, as soon as the residual plot was generated, we immediately saw several data points from certain batches consistently deviating significantly from the prediction line. Doesn't this mean the model failed to account for the unique characteristics of those batches?

How Is It Done in Practice? Interpreting Residual Plots

Residual analysis is actually quite simple; you don't need to delve into complex statistical formulas. The most intuitive way is to look at a 'residual plot'.

  1. Random Distribution is Best: If the data points on your residual plot are randomly scattered above and below the zero axis with no discernible pattern, then congratulations, your model's fit is quite good. This indicates that your model has done its best to explain most of the variation.
  2. Finding Patterns is Bad News: If you see residuals forming shapes like a megaphone, a V-shape, or displaying periodicity like waves, then you need to be cautious. This indicates that your model has a systematic bias. In our case, the residual plot showed a clear U-shape, where many validation data points in a specific operating range significantly differed from the predicted values. This suggested our model might have overlooked the influence of temperature or humidity on that range.
  3. Outlier Treatment: Sometimes you'll see a few points suddenly drifting far away from other data points. These are outliers. They could be measurement errors, or they could genuinely be caused by special reasons. First, check if there was a measurement error; if not, then you need to delve deeper into the reasons behind these outliers.

In other words, examining a residual plot is like giving your model an 'X-ray' to see if there are any hidden, undiscovered issues.

The Most Common Trap: Pretty Numbers Don't Tell the Whole Story

To be honest, I've made this mistake before. The model's R-squared value was very high, and I felt quite satisfied. However, once mass production began, problems arose. That time, we were developing a yield prediction model for a new material, and the R-squared reached 0.95, which looked fantastic. But in actual production, the yield was stuck at 98.2% and couldn't improve further. It was only after performing residual analysis that we discovered the residual plot showed a clear downward curving trend in the low-temperature process area, indicating that the model underestimated the yield loss in low-temperature processes. At that time, we were too trusting of the R-squared and ignored the warnings issued by the residual plot.

In essence, R-squared only tells you how much variation the model explains, but it doesn't tell you whether the model has systematic errors. Don't let pretty numbers deceive you; the residual plot is the true 'demon-revealing mirror' for model fit.

One Thing You Can Do Today

Find the residual plot for your current model and check if there are any patterns.

Want to try it yourself?

Every tool mentioned in this article is available on InsightFab — just upload a CSV to analyze.

Go to Tools