Sub topic 10
From Cpk to Expected Defects per Million
This chapter assumes you can compute Cp, Cpu, Cpl and Cpk from a mean, a standard deviation and specification limits. It also assumes you know the standard normal distribution well enough to read a z-score. Here you turn a capability index into a number people can act on: how many parts per million (ppm) you expect to fall outside the specification.
Why convert an index to ppm
A Cpk of 1.12 means little to a customer or a plant manager. "About 780 parts per million out of tolerance" is concrete. It can be priced against scrap cost, compared with a customer's quality target, and tracked over time.
The conversion rests on one idea. Cpk is a z-score divided by 3. If you know the distance from the mean to a limit, measured in standard deviations, you can look up the tail area beyond that limit in the normal distribution.
The link between Cpk and z
Cpu and Cpl are defined as:
- Cpu = (USL − mean) / (3σ)
- Cpl = (mean − LSL) / (3σ)
The distance from the mean to a limit, in standard deviations, is the z-score for that limit:
- z_upper = (USL − mean) / σ = 3 × Cpu
- z_lower = (mean − LSL) / σ = 3 × Cpl
So Cpk = min(Cpu, Cpl) means that 3 × Cpk is the z-score of the nearest limit. A Cpk of 1.33 puts the nearest limit 4 standard deviations from the mean. A Cpk of 1.0 puts it 3 standard deviations away.
Tail areas under the normal model
Assume the process output follows a normal distribution with the estimated mean and sigma. The fraction of output beyond each limit is then:
- Below LSL: Φ(−z_lower)
- Above USL: Φ(−z_upper)
Φ is the standard normal cumulative distribution function. The expected defect rate is the sum of the two tails, multiplied by 1,000,000 to give ppm.
Worked example: an off-center process
Take a mean of 10.02, a sigma of 0.05, LSL = 9.85 and USL = 10.15.
- z_upper = (10.15 − 10.02) / 0.05 = 2.6, so Cpu = 0.87
- z_lower = (10.02 − 9.85) / 0.05 = 3.4, so Cpl = 1.13
- Cpk = 0.87, and Cp = 1.0
The upper tail beyond z = 2.6 is about 0.004661, or 4,661 ppm. The lower tail beyond z = 3.4 is about 0.000337, or 337 ppm. The total is about 4,998 ppm.
The code below does the same calculation.
from statistics import NormalDist
STD = NormalDist() # standard normal: mean 0, sigma 1
def tail_ppm(mean, sigma, lsl, usl):
z_lower = (mean - lsl) / sigma
z_upper = (usl - mean) / sigma
below = STD.cdf(-z_lower)
above = STD.cdf(-z_upper)
return below * 1_000_000, above * 1_000_000, (below + above) * 1_000_000
low, high, total = tail_ppm(mean=10.02, sigma=0.05, lsl=9.85, usl=10.15)
print(round(low, 1), round(high, 1), round(total, 1))It prints 336.9 4661.2 4998.1.
Two points follow from this result:
- Nearly all the defects come from the nearer limit. The 4,661 ppm above the USL is 93% of the total.
- A Cp of 1.0 would suggest about 2,700 ppm if the process were centered. The off-center process produces nearly twice that, which is why centering matters.
The function above computes each tail as STD.cdf(-z). A common shortcut is 1 - dist.cdf(usl), which works for ordinary cases. Once the tail falls below roughly 1e-16, the subtraction returns exactly 0 in floating point, so a very capable process looks like it has no defects at all. Evaluating the CDF at a negative z keeps the precision.
The one-tail shortcut from Cpk alone
When you only have Cpk, you can estimate the dominant tail as Φ(−3 × Cpk). For the example this gives Φ(−2.6), about 4,661 ppm. That is a slight underestimate of the true 4,998 ppm, because it ignores the far tail.
The shortcut is a lower bound on the two-sided rate. It is accurate when the process is well off-center and the far tail is negligible. It is least accurate when the process is centered, where the true total is twice the shortcut.
Reference table for a centered process
The table assumes a centered process (Cp = Cpk), a normal distribution, and a sigma that holds over time.
| Cpk | Nearest limit (z) | One tail (ppm) | Both tails, centered (ppm) |
|---|---|---|---|
| 0.67 | 2.0 | 22,750 | 45,500 |
| 1.00 | 3.0 | 1,350 | 2,700 |
| 1.33 | 4.0 | 31.7 | 63.3 |
| 1.50 | 4.5 | 3.40 | 6.80 |
| 1.67 | 5.0 | 0.287 | 0.573 |
| 2.00 | 6.0 | 0.001 | 0.002 |
You can regenerate this table:
from statistics import NormalDist
STD = NormalDist()
for cpk in (0.67, 1.0, 1.33, 1.5, 1.67, 2.0):
z = 3 * cpk
one_tail = STD.cdf(-z) * 1_000_000
print(f"Cpk {cpk:.2f} z {z:.2f} one tail {one_tail:.3f} both {2 * one_tail:.3f}")Two numbers in the table are worth remembering:
- A Cpk of 1.33 corresponds to about 63 ppm for a centered process. This is why 1.33 is a common minimum benchmark.
- A Cpk of 1.5 gives a one-tail rate of 3.4 ppm. This is the source of the familiar Six Sigma figure of 3.4 defects per million. That figure assumes a short-term sigma level of 6 with a 1.5-sigma long-term shift of the mean. After the shift, the nearest limit is 4.5 standard deviations away.
Where the ppm figure can mislead
The calculation is exact for the model. It is only as good as the model's assumptions.
The normal assumption controls the tails
The far tail of a distribution is where the normal model is most likely to be wrong. A process with heavier tails, skew or a hard physical boundary can have a very different defect rate from the one the normal curve predicts. Two processes with the same Cpk can differ by orders of magnitude in real ppm. Always check normality, covered in a later chapter, before quoting a ppm figure.
Which sigma you use matters
If you compute ppm from the within-subgroup sigma (R-bar/d2), you get the defect rate the process would show if it held its short-term variation. If the mean drifts between subgroups, actual defects will be higher. The overall-sigma version, Ppk, gives a more realistic long-term figure. Report which one you used.
Precision is limited
The mean and sigma are estimates from a sample. A Cpk calculated from 30 parts has a wide confidence interval, and ppm is extremely sensitive to Cpk. Moving from Cpk 1.33 to 1.0 raises the centered defect rate from 63 to 2,700 ppm, a factor of about 43. Quote ppm to two significant figures at most, and prefer "about 60 ppm" to "63.3 ppm".
The model can't see special causes
The estimate describes a stable process. Defects caused by tool breakage, a bad material lot or an operator error aren't in the normal tails. Observed defects will exceed the prediction if these happen. A process that is out of control has no meaningful ppm figure.
Count what the specification counts
If a part is rejected for exceeding the USL but reworked for falling below the LSL, you may want the two tails separately. The function in this chapter returns them separately for that reason.
Common errors
- Using Cp instead of Cpk. Cp ignores centering and understates defects for an off-center process. Always use the z-scores of the actual limits.
- Doubling the one-tail figure for an off-center process. Doubling is correct only when the process is centered. Otherwise compute each tail from its own z.
- Dropping one tail. A two-sided specification has two tails. Reporting only the nearer one hides the far-tail contribution, which matters when the process is close to centered.
- Mixing up sigma and ppm precision. Quoting 4,998 ppm implies precision the estimate does not have.
- Treating 3.4 ppm as a universal Six Sigma number. It depends on the assumed 1.5-sigma shift. Without that shift, a 6-sigma process has about 0.002 ppm.
Exercise
A process has mean 50, sigma 2, LSL 43 and USL 58. Find zupper, zlower, Cpk, and the approximate expected ppm outside the specification. Use Φ(−4) ≈ 0.0000317 and Φ(−3.5) ≈ 0.000233.
Show answer
zupper = (58 − 50) / 2 = 4.0, so Cpu = 1.33. zlower = (50 − 43) / 2 = 3.5, so Cpl = 1.17. Cpk = min(1.33, 1.17) = 1.17. The upper tail is about 0.0000317, or 31.7 ppm. The lower tail is about 0.000233, or 233 ppm. The total is about 264 ppm. The lower limit contributes almost 90% of the defects, which matches Cpk being set by the lower side.
Exercise
A supplier reports Cpk = 1.33 and says defects will be about 63 ppm. Give two reasons the real defect rate might be higher.
Show answer
The 63 ppm figure assumes a centered process, so it only holds if Cp equals Cpk. For a given Cpk, a centered process gives the highest tail total relative to the shortcut, but the supplier must also have a stable process. The figure also assumes a normal distribution and uses a short-term sigma. If the output is skewed or heavy-tailed, or if the mean drifts over time so that the overall sigma exceeds the within-subgroup sigma, the real rate will be higher. A small sample would also leave the true Cpk uncertain and possibly well below 1.33.