Sub topic 3
Control limits are not specification limits
This chapter assumes you can read a basic control chart (center line, upper and lower control limits, points in time order). It also assumes you know the difference between common-cause and special-cause variation, and that you can compute a mean, a range, and a standard deviation. The Python example uses NumPy and the standard library.
Control limits and specification limits are both horizontal lines, and they are often drawn on the same plot. They answer different questions. Confusing them is one of the most common errors in practice, and it leads to wrong actions in both directions.
Two limits, two questions
A control limit describes what the process is doing. It is calculated from the process's own data and marks the range of variation you expect while only common causes are acting. A point outside it is evidence that something changed.
A specification limit describes what someone wants. It comes from a customer, a drawing, a standard, or a regulation. It marks the boundary between an acceptable item and an unacceptable one. The process data has no say in where it sits.
| Property | Control limits | Specification limits |
|---|---|---|
| Question answered | Is the process behaving consistently? | Is this item acceptable? |
| Source | Calculated from process data | Set by customer, design, or regulation |
| Moves when the process changes | Yes, if you recompute them | No |
| Applies to | The plotted statistic (individual value, subgroup mean, range, proportion, rate) | Individual items or measurements |
| Typical action when crossed | Investigate for a special cause | Reject, rework, or sort the item |
| Sides | Both, except where a lower limit would be below zero | One or two, depending on the requirement |
The consequence is that a process can be in control and still produce bad items. It can also be out of control while every item is within specification.
The four combinations
Combine the two questions and you get four situations. Each calls for a different response.
| Row | Within specification | Not within specification |
|---|---|---|
| **In control (no signals)** | Stable and capable. Keep monitoring and leave the process alone. | Stable but not capable. The system itself produces defects. Change the process: reduce common-cause variation or recenter it. |
| **Out of control (signals present)** | Unstable but currently acceptable. Investigate the signal anyway. Output is not yet bad, but you cannot predict it. | Unstable and not acceptable. Contain the product, then find and remove the special cause. |
The "in control but not capable" cell is the one people miss. A stable process has a predictable spread. If that spread is wider than the specification, no amount of reacting to individual points will help. Reacting to points inside the control limits only adds variation, because you are adjusting a process that has not changed.
Notice the order. You check for stability first. Only a stable process has a spread you can compare with the specification, because an unstable process has no single spread to measure.
Worked example: in control, yet outside the specification
Take the ten individual measurements used in the I-MR example earlier in this tutorial. Suppose the specification is 9.5 to 10.5.
The mean is 10.07. The moving ranges are 0.4, 0.3, 0.3, 0.5, 0.1, 0.3, 0.6, 0.4, and 0.1, so the average moving range is 3.0 / 9 = 0.333. The I chart limits are:
- Upper control limit: 10.07 + 2.66 × 0.333 ≈ 10.96
- Lower control limit: 10.07 − 2.66 × 0.333 ≈ 9.18
Every observation lies between 9.7 and 10.4, so there are no points beyond the control limits. Every observation is also inside the specification. Yet the control limits (9.18 to 10.96) are wider than the specification (9.5 to 10.5). The process is stable, but its natural variation is larger than the customer allows. Sooner or later it will produce out-of-specification items, even though all ten samples so far passed.
The code below quantifies this. It estimates the process standard deviation from the average moving range (σ̂ = MR̄ / 1.128, where 1.128 is d2 for a span of 2) and then estimates the fraction outside the specification, assuming the individual values are roughly normal.
import math
import numpy as np
x = np.array([10.2, 9.8, 10.1, 10.4, 9.9, 10.0, 10.3, 9.7, 10.1, 10.2])
LSL, USL = 9.5, 10.5 # specification limits, supplied by the customer
mr = np.abs(np.diff(x))
x_bar = x.mean()
mr_bar = mr.mean()
# Control limits come from the data
lcl = x_bar - 2.66 * mr_bar
ucl = x_bar + 2.66 * mr_bar
# Within-process standard deviation estimated from the moving range
sigma_hat = mr_bar / 1.128
def phi(z):
"""Standard normal cumulative distribution function."""
return 0.5 * (1 + math.erf(z / math.sqrt(2)))
frac_out = phi((LSL - x_bar) / sigma_hat) + (1 - phi((USL - x_bar) / sigma_hat))
cpk = min(USL - x_bar, x_bar - LSL) / (3 * sigma_hat)
signals = int(np.sum((x > ucl) | (x < lcl)))
out_of_spec = int(np.sum((x > USL) | (x < LSL)))
print(f"Control limits: {lcl:.2f} to {ucl:.2f}")
print(f"Specification: {LSL} to {USL}")
print(f"Points beyond control limits: {signals}")
print(f"Points outside specification: {out_of_spec}")
print(f"Estimated fraction outside spec: {frac_out:.3f}")
print(f"Cpk: {cpk:.2f}")The two counts are both zero, but the estimated fraction outside the specification is about 10 percent and Cpk is about 0.5. Cpk compares the distance from the mean to the nearest specification limit with three standard deviations. A common minimum target is 1.33. The chart says "stable", and the capability calculation says "not good enough". Both statements are true at once.
Why subgroup means must not be compared with specification limits
An X-bar chart plots the mean of each subgroup. The standard deviation of a mean of n values is about σ/√n, so the X-bar control limits are narrower than the spread of individual items. With subgroups of 5, the limits for the means are roughly 2.2 times closer to the center than the spread of the individual measurements.
This produces two errors:
- Plotting spec limits on an X-bar chart. The means can all sit comfortably inside the specification while a large share of individual items lie outside it. The specification applies to items, and the plotted points are not items.
- Declaring a process capable because the means are within spec. Capability must be assessed on individual values (or on a σ estimate for individuals), not on the subgroup means.
The same applies to the R chart, the p chart, and the u chart. A proportion defective or a defects-per-unit rate is not a measurement you can compare with a tolerance. For attribute charts the "specification" has already been applied when each item was classified as defective or not. The chart then monitors how consistently that classification result occurs. A target such as "no more than 2 percent defective" is a goal, not a control limit, and you should not draw it as one.
On an I chart, you can draw specification limits next to the control limits, since the plotted points are individual values. If you do, label the two sets of lines differently so readers never confuse them. Many teams keep them on separate plots to avoid the problem.
Errors this confusion causes
- Treating the specification as the control limit. The team reacts only when a value crosses the specification. A real shift, such as a mean moving from 10.0 to 10.3, goes unnoticed until items start failing. The control chart would have flagged it much earlier.
- Tampering. An operator sees a point inside the control limits but near the specification and adjusts the machine. The point was ordinary common-cause variation. Adjusting in response to it increases the overall variation.
- Setting control limits at the specification. Some teams replace the calculated limits with the specification limits so that the chart "looks green". The chart then can no longer detect a change in the process, and its signals no longer mean what the rules say they mean.
- Assuming "in control" means "good". Stability only says the process is predictable. If the predictable output does not meet the requirement, you need a process change. That is a different kind of project from removing special causes.
- Tightening control limits to the specification. The reverse mistake: when the specification is narrower than the natural spread, forcing the control limits to match it produces false alarms constantly, and the team chases noise.
One-sided specifications and centering
Many requirements have only one side. A strength measurement may need to be at least 50 and have no upper limit. A turnaround time may need to be at most 24 hours and have no lower limit. The distinction still holds. The control chart keeps both of its limits, since a shift in either direction signals a change in the process. The capability calculation uses only the side that has a specification: one-sided Cpk is (mean − LSL) / (3σ̂) or (USL − mean) / (3σ̂).
Centering also matters. A process with a narrow natural spread can still produce out-of-specification items if its mean sits near one specification limit. This is a stable process whose average is wrong. The remedy is to move the mean, which is usually an adjustment that happens once and is deliberate, unlike the repeated reactive adjustments described under tampering above.
Summary of rules to apply
- Compute control limits only from process data, in time order, using the formulas for the chart you chose.
- Take specification limits only from the requirement. Do not change them to fit the data.
- Check stability first, then compare the stable spread with the specification.
- Do not compare subgroup means, ranges, proportions, or rates with specification limits.
- When the process is stable but not capable, change the system. When it is unstable, find the special cause first.
Exercise
An X-bar chart for subgroups of size 5 shows no signals, and every subgroup mean lies between 49.8 and 50.2. The specification is 49.0 to 51.0. A colleague says the process is capable because all the means are inside the specification. What is wrong with this reasoning, and what would you do instead?
Show answer
The specification applies to individual items, but the plotted points are subgroup means. Means vary less than individual values (by about a factor of the square root of 5), so means inside the specification say little about individual items. Estimate the process standard deviation (for example R-bar divided by d2, which is 2.326 for n = 5), then calculate the fraction of individual values expected outside 49.0 to 51.0 and a capability index such as Cpk from the individual spread. The chart's lack of signals shows the process is stable, which is the necessary first step before doing the capability calculation.
Exercise
A stable I chart has center line 20.0 and control limits 18.0 and 22.0. The upper specification limit is 21.0 and there is no lower limit. Is the process capable? How do you know the answer does not depend on whether the points are inside the control limits?
Show answer
Using the control limits, the natural spread is about 20.0 ± 3σ̂ with 3σ̂ = 2.0, so σ̂ is about 0.67. The one-sided Cpk is (21.0 − 20.0) / 2.0 = 0.5, which is well below the common target of 1.33. About 6.7 percent of items are expected above 21.0 (z = 1.5 under normality), so the process is stable but not capable. Being inside the control limits only shows stability. The capability result comes from comparing the spread with the specification, and the specification limit sits inside the upper control limit of 22.0, so some output will exceed it. Fixing this requires changing the system: lowering the mean, reducing the spread, or both.