Sub topic 12
Checking Normality and What to Do When It Fails
Prerequisites
Assume you understand the mean, standard deviation, specification limits, and the basic purpose of Cp and Cpk. You should also know how to read a simple control chart. Capability analysis should use data from a stable process. A stable process has predictable variation over time and no unexplained special-cause signals.
Why normality matters
Cp and Cpk usually use a normal distribution model. Under this model, process output is described by a mean and a standard deviation. The interval from the mean minus three standard deviations to the mean plus three standard deviations contains about 99.73% of the output.
The formulas are:
Cp = (USL - LSL) / (6σ)Cpu = (USL - mean) / (3σ)Cpl = (mean - LSL) / (3σ)Cpk = min(Cpu, Cpl)
These formulas summarize the process using its center and spread. They do not fully describe a skewed distribution, a distribution with heavy tails, or a process with multiple peaks. In those cases, the calculated index may give an inaccurate estimate of the probability of defects.
How to check normality
Start with a histogram. Look for strong skew, long tails, gaps, or more than one peak. A normal probability plot is usually more informative. If the points follow a roughly straight pattern, the normal model may be reasonable. Curvature or extreme deviations at the ends indicate that the tail behavior may not match a normal distribution.
Formal tests, such as the Shapiro-Wilk test, can support the investigation, but they should not make the decision alone. With a small sample, a test may miss important nonnormality. With a very large sample, it may reject a model that is close enough for the intended decision.
Compare the observed defect rate with the rate predicted by the normal model. A large difference, especially near a specification limit, is a warning.
from statistics import NormalDist, mean, stdev
measurements = [9.91, 9.96, 9.98, 10.00, 10.01, 10.03, 10.08]
lsl, usl = 9.85, 10.15
xbar = mean(measurements)
sigma = stdev(measurements)
observed_ppm = (
sum(x < lsl or x > usl for x in measurements)
/ len(measurements)
* 1_000_000
)
model = NormalDist(mu=xbar, sigma=sigma)
predicted_ppm = (
model.cdf(lsl) + 1 - model.cdf(usl)
) * 1_000_000
print(f"Observed defects: {observed_ppm:.0f} ppm")
print(f"Normal-model estimate: {predicted_ppm:.0f} ppm")The comparison above is only diagnostic. A small data set can contain zero observed defects even when the true defect rate is not zero.
What to do when normality fails
First, check the measurement system and the data collection process. Mixed machines, materials, operators, or operating conditions can create a multi-peaked distribution. A time plot may reveal shifts that a histogram hides. Remove or correct data only when there is a documented measurement or recording error. Do not delete valid extreme values simply because they reduce Cpk.
If the process is stable but genuinely nonnormal, choose a method that matches the distribution:
- Transform the measurements, such as with a logarithm, when the transformation has a practical reason and produces a suitable model.
- Fit a justified distribution and calculate the probability below the LSL and above the USL.
- Use percentile-based or nonnormal capability analysis when the tails matter more than a normal summary.
- Report the method, data range, specification limits, and uncertainty so another analyst can reproduce the result.
A normal Cpk from nonnormal data is not automatically useless. It is a model-based summary, and its defect prediction must be treated cautiously. When the result will support a release, safety, or major process decision, use a distributional method validated for the process.
Exercise
A stable process has a strongly right-skewed distribution, but its normal Cpk is 1.45. What should you do before using that value to predict defects?
Show answer
Check the measurement system and process strata, inspect a probability plot and the specification tails, then use a justified transformation or nonnormal capability method if the skew is genuine.