Sub topic 8
Cpk: the Distance to the Nearest Limit
Prerequisites and the key idea
This chapter assumes you know how to calculate a mean and standard deviation. You should also understand that specification limits define acceptable output: the lower specification limit (LSL) is the smallest acceptable value, and the upper specification limit (USL) is the largest.
Cpk measures how close a process is to its nearest specification limit after accounting for process variation. It includes both spread and centering.
A stable process is required. If the process mean or variation changes over time, one Cpk value may hide important behavior.
Calculating Cpu, Cpl, and Cpk
First calculate the distance from the process mean to each limit in units of three standard deviations:
\[ C_{pu} = \frac{USL-\bar{x}}{3\sigma} \]
\[ C_{pl} = \frac{\bar{x}-LSL}{3\sigma} \]
Here, \(\bar{x}\) is the process mean and \(\sigma\) is the within-process standard deviation. The indices are named for the upper and lower sides.
Cpk uses the smaller of these two values:
\[ C{pk} = \min(C{pu}, C_{pl}) \]
The smaller value controls because defects are more likely on the side with less room.
| Quantity | Formula | What it measures |
|---|---|---|
| Cpu | (USL − mean) / (3σ) | Distance to the upper limit |
| Cpl | (mean − LSL) / (3σ) | Distance to the lower limit |
| Cpk | min(Cpu, Cpl) | Distance to the nearest limit |
For example, suppose the mean is 10.02, the standard deviation is 0.05, the LSL is 9.85, and the USL is 10.15:
\[ C_{pu}=\frac{10.15-10.02}{3(0.05)}=0.87 \]
\[ C_{pl}=\frac{10.02-9.85}{3(0.05)}=1.13 \]
Therefore:
\[ C_{pk}=\min(0.87,1.13)=0.87 \]
The upper limit is the constraint. The process mean is closer to the USL than to the LSL.
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)
cp, cpu, cpl, cpk = cp_cpk(
mean=10.02,
sigma=0.05,
lsl=9.85,
usl=10.15,
)
print(round(cp, 2), round(cpu, 2), round(cpl, 2), round(cpk, 2))This prints:
1.0 0.87 1.13 0.87Why Cpk can be lower than Cp
Cp compares the total specification width with six standard deviations:
\[ C_p=\frac{USL-LSL}{6\sigma} \]
Cp assumes the process is centered between the limits. Cpk does not make that assumption. When the mean moves toward one limit, the available room on that side becomes smaller, so Cpk decreases.
A centered process has equal Cpu and Cpl values. In that case, Cp and Cpk are equal. An off-center process has Cpk below Cp.
Interpreting the result
A common minimum benchmark is Cpk = 1.33. This means the nearest limit is at least four standard deviations from the mean under the normal model. A value below 1.00 indicates that the process spread reaches beyond a specification limit. Values near a benchmark should be treated as estimates, especially with small samples.
Exercise
A process has mean 50, standard deviation 2, LSL 44, and USL 56. Calculate Cpu, Cpl, and Cpk. Which limit is closer?
Show answer
Cpu = (56 − 50) / (3 × 2) = 1.00. Cpl = (50 − 44) / (3 × 2) = 1.00. Therefore Cpk = 1.00, and both limits are equally distant.