Sub topic 11
Process Capability: Cp and Cpk
Prerequisites and purpose
This chapter assumes you know how to calculate a mean and understand standard deviation as a measure of spread. You should also know that specification limits describe what the customer accepts. Control limits describe how a process behaves over time. They are different.
Process capability compares a stable process with its specification limits. It answers two questions:
- Is the process spread narrow enough to fit between the limits?
- Is the process centered between those limits?
Capability indices are useful only after the process is stable. A process with special causes still present can produce misleading values.
Cp measures potential capability
Cp compares the width of the specification range with six standard deviations of process spread:
Cp = (USL - LSL) / (6s)
USL is the upper specification limit. LSL is the lower specification limit. The value s is the estimated standard deviation.
Six standard deviations cover the central spread of a normal distribution when the process mean is centered. Cp therefore measures potential capability. It ignores where the process mean is located.
For example, suppose shaft diameters must be between 9.85 mm and 10.15 mm. The specification width is 0.30 mm. If the standard deviation is 0.03 mm, then:
Cp = 0.30 / (6 × 0.03) = 1.67
The specification width is 1.67 times the six-standard-deviation process spread. A higher Cp means more room between the process spread and the customer limits.
Cpk includes centering
Cpk considers the distance from the process mean to the nearest specification limit:
Cpk = min((USL - mean) / (3s), (mean - LSL) / (3s))
A process can have a good Cp but a lower Cpk if its mean is too close to one limit. Cpk is therefore a more realistic measure of current capability.
| Index | What it measures | Main limitation |
|---|---|---|
| Cp | Potential capability from spread | Ignores process centering |
| Cpk | Capability after considering centering | Still assumes a stable, suitable process model |
If Cp and Cpk are nearly equal, the process is approximately centered. If Cp is much larger than Cpk, the process has enough potential spread performance but is poorly centered.
Many organizations use 1.33 as a practical minimum, but this is not a universal rule. Safety, regulatory, customer, and business requirements may demand a different value.
Calculate the indices
from statistics import mean, stdev
def capability(data, lsl, usl):
if len(data) < 2:
raise ValueError("at least two measurements are required")
if lsl >= usl:
raise ValueError("lsl must be less than usl")
m, s = mean(data), stdev(data)
if s == 0:
raise ValueError("standard deviation must be greater than zero")
cp = (usl - lsl) / (6 * s)
cpk = min(usl - m, m - lsl) / (3 * s)
return m, s, cp, cpk
measurements = [10.02, 9.98, 10.05, 9.97, 10.01,
10.03, 9.99, 10.00, 10.04, 9.96]
print(capability(measurements, lsl=9.85, usl=10.15))The code uses the sample standard deviation. In a real study, collect enough measurements across normal operating conditions and verify that the data represent one stable process.
Interpreting a result
Use Cp and Cpk together:
- Low Cp means the process variation is too wide. Reduce sources of variation.
- Good Cp but low Cpk means the process is off center. Adjust the process mean after confirming that the process is stable.
- Good Cp and Cpk mean the observed process spread and centering fit the specifications.
- A changing or unstable process requires investigation before capability is reported.
Exercise
A stable process has Cp = 1.50 and Cpk = 0.80. What should you investigate first?
Show answer
Investigate centering first. The Cp value suggests the spread could fit the specifications, while the much lower Cpk suggests that the mean is too close to one specification limit.