Sub topic 2
Estimating Sigma from Subgroups
Prerequisites assumed
This chapter assumes you know how to compute a mean and a standard deviation, and that you have seen a normal distribution. You should also know what specification limits are: the lower limit (LSL) and upper limit (USL) that a measured part must fall between.
Estimating sigma from subgroups
Capability indices need the process standard deviation, called sigma. You estimate it from subgroups, which are small groups of measurements taken close together in time, such as five parts every hour. Close-in-time samples capture the short-term, within-subgroup variation.
Find the range of each subgroup (maximum minus minimum), then average the ranges to get R-bar. Divide R-bar by d2, a constant that depends on subgroup size. For subgroups of five, d2 is 2.326.
from statistics import mean
D2 = {2: 1.128, 3: 1.693, 4: 2.059, 5: 2.326}
subgroups = [
[10.01, 10.03, 9.99, 10.02, 10.00],
[10.04, 10.00, 10.02, 10.01, 10.03],
[9.98, 10.01, 10.00, 10.02, 9.99],
]
n = len(subgroups[0])
r_bar = mean(max(g) - min(g) for g in subgroups)
sigma_within = r_bar / D2[n]
print(round(sigma_within, 4))Each subgroup range here is 0.04, so R-bar is 0.04 and sigma is about 0.0172.
Cp: tolerance width versus process spread
Cp compares the tolerance width with the process spread:
Cp = (USL - LSL) / (6 × sigma)
The 6 × sigma term covers the natural spread of a normal process, about 99.7 percent of output. Cp ignores where the process mean sits. A Cp of 1.0 means the spread just fits inside the limits, and a higher value means more room.
Why centering matters
Cp only measures potential. A process can have a good Cp and still produce defects if its mean drifts toward one limit. Centering is the distance between the process mean and the midpoint of the specification.
Cpk: the distance to the nearest limit
Cpk accounts for centering by using the nearer limit:
Cpu = (USL - mean) / (3 × sigma) Cpl = (mean - LSL) / (3 × sigma) Cpk = min(Cpu, Cpl)
With a mean of 10.02, sigma of 0.05, and limits of 9.85 and 10.15, Cp is 1.0, but Cpu is 0.87 and Cpl is 1.13. Cpk is therefore 0.87, because the mean sits closer to the upper limit.
Exercise
A process has a mean of 50.0, sigma of 0.5, and limits of 48.5 and 51.5. Calculate Cp and Cpk.
Show answer
Cp = 3.0 / (6 × 0.5) = 1.0. Cpu = (51.5 - 50.0) / (3 × 0.5) = 1.0. Cpl = (50.0 - 48.5) / (3 × 0.5) = 1.0. Cpk = 1.0.