Sub topic 11
Signal rules: points beyond limits and runs
A control chart is only useful if you can decide, point by point, whether to act. This chapter covers the rules that turn a plotted line into a decision. It assumes you can already build an I-MR, X-bar and R, p, or u chart and compute its center line and 3-sigma limits. It also assumes you know the difference between common-cause and special-cause variation.
What a signal rule does
A signal rule is a pattern that is unlikely to occur when the process is stable. When the pattern appears, you treat it as evidence of a special cause and look for what changed. When no rule fires, you leave the process alone.
Every rule trades two risks:
- A false alarm, where the rule fires on a stable process. You waste time hunting for a cause that does not exist.
- A missed signal, where the process has shifted but no rule fires. The problem continues unnoticed.
Adding more rules catches shifts sooner and also raises the false alarm rate. Choosing rules means choosing where to sit on that trade-off.
Rule 1: a point beyond a control limit
The basic rule flags any point above the upper control limit (UCL) or below the lower control limit (LCL).
If the data are stable and roughly normal, the chance that a single point falls outside 3-sigma limits is about 0.0027. On average, a stable process produces one false alarm every 370 points. This average is called the average run length (ARL). The rule is conservative, so a point outside the limits is strong evidence that something changed.
The rule has one weakness. It reacts slowly to small, sustained shifts. If the mean moves by one sigma, individual points rarely cross a 3-sigma limit, even though the process is no longer where it was. Run rules fill this gap.
The rule applies differently to each of the four charts:
- On the I chart and the X-bar chart, a point beyond a limit means the location of the process moved.
- On the MR and R charts, a point above the UCL means the spread increased. These charts have no lower limit for small subgroups, because the lower limit is zero. Only a point above the UCL is a signal.
- On p and u charts, a point above the UCL means more defectives or defects than expected. A point below the LCL means fewer. That is usually good news, but you should still find out why. A drop can also come from a changed inspection method or a broken counting procedure.
- On p and u charts with varying sample sizes, the limits step from point to point. Compare each point with its own limits, not with a single pair of lines.
Rule 2: a run on one side of the center line
If a process is stable and centered, each point is about equally likely to fall above or below the center line. A long sequence on one side is unlikely by chance.
For a run of eight points on one side, the probability that any given window of eight points falls entirely above or entirely below the center line is 2 × 0.5⁸ = 1/128, or about 0.8%. That is rare enough to treat as a signal. It also usually indicates a small sustained shift in the mean that Rule 1 would miss.
Different guides use different run lengths. The table lists common ones.
| Source or convention | Run length on one side of the center line |
|---|---|
| Western Electric | 8 |
| Nelson rules | 9 |
| Some industry guides | 7 |
Pick one length, write it down, and use it consistently. The exact number matters less than agreeing on it in advance.
Other common rules
Two other families of rules are widely used. They are optional extensions, and you should add them only if your team needs faster detection.
- Trend rule. Six points in a row steadily increasing, or six steadily decreasing. This suggests drift, such as tool wear or a slowly degrading material.
- Zone rules. Divide the space between the center line and each limit into three zones of one sigma each. Two of three consecutive points beyond 2 sigma on the same side is a signal. So is four of five consecutive points beyond 1 sigma on the same side.
Zone rules detect moderate shifts faster than Rule 1 alone. They are simple to compute on I and X-bar charts, where the limits are constant. On p and u charts the limits change with sample size, so zone boundaries change too. You can still compute them per point, but many teams use only the limit and run rules there.
Combining rules and false alarms
Each added rule adds its own false alarm probability. For normally distributed data, using four of the classic Western Electric rules together lowers the average run length from about 370 points to roughly 90. A stable process then gives a false alarm about every 90 points instead of every 370.
That is acceptable on a chart that gets one point a day. It is a problem on a chart that gets hundreds of points a day and sends alerts to a pager.
Keep the rule set small and match it to the cost of each type of error:
- If missing a shift is expensive, as with a safety-critical dimension, use more rules.
- If chasing false alarms is expensive, use Rule 1 and one run rule.
Detecting signals in code
The following Python code implements three rules on an I chart: points beyond the limits, a run of eight on one side of the center line, and two of three points beyond 2 sigma. It uses an example data series with a deliberate run and a deliberate outlier.
import numpy as np
def beyond_limits(x, lcl, ucl):
"""Indices of points outside the control limits."""
x = np.asarray(x)
return np.where((x > ucl) | (x < lcl))[0].tolist()
def run_of_eight(x, center):
"""Indices where 8 consecutive points have all been on the same side of the center line."""
side = np.sign(np.asarray(x) - center)
flagged = []
for i in range(len(side) - 7):
window = side[i:i + 8]
if np.all(window == 1) or np.all(window == -1):
flagged.append(i + 7)
return flagged
def two_of_three_beyond_2sigma(x, center, sigma):
"""Indices where the current point and at least one of the previous two
are beyond 2 sigma on the same side of the center line."""
z = (np.asarray(x) - center) / sigma
flagged = []
for i in range(2, len(z)):
window = z[i - 2:i + 1]
if window[-1] > 2 and np.sum(window > 2) >= 2:
flagged.append(i)
elif window[-1] < -2 and np.sum(window < -2) >= 2:
flagged.append(i)
return flagged
x = [10.1, 9.9, 10.2, 9.8, 10.1, 10.3, 10.2, 10.1,
10.4, 10.2, 10.1, 10.3, 9.9, 10.7]
center, sigma = 10.0, 0.2
ucl = center + 3 * sigma
lcl = center - 3 * sigma
print(beyond_limits(x, lcl, ucl))
print(run_of_eight(x, center))
print(two_of_three_beyond_2sigma(x, center, sigma))The three lines print [13], [11], and [].
- The last point, 10.7, is above the UCL of 10.6, so Rule 1 flags index 13.
- Points 4 through 11 are all above 10.0, so the run rule flags index 11, the point that completes the run of eight.
- No two of any three consecutive points exceed 2 sigma, so the zone rule flags nothing.
The run-of-eight function flags every point that extends a long run, not only the first. If a run lasts twelve points, it returns indices 7 through 11 of that run. Report the first flag and treat the rest as the same event.
A decision path for each new point
The diagram shows a simple sequence for checking a new point as it arrives.
The last step matters in practice. Annotate each signal with what you found and what you did. Annotations make the chart a record of process knowledge, and they tell you later which signals were real.
Interpreting signals sensibly
A signal says that the process looks different from the baseline. It does not say why. Treat it as a question.
- Check the data first. Look for a recording error, a wrong unit, or a miscounted sample before you adjust the process.
- Ask what changed. Compare the time of the signal with shift changes, material lots, operators, tools, and settings.
- Act on the cause, not on the point. Do not adjust the process after a single in-limit point that you dislike. That is overreaction, and it increases variation.
- Decide what to do with the point. If you find and remove a special cause, you may later exclude those points from the baseline. If you do not find one, keep the point. It may be a rare common-cause event.
Rules interact with chart type in two further ways:
- Run rules on the MR chart. Adjacent moving ranges share a measurement, so they are not independent. Runs on an MR chart appear more often than the simple probability suggests. Use only Rule 1 on the MR chart unless you have a reason to do more.
- Run rules on the X-bar chart. The points are independent if the subgroups are rational, so the rules behave as described. If the plotted means are autocorrelated, runs appear often and the run rule produces false alarms. Chapter pitfalls cover this in detail.
Edge cases
- Few points. With fewer than about 20 points, the limits themselves are uncertain. A signal then needs more caution, especially if it appears near the start.
- Discrete data with small counts. On a p or u chart with a very low defect rate, the LCL is zero and the distribution is skewed. Points near zero are common, and a run below the center line can occur naturally. Confirm a low-side run before you celebrate.
- Limit and run signals together. If the limit rule and run rule fire at the same time, you have one event with two pieces of evidence. Investigate once.
- Signals right after a limit change. After you recompute limits, check which points were used to set them. New limits cannot flag points that were used to build them in the same way as an independent baseline.
Exercise
A stable process has a 0.0027 chance of a point beyond 3-sigma limits on any given point. About how many points do you expect, on average, between false alarms from Rule 1 alone? Why does adding a run rule shorten this interval?
Show answer
About 1 / 0.0027 ≈ 370 points. Each added rule can fire on a stable process too, so the false alarm probabilities combine and the average interval between false alarms gets shorter. With the four classic Western Electric rules together it drops to roughly 90 points.
Exercise
An I chart has center line 50, UCL 56, and LCL 44. The last ten points are 51, 52, 50.5, 53, 51.5, 52, 50.8, 51.2, 52.4, 51.9. Does any rule from this chapter fire? Which one, and at which point?
Show answer
Rule 1 does not fire, because every point lies between 44 and 56. The run-of-eight rule fires. All ten points are above 50, so the run of eight is complete at the eighth point (51.2), and the rule keeps firing at the ninth and tenth points. The process mean has probably shifted slightly upward, and you should look for a special cause.