Sub topic 10
From Cpk to Expected Defects per Million
This chapter assumes you know the mean, standard deviation, specification limits, and basic normal-distribution terms. It also assumes that the process is stable and that the standard deviation represents the variation you want to predict.
The connection between Cpk and defects
The capability index Cpk measures the distance from the process mean to the nearest specification limit in units of three standard deviations:
\[ Cpk = \min(Cpu, Cpl) \]
where:
\[ Cpu = \frac{USL-\bar{x}}{3\sigma} \]
\[ Cpl = \frac{\bar{x}-LSL}{3\sigma} \]
The distance to each limit is a z-score:
\[ z_{upper} = 3Cpu \]
\[ z_{lower} = 3Cpl \]
A larger z-score means less probability that an observation will cross that limit. To estimate defects per million opportunities, calculate the probability below the lower limit and above the upper limit, then multiply the total by 1,000,000.
from statistics import NormalDist
def expected_ppm(mean, sigma, lsl, usl):
dist = NormalDist(mu=mean, sigma=sigma)
below_lsl = dist.cdf(lsl)
above_usl = 1 - dist.cdf(usl)
return (below_lsl + above_usl) * 1_000_000
print(round(expected_ppm(10.02, 0.05, 9.85, 10.15)))The result is about 321,000 defects per million. This estimate assumes a normal distribution and uses the process mean of 10.02 and standard deviation of 0.05.
Work through the example
For the example:
- LSL = 9.85
- USL = 10.15
- Mean = 10.02
- Sigma = 0.05
First calculate the two capability distances:
\[ Cpu = \frac{10.15-10.02}{3(0.05)} = 0.87 \]
\[ Cpl = \frac{10.02-9.85}{3(0.05)} = 1.13 \]
Therefore:
\[ Cpk = \min(0.87, 1.13) = 0.87 \]
The upper limit is closer to the mean. Its z-score is:
\[ z_{upper}=3(0.87)=2.60 \]
The lower limit has a z-score of about 3.40. The upper-tail probability is therefore much larger than the lower-tail probability. Adding both tail probabilities gives approximately 321,000 expected defects per million.
| Cpk, approximately centered | Approximate two-sided defects per million |
|---|---|
| 1.00 | 2,700 |
| 1.33 | 66 |
| 1.67 | 0.6 |
These values are model-based estimates, not guarantees. They assume a stable, normal process and an accurately estimated sigma.
One-sided and two-sided estimates
For a centered process with two specification limits, the two tails have equal probability. A common shortcut is:
\[ PPM \approx 2[1-\Phi(3Cpk)] \times 1{,}000{,}000 \]
Here, \(\Phi\) is the cumulative standard-normal probability. This shortcut is unsuitable when the process is strongly off-center.
For a one-sided specification, use only the applicable tail. For an upper-only limit, use:
\[ PPM = [1-\Phi(3Cpu)] \times 1{,}000{,}000 \]
For a lower-only limit, use:
\[ PPM = \Phi(-3Cpl) \times 1{,}000{,}000 \]
The calculation describes expected output under the measured conditions. It does not replace direct inspection of actual defect counts.
Limits of the estimate
A Cpk estimate can be misleading when the process drifts, contains special causes, has a non-normal shape, or uses too little data. The estimate also depends directly on sigma. Underestimating sigma makes Cpk look better and makes the predicted defect rate look smaller.
Compare predicted PPM with observed defects, but do not expect exact agreement in a small sample. The prediction describes a long-run probability, while observed counts fluctuate.
Exercise
A stable, centered process has Cpk = 1.00. Using the normal model, what is the approximate two-sided defect rate?
Show answer
About 2,700 defects per million opportunities, because each specification limit is three standard deviations from the mean and the two tail probabilities are added.