Sub topic 3
Reading the numbers: benchmarks and Cp versus Cpk
This chapter assumes you can calculate a mean and standard deviation, you know the normal distribution, and you can compute Cp, Cpu, Cpl, and Cpk from specification limits.
Reading the numbers: benchmarks and Cp versus Cpk
A Cpk of 1.33 is a common minimum for an established process. Values of 1.67 or 2.0 are often required for safety-critical or high-volume parts. Cp and Cpk differ in one way: Cp ignores centering, while Cpk does not. A large gap between Cp and Cpk means the process is spread narrowly enough but sits off target.
def cp_cpk(mean, sigma, lsl, usl):
cp = (usl - lsl) / (6 * sigma)
cpu = (usl - mean) / (3 * sigma)
cpl = (mean - lsl) / (3 * sigma)
return cp, cpu, cpl, min(cpu, cpl)
print([round(v, 2) for v in cp_cpk(10.02, 0.05, 9.85, 10.15)])The output is [1.0, 0.87, 1.13, 0.87]. Cp is 1.0, but Cpk is 0.87, below the 1.33 benchmark.
From Cpk to expected defects per million
Assuming a normal distribution, you can convert the mean and sigma into the share of output outside the limits. This gives an expected defect rate in parts per million (ppm).
from statistics import NormalDist
def expected_ppm(mean, sigma, lsl, usl):
dist = NormalDist(mu=mean, sigma=sigma)
return (dist.cdf(lsl) + 1 - dist.cdf(usl)) * 1_000_000
print(round(expected_ppm(10.02, 0.05, 9.85, 10.15)))The result is roughly 5,000 ppm.
One-sided specifications
When only one limit exists, such as a minimum strength with no maximum, Cpk equals Cpu (for an upper limit only) or Cpl (for a lower limit only). Cp is not meaningful in this case because it needs two limits.
Checking normality and what to do when it fails
The ppm and Cpk results assume normal data. Test this with the Anderson-Darling or Shapiro-Wilk test before reporting capability. If the data fail, either transform it (for example, with a Box-Cox transform) and recalculate, or estimate capability from the empirical 0.135th and 99.865th percentiles.
Pp and Ppk: how they differ from Cp and Cpk
Cp and Cpk use within-subgroup sigma, which captures short-term variation. Pp and Ppk use the overall standard deviation of all the data, which includes shifts between batches. Ppk is usually lower than Cpk when the process drifts over time.
Sample size and confidence in a Cpk estimate
A Cpk value from a small sample is imprecise. The approximate standard error is the square root of (1/(9n) + Cpk²/(2(n−1))). With n = 30 and Cpk = 1.33, the standard error is about 0.19, so the true value could plausibly lie between 1.0 and 1.7. Collect more data before making a pass or fail decision on a borderline index.
Exercise
A process has a mean of 50.0, a sigma of 0.5, and limits of 48.5 and 51.5. What is Cp, and what is Cpk?
Show answer
Cp = (51.5 − 48.5) / (6 × 0.5) = 1.0. Cpu = (51.5 − 50.0) / (3 × 0.5) = 1.0, and Cpl = (50.0 − 48.5) / (3 × 0.5) = 1.0, so Cpk = 1.0. The process is centered, so Cp and Cpk match.