Sub topic 13
Pp and Ppk: How They Differ from Cp and Cpk
This chapter assumes you can compute Cp and Cpk from a mean, a standard deviation and specification limits. It also assumes you know how R-bar/d2 estimates the within-subgroup standard deviation, and what a stable process means on a control chart. Here you will learn why a second pair of indices exists, how to compute it, and what the gap between the two pairs tells you.
The one thing that changes: which sigma
Cp and Pp share the same structure. Both compare the tolerance width with six standard deviations of process spread. Cpk and Ppk both measure the distance from the mean to the nearest limit, in units of three standard deviations. The only difference is which standard deviation goes into the formula.
- Cp and Cpk use the within-subgroup standard deviation,
sigma_within. You estimate it from the variation inside each subgroup, for example R-bar/d2. It reflects only short-term, common-cause variation, the variation you see when the process is held still for a moment. - Pp and Ppk use the overall standard deviation,
sigma_overall. You compute it as the ordinary sample standard deviation of all the data, ignoring subgroup boundaries. It includes the within-subgroup variation plus any shifts and drift between subgroups.
The formulas are:
- Pp = (USL − LSL) / (6 × sigma_overall)
- PPU = (USL − mean) / (3 × sigma_overall)
- PPL = (mean − LSL) / (3 × sigma_overall)
- Ppk = min(PPU, PPL)
The two names are often summarized as "potential" and "performance". Cp and Cpk describe what the process could do if between-subgroup movement were eliminated. Pp and Ppk describe what the process actually did over the period you measured.
A worked example
The data below has four subgroups of five measurements each. The spread inside each subgroup is identical, with a range of 0.04. The subgroup means drift upward and then come back: 10.00, 10.03, 10.06, 10.02. The specification limits are LSL = 9.95 and USL = 10.10.
from statistics import mean, stdev
D2 = {2: 1.128, 3: 1.693, 4: 2.059, 5: 2.326}
subgroups = [
[10.00, 10.02, 9.98, 10.01, 9.99],
[10.03, 10.05, 10.01, 10.04, 10.02],
[10.06, 10.08, 10.04, 10.07, 10.05],
[10.02, 10.04, 10.00, 10.03, 10.01],
]
lsl, usl = 9.95, 10.10
def indices(center, sigma, lsl, usl):
spread = (usl - lsl) / (6 * sigma)
nearest = min(usl - center, center - lsl) / (3 * sigma)
return spread, nearest
n = len(subgroups[0])
r_bar = mean(max(g) - min(g) for g in subgroups)
sigma_within = r_bar / D2[n]
all_values = [x for g in subgroups for x in g]
center = mean(all_values)
sigma_overall = stdev(all_values)
cp, cpk = indices(center, sigma_within, lsl, usl)
pp, ppk = indices(center, sigma_overall, lsl, usl)
print(f"mean={center:.4f}")
print(f"sigma_within={sigma_within:.4f} sigma_overall={sigma_overall:.4f}")
print(f"Cp={cp:.2f} Cpk={cpk:.2f} Pp={pp:.2f} Ppk={ppk:.2f}")Running it prints:
mean=10.0275
sigma_within=0.0172
sigma_overall=0.0265
Cp=1.45 Cpk=1.41 Pp=0.94 Ppk=0.91The within-subgroup sigma is 0.0172, so Cpk of 1.41 looks comfortably above the usual 1.33 benchmark. The overall sigma is 0.0265 because it also contains the drift between subgroups. Ppk is 0.91, below 1.0, which means the process did not fit inside its limits over the whole run.
This is the useful diagnostic. Cpk answers "how good is this process when it holds still?" Ppk answers "how good was it, drift included?" Here the process holds still well enough, but it does not stay put.
What the defect rate looks like
Index values are only a convenient summary. The real cost is the fraction outside the limits. With a normal model, the observed spread (sigma_overall = 0.0265, mean 10.0275) puts the upper limit about 2.73 standard deviations away and the lower limit about 2.92 away. That is roughly 4,900 parts per million outside the limits.
The Cpk of 1.41 would instead suggest only 10 to 20 ppm. The short-term index describes a process that no longer exists once it drifts, so it understates the defects the customer will actually see. Use expected_ppm from the earlier chapter with sigma_overall to get the performance-based figure.
Reading the gap between the pairs
Compare Ppk with Cpk, or Pp with Cp, for the same data set.
| Pattern | Likely meaning | Typical next step |
|---|---|---|
| Ppk close to Cpk | Variation is mostly within subgroups, and the process is stable over the period | Trust either index. Work on reducing common-cause spread or on centering |
| Ppk well below Cpk | Subgroup means shift or drift, or special causes occurred between samples | Look at the X-bar chart and find what moves the mean: tool wear, material lots, shifts, operators |
| Ppk slightly above Cpk | Sampling noise, or a sigma_within inflated by something inside the subgroups | Check how subgroups were formed. Do not read much into small differences |
| Both low, similar | The process is simply too wide or off-center | Reduce variation or re-center before anything else |
A rough comparison is the ratio sigmaoverall / sigmawithin. It is 1.54 in the example, and a ratio near 1 means little between-subgroup movement. There is no universal cutoff for "large", so judge it against how much the capability decision depends on it.
When to use which
Cp and Cpk are only meaningful when the process is stable, because sigma_within ignores drift by design. If the control chart shows trends, shifts or out-of-control points, Cpk will look better than reality, as in the example above.
Pp and Ppk make no claim of stability. They describe a period of data, whatever happened in it. That makes them the honest choice in these situations:
- Initial or preliminary studies. A new process or a launch run has not yet shown it is stable. Customers in industries such as automotive commonly ask for a higher Ppk threshold at this stage, often 1.67, than they later require for ongoing Cpk, often 1.33.
- Unstable or unknown stability. If you cannot establish control, Ppk is the defensible figure to report.
- Short or one-off runs where subgroup structure does not exist.
- Reporting what a customer actually received across a long period.
For ongoing monitoring of a process that is in control, report both. The pair together shows capability and stability in one glance.
Estimating sigma_within when subgroups are not available
If you have individual measurements rather than subgroups of size two or more, there is nothing to take a range inside. The usual approach is the average moving range between consecutive points, MR-bar, divided by 1.128 (the d2 constant for a window of two). The constants in the D2 dictionary already include 2: 1.128. The overall sigma is unchanged. It is still the sample standard deviation of all values.
Other within estimators include s-bar/c4 and the pooled standard deviation of the subgroups. They give slightly different values from R-bar/d2, so state which one you used.
Gotchas
- Definitions vary by software and company. Some packages compute Pp and Ppk with the sample standard deviation (n − 1). Some older references use the population formula (n). Some organizations call any index computed from long-term data "Cpk". Always confirm the sigma estimator behind a quoted number.
- Same mean, different sigma. In the example, Cpk and Ppk use the same mean (10.0275). Only the denominator differs, so the gap is entirely a statement about variation, not centering.
- Normality still matters. Converting either pair into defect rates assumes a normal model. Drift between subgroups often makes the pooled data non-normal, for example flat-topped or bimodal. Check a histogram or a probability plot before quoting ppm from Ppk.
- Precision. Ppk estimated from 20 values is a noisy number. The uncertainty chapter returns to this. Treat 0.91 here as "clearly under 1.33", not as an exact value.
Exercises
Exercise
A supplier reports Cpk = 1.50 on a characteristic, and your own incoming-inspection data for the last three months gives Ppk = 0.85 using the same limits. What does the difference suggest, and what would you check first?
Show answer
The within-subgroup variation is small (high Cpk), but the overall variation across the three months is much larger (low Ppk). This points to shifts or drift between subgroups, such as material lots, tool wear, setup changes or operator differences. Check the X-bar (or individuals) chart of the data for trends and jumps and compare subgroup means over time. Until the process is stable, the supplier's Cpk overstates how well it performs, and Ppk is the better predictor of defects you will receive.
Exercise
A process has mean 50.0, LSL = 47, USL = 53, sigmawithin = 0.8 and sigmaoverall = 1.0. Compute Cp, Cpk, Pp and Ppk.
Show answer
The tolerance width is 6 and the process is centered, so Cpk equals Cp and Ppk equals Pp. Cp = Cpk = 6 / (6 × 0.8) = 1.25. Pp = Ppk = 6 / (6 × 1.0) = 1.00. The overall sigma is 25% larger than the within sigma, which indicates some variation between subgroups.