Sub topic 7
Why centering matters
This chapter assumes you can compute a mean and standard deviation, know the normal curve, and have read the earlier chapters on specification limits, the 6-sigma natural spread, and Cp. Here you will see why a process with a good Cp can still produce defects, and how to measure and fix the problem.
Cp ignores where the process sits
Cp compares the width of the tolerance with the width of the natural spread:
Cp = (USL − LSL) / (6σ)
The formula has no mean in it. Slide the whole distribution left or right and Cp stays the same, even when the distribution slides straight through a specification limit. Cp therefore describes potential capability: what the process could achieve if it were perfectly centered between the limits.
Centering is how far the process mean sits from the middle of the tolerance. That middle point is the midpoint, m = (USL + LSL) / 2. A process is centered when its mean equals m. It is off-center by the distance |mean − m|.
A worked example
Take the numbers used throughout this tutorial: LSL = 9.85, USL = 10.15, σ = 0.05, and a mean of 10.02.
- Tolerance width: 10.15 − 9.85 = 0.30.
- Natural spread: 6 × 0.05 = 0.30.
- Cp = 0.30 / 0.30 = 1.0.
The midpoint is 10.00, so the process is 0.02 above center. The mean is closer to the upper limit, and the upper tail of the distribution reaches past USL much more than the lower tail reaches past LSL. Cp does not register this.
Measuring the distance to each limit
To account for centering, measure the distance from the mean to each limit separately. Divide each by 3σ, which is the half-spread on one side:
- Cpu = (USL − mean) / (3σ)
- Cpl = (mean − LSL) / (3σ)
Here Cpu = 0.13 / 0.15 ≈ 0.87 and Cpl = 0.17 / 0.15 ≈ 1.13. Cpk is the smaller of the two:
Cpk = min(Cpu, Cpl)
So Cpk ≈ 0.87. The smaller value is the one that matters because defects come mainly from the closer limit. The next chapter develops Cpk in full. This chapter uses it to show what off-center does.
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))The program prints 1.0 0.87 1.13 0.87. Cp and Cpk disagree by 0.13 because of the 0.02 offset.
The shortcut: Cpk = Cp × (1 − k)
When the tolerance is symmetric about the midpoint, Cpk and Cp are linked by one factor, k, the offset as a fraction of the half-tolerance:
k = |mean − m| / ((USL − LSL) / 2)
Cpk = Cp × (1 − k)
For the example, k = 0.02 / 0.15 ≈ 0.133, so Cpk = 1.0 × (1 − 0.133) ≈ 0.87. This matches the direct calculation.
The factor k shows how Cpk behaves:
- When k = 0, the process is centered and Cpk = Cp.
- When k = 1, the mean sits exactly on a limit and Cpk = 0.
- When k > 1, the mean is outside the tolerance and Cpk is negative.
- Cpk can never exceed Cp, so Cpk ≤ Cp always.
Sweeping the mean
Keep σ = 0.05 and the same limits, and move only the mean. Cp stays at 1.0 the whole time.
| Mean | Cpu | Cpl | Cpk | k |
|---|---|---|---|---|
| 10.00 | 1.00 | 1.00 | 1.00 | 0.00 |
| 10.01 | 0.93 | 1.07 | 0.93 | 0.07 |
| 10.03 | 0.80 | 1.20 | 0.80 | 0.20 |
| 10.05 | 0.67 | 1.33 | 0.67 | 0.33 |
| 10.10 | 0.33 | 1.67 | 0.33 | 0.67 |
| 10.15 | 0.00 | 2.00 | 0.00 | 1.00 |
This code reproduces the table:
LSL, USL, SIGMA = 9.85, 10.15, 0.05
MID = (USL + LSL) / 2
HALF_TOL = (USL - LSL) / 2
print("mean cpu cpl cpk k")
for mean in [10.00, 10.01, 10.03, 10.05, 10.10, 10.15]:
cpu = (USL - mean) / (3 * SIGMA)
cpl = (mean - LSL) / (3 * SIGMA)
k = abs(mean - MID) / HALF_TOL
print(f"{mean:.2f} {cpu:5.2f} {cpl:5.2f} {min(cpu, cpl):5.2f} {k:4.2f}")Each 0.01 of shift costs about 0.07 of Cpk here, because 0.01 / 0.15 is about 0.067. The loss is proportional to the offset measured against the half-tolerance.
What off-center costs in defects
A lower Cpk means more of the distribution lies outside a limit. With a mean of 10.02 and σ = 0.05:
- The upper limit is (10.15 − 10.02) / 0.05 = 2.6 standard deviations above the mean. About 0.47% of output exceeds it.
- The lower limit is (10.02 − 9.85) / 0.05 = 3.4 standard deviations below the mean. About 0.03% falls below it.
The total is about 0.5%, or roughly 5,000 parts per million. The same process centered at 10.00 has both limits at 3 standard deviations and produces about 2,700 ppm. A 0.02 shift, only 13% of the half-tolerance, nearly doubles the defect rate.
from statistics import NormalDist
def expected_ppm(mean, sigma, lsl, usl):
dist = NormalDist(mu=mean, sigma=sigma)
below = dist.cdf(lsl)
above = 1 - dist.cdf(usl)
return (below + above) * 1_000_000
print(round(expected_ppm(10.00, 0.05, 9.85, 10.15)))
print(round(expected_ppm(10.02, 0.05, 9.85, 10.15)))This assumes the output is normally distributed, a point a later chapter revisits. Note also that nearly all the defects fall on one side. Off-center processes fail lopsidedly, which is a useful clue when you inspect real rejects.
Reading the gap between Cp and Cpk
Comparing the two indices tells you what kind of problem you have.
- Cp low, Cpk low. The spread is too wide. Moving the mean will not rescue it, because there is no room for the distribution anywhere in the tolerance. Variation itself has to be reduced.
- Cp high, Cpk low. The spread fits but the process is shifted. This is usually the cheapest problem to fix, often by a setting, an offset, or a recalibration.
- Cp and Cpk both high and nearly equal. The process is capable and centered.
Compare the cost of the two fixes. Shifting a mean is often a single adjustment. Reducing σ often means better equipment, materials, or method. This is why a large gap between Cp and Cpk is worth looking at first.
Midpoint versus target
The formulas above measure the distance from the midpoint. But the ideal value, the target, is not always the midpoint. A bolt hole might be allowed to run 9.85 to 10.15 but be best at 10.05, or the specification may be asymmetric, such as +0.10 / −0.20.
Cpk does not use the target, so a process can have a fine Cpk while sitting far from the target. If hitting the target matters, such as when quality degrades smoothly as you move away from it, some practitioners use Cpm:
Cpm = Cp / √(1 + ((mean − target) / σ)²)
With target 10.00, mean 10.02, σ = 0.05, and Cp = 1.0, the offset is 0.4σ and Cpm = 1 / √1.16 ≈ 0.93. Treat Cpm as an extra check. Cpk remains the standard index. Also, the Cp × (1 − k) shortcut holds only for symmetric tolerances. For asymmetric ones, compute Cpu and Cpl directly.
Common errors
- Reporting Cp alone. A Cp of 1.67 looks excellent, yet the process can be failing if it is shifted. Always report Cp and Cpk together.
- Treating a centering gap as a variation problem. Teams sometimes launch expensive variation-reduction work when a mean adjustment would do. Check the gap first.
- Fixing the mean on a unstable process. If the mean wanders over time, one number for "the mean" is misleading. Stability comes first, as covered in an earlier chapter.
- Over-reading one sample. A mean from a small sample is itself uncertain, so a small apparent offset may be noise. A later chapter covers this.
- Forgetting units and one-sided cases. If only one limit exists, there is no midpoint and no centering gap. That case has its own chapter.
Exercise
A process has LSL = 4.0, USL = 6.0, a mean of 5.4 and σ = 0.2. Compute Cp, Cpu, Cpl and Cpk. Then use k to confirm Cpk.
Show answer
Cp = (6.0 − 4.0) / (6 × 0.2) = 2.0 / 1.2 ≈ 1.67. Cpu = (6.0 − 5.4) / 0.6 = 1.0. Cpl = (5.4 − 4.0) / 0.6 ≈ 2.33. Cpk = min(1.0, 2.33) = 1.0. Check: the midpoint is 5.0, so the offset is 0.4 and the half-tolerance is 1.0, giving k = 0.4. Then Cpk = 1.67 × (1 − 0.4) = 1.0. The process looks excellent by Cp but is only marginal once centering is counted.
Exercise
Using the same process, the operator can either (a) shift the mean to 5.0 without changing σ, or (b) cut σ from 0.2 to 0.15 while leaving the mean at 5.4. Which gives the higher Cpk?
Show answer
Option (a): the process is centered, so Cpk = Cp ≈ 1.67. Option (b): Cpu = (6.0 − 5.4) / (3 × 0.15) = 0.6 / 0.45 ≈ 1.33, and Cpl is larger, so Cpk ≈ 1.33. Option (a) gives the higher Cpk and is usually cheaper, because moving the mean is easier than reducing variation.
Exercise
A process has Cp = 1.5 and Cpk = 0.0. What does this say about the mean, and roughly what fraction of output is out of specification?
Show answer
Cpk = 0 means the mean sits exactly on one specification limit. A normal distribution has half its output on each side of its mean, so about 50% of output is out of specification. The Cp of 1.5 shows the spread is narrow enough to fit the tolerance, so recentering the process would fix the problem.