Process monitoring
Control Chart Run Rules: Western Electric and Nelson Tests, and What They Cost in False Alarms
A point beyond a 3σ limit is the only signal most control chart calculators report. Run rules add tests on the pattern of recent points, so a modest shift can be caught while every point stays inside the limits. This guide sets out the Western Electric rules and the eight tests in Minitab's documentation, computes how often each rule fires by chance, shows what the extra rules buy and cost in average run length, and works one fill-weight example through the I-MR calculator.
Quick answer
Divide the distance between the center line and each 3σ limit into three equal zones of one sigma. Besides one point beyond 3σ, the four Western Electric rules signal when 2 of 3 consecutive points fall beyond 2σ on the same side, 4 of 5 fall beyond 1σ on the same side, or 8 in a row fall on one side of the center line. With the mean and sigma known and normal data, a 3σ chart alone gives a false alarm on average once every 370 points; adding the three rules brings that down to about once every 92 points, while a one-sigma shift is caught after about 9 points on average instead of about 44. Choose the rule set before you look at the data, and use the same definitions every time, because published versions differ.
Zones and the four Western Electric rules
The rules are written in terms of zones. The center line and the two 3σ limits come from the chart; the lines at ±1σ and ±2σ split each half of the chart into three bands:
| Zone | Distance from the center line |
|---|---|
| C | Within 1σ |
| B | Between 1σ and 2σ |
| A | Between 2σ and 3σ |
| Beyond the limit | More than 3σ |
The NIST/SEMATECH e-Handbook lists the Western Electric Company (WECO) rules separately for the upper and lower halves of the chart. Summarized for either side of the center line:
| Rule | Signal |
|---|---|
| 1 | One point beyond 3σ |
| 2 | 2 out of the last 3 points beyond 2σ, on the same side |
| 3 | 4 out of the last 5 points beyond 1σ, on the same side |
| 4 | 8 consecutive points on the same side of the center line |
The same page adds two trend rules: 6 points in a row trending up or down, and 14 points in a row alternating up and down. WECO stands for Western Electric Company, and the e-Handbook is the freely available summary of the rules used here.
Rules 2 and 3 count points on one side only. Two points beyond +2σ and one beyond −2σ do not satisfy rule 2, because a shift moves the process to one side, not both. Rule 4 does not care how far from the center line the points are; in the table below it is the single added rule that responds fastest to the smallest shift, 0.4σ.
The trend rules and Minitab's eight tests
Minitab's documentation lists eight tests for special causes. A Minitab blog post by Matthew Barsalou (2016) presents eight rules introduced by Lloyd S. Nelson in a 1984 column in the Journal of Quality Technology as the Nelson rules and shows how to activate them in Minitab; this guide uses the wording of Minitab's own documentation.
| Test | Signal | Closest WECO rule |
|---|---|---|
| 1 | One point more than 3σ from center line | Rule 1 |
| 2 | Nine points in a row on the same side of the center line | Rule 4 uses 8 |
| 3 | Six points in a row, all increasing or all decreasing | Trend rule |
| 4 | Fourteen points in a row, alternating up and down | Trend rule |
| 5 | Two out of three points more than 2σ from the center line (same side) | Rule 2 |
| 6 | Four out of five points more than 1σ from center line (same side) | Rule 3 |
| 7 | Fifteen points in a row within 1σ of center line (either side) | None |
| 8 | Eight points in a row more than 1σ from center line (either side) | None |
Two differences matter in practice. The same-side run is 8 points in the WECO list and 9 points in Minitab's test 2, so a chart checked with one definition and audited with the other can disagree by a point. Tests 7 and 8 look for too little variation (points hugging the center line) and for two mixed populations (points avoiding the center), which the WECO zone rules do not test. Rational subgrouping shows how subgroups that mix sources produce the first pattern.
Minitab also restricts which tests it offers on which chart. Tests 1 to 8 are available for most variables charts, but only tests 1 to 4 for R, S and moving range charts, and only tests 1 to 4 for attributes charts.
Why each rule is rare: window probabilities
Each rule was chosen because its pattern is unlikely when nothing has changed. For independent normal points with known mean and sigma, the chance that one window of points shows each pattern is:
| Pattern | Probability for one window |
|---|---|
| One point beyond 3σ (either side) | 0.270 % (1 in 370.4) |
| 2 of 3 beyond 2σ, one given side | 0.153 % |
| 2 of 3 beyond 2σ, either side | 0.306 % |
| 4 of 5 beyond 1σ, one given side | 0.277 % |
| 4 of 5 beyond 1σ, either side | 0.553 % |
| 8 in a row on one side | 0.781 % (1 in 128) |
| 9 in a row on one side | 0.391 % (1 in 256) |
| 6 in a row all increasing or all decreasing | 0.278 % (1 in 360) |
| 14 in a row alternating | 0.457 % |
| 15 in a row within 1σ | 0.326 % |
| 8 in a row beyond 1σ (either side) | 0.0103 % |
Each row is computed from its definition. The zone rows use the normal tail areas beyond 1σ (15.87 % per side), 2σ (2.275 %) and 3σ (0.135 %). The trend rows do not depend on the distribution at all, only on the order of the points: 6 points can be arranged in 720 orders, of which one is increasing and one is decreasing; 14 points can be arranged so that they alternate in 2 × 199,360,981 of the 14! orders.
The e-Handbook describes the 2-of-3 and 4-of-5 patterns as "about 0.3 %", the same rarity as one point beyond 3σ. Its wording counts points between 2σ and 3σ and between 1σ and 2σ; the table above counts points beyond 2σ and beyond 1σ, as the rule list does. Either way, the rules were set to be roughly as rare as a single point beyond the limit.
These are probabilities for one window, not false-alarm rates for the chart. Consecutive windows share points, and once several rules run together a chart has several chances to fire on every new point. The number that answers "how often will this chart cry wolf" is the average run length.
What the rules cost and buy: average run length
The average run length (ARL) is the expected number of points plotted until the chart signals. With no shift, the ARL is the average interval between false alarms, and a long one is good. After a shift, the ARL is the average delay before the shift is detected, and a short one is good. One rule set cannot improve both.
For runs rules the ARL cannot be read from a single probability; Champ and Woodall (1987) showed how to compute it exactly by treating the recent history of points as the states of a Markov chain. The table below was computed that way for independent normal points with known mean and sigma, starting from a fresh chart. The shift is the change in the process mean in units of sigma.
| Rule set | No shift | 0.4σ shift | 1.0σ shift | 2.0σ shift |
|---|---|---|---|---|
| 3σ only (rule 1) | 370.40 | 200.08 | 43.89 | 6.30 |
| Rule 1 + 2 of 3 beyond 2σ | 225.44 | 104.46 | 20.01 | 3.65 |
| Rule 1 + 4 of 5 beyond 1σ | 166.05 | 63.88 | 12.66 | 3.68 |
| Rule 1 + 8 on one side | 152.73 | 59.76 | 14.58 | 4.89 |
| All four WECO rules | 91.75 | 36.61 | 9.22 | 3.13 |
| Rule 1 + 9 on one side | 216.70 | 79.94 | 17.05 | 5.14 |
| Rule 1, 2 of 3, 4 of 5, 9 on one side | 109.05 | 41.62 | 9.70 | 3.13 |
The first four rows agree with the published example table in the documentation of the R package spc, which implements the same method, and the 91.75 for all four WECO rules agrees with the e-Handbook. The last two rows replace the 8-point run with Minitab's 9-point run.
Read the first column as cost and the third as benefit. The full WECO set raises the false-alarm frequency about fourfold, from one in 370 points to one in 92, and in exchange it detects a one-sigma shift in about 9 points instead of 44. For a large shift the rules add little: at 2σ, rule 1 alone already signals after about 6 points on average. Using a 9-point run instead of 8 gives up about half a point of detection speed at a one-sigma shift and buys roughly 17 more points between false alarms.
The trend rules (6 increasing, 14 alternating) are not in the table: whether they fire depends on whether each point is higher or lower than the one before, not only on which zone it falls in, so they do not fit the same Markov chain. Minitab's tests 7 and 8 are zone conditions and could be added to the chain, but they look for too little variation and for mixed populations rather than for a shift, so they are left out of a table about shifts. For all four, this guide gives only the window probabilities above. Each rule adds false alarms to whatever set it joins.
Worked example: a one-sigma shift that never crosses a limit
The readings below are synthetic. They represent the net fill weight in grams of one container sampled at each interval on a filling line. The first 20 readings are the baseline used to set the limits; readings 21 to 35 are monitored against those limits. The monitoring readings were constructed to sit about one sigma above the baseline mean, so that each rule fires at a known point. They are not a random draw, and the point at which a rule fires here should not be compared with the average run lengths above.
Baseline readings 1 to 20, in order: 50.25, 49.86, 49.82, 49.82, 50.16, 49.96, 49.95, 50.21, 49.68, 49.81, 49.86, 50.21, 50.14, 50.02, 50.25, 49.75, 49.92, 50.35, 49.81, 49.85.
With all 35 readings pasted into the I-MR Control Chart Calculator and the baseline set to 20, the calculator reports:
| Quantity | Value (g) |
|---|---|
| Center line x̄ (baseline mean, 999.68/20) | 49.9840 |
| MR̄ (19 baseline moving ranges, 4.40/19) | 0.2316 |
| σ̂ = MR̄/1.128 | 0.2053 |
| UCL = x̄ + 3σ̂ | 50.5999 |
| LCL = x̄ − 3σ̂ | 49.3681 |
| MR chart UCL = 3.267 MR̄ | 0.7566 |
It lists no reading outside the Individuals limits and no moving range above its limit. On single-point tests, the process looks unchanged.
The zone lines follow from the same σ̂, using unrounded values: +1σ at 50.1893 g, +2σ at 50.3946 g, −1σ at 49.7787 g and −2σ at 49.5734 g. Every baseline reading lies between −1.48σ and +1.78σ, and none of the rules in either list fires within the baseline.
| Reading | Weight (g) | Distance from x̄ (σ̂) | Zone | Rules that signal at this reading |
|---|---|---|---|---|
| 21 | 50.11 | +0.61 | C | — |
| 22 | 50.27 | +1.39 | B | — |
| 23 | 50.05 | +0.32 | C | — |
| 24 | 50.31 | +1.59 | B | — |
| 25 | 50.25 | +1.30 | B | — |
| 26 | 50.23 | +1.20 | B | 4 of 5 beyond 1σ |
| 27 | 50.48 | +2.42 | A | 4 of 5 beyond 1σ |
| 28 | 50.15 | +0.81 | C | 4 of 5 beyond 1σ; 8 on one side (WECO) |
| 29 | 50.46 | +2.32 | A | 2 of 3 beyond 2σ; 4 of 5 beyond 1σ; 8 on one side (WECO); 9 on one side (Minitab test 2) |
| 30 | 50.07 | +0.42 | C | 8 on one side (WECO); 9 on one side (Minitab test 2) |
| 31 | 49.88 | −0.51 | C | — |
| 32 | 50.17 | +0.91 | C | — |
| 33 | 50.21 | +1.10 | B | — |
| 34 | 50.03 | +0.22 | C | — |
| 35 | 49.92 | −0.31 | C | — |
How to read the table:
- Reading 26 is the first signal. Readings 22, 24, 25 and 26 are beyond +1σ, which is 4 of the last 5.
- Reading 28 completes 8 readings in a row above the center line (21 to 28). Under Minitab's 9-point test 2, the same run signals one reading later, at 29.
- Reading 29 is the second reading beyond +2σ in the last three (27 and 29).
- After reading 30, the run is broken by reading 31 below the center line, and no rule fires again through reading 35.
- The two trend rules and Minitab's tests 7 and 8 do not fire anywhere in the 35 readings.
The same data give three different answers depending on the rule set: no signal with single-point tests, a first signal at reading 26 with the WECO zone rules, and, if only rule 1 and the same-side run were in use, a first signal at reading 28 or 29 depending on whether the run is 8 or 9 points.
Choosing a rule set
Start from what a false alarm costs on the process. If every signal stops a line or triggers a containment action, the fourfold increase in false alarms from the full WECO set is expensive, and rule 1 plus one run rule may be the better trade. If the chart is reviewed at the end of each shift and a signal costs a few minutes of checking, the full set's faster detection of small shifts is usually worth it. The e-Handbook notes that some users add the WECO rules but take them "less seriously" in the effort they put into troubleshooting when those signals occur.
Whatever the choice:
- Write down the rule set and the definitions (8 or 9 points, one side or either side) before the chart is used, and apply the same set every time.
- Use the same zone lines for every rule: those set from the baseline, not from the latest data.
- Keep a signal from a run rule distinct from a point beyond the limits in the record, because their false-alarm rates are different.
What the numbers assume
- Known mean and sigma. The ARL table treats the center line and sigma as exact. In practice both are estimated from a baseline, here 20 readings, and the actual false-alarm interval of a given chart can be noticeably shorter or longer than the table says. This guide does not compute that effect.
- Normal, independent points. The zone rules use normal tail areas. Skewed data put more points in one tail than the zones expect, and positively correlated data (each reading close to the last) produce runs on one side far more often than 1 in 128. A chart with frequent run-rule signals and no assignable cause is worth checking for both before blaming the process.
- Attributes charts. For p, np, c and u charts the count distribution is usually skewed and the zones are not symmetric in probability; Minitab offers only tests 1 to 4 on those charts. Which control chart for which data covers when a count chart is the right chart.
- Range and moving range charts. Minitab offers only tests 1 to 4 on R, S and moving range charts. Adjacent moving ranges share a reading, so they are not independent and the window probabilities above do not apply to them.
Common mistakes
- Mixing definitions. Using an 8-point run on one chart and a 9-point run on another, or counting points on both sides for the 2-of-3 rule, changes the false-alarm rate without anyone deciding to.
- Adding rules after looking at the data. Searching the chart for any pattern that fits some rule guarantees a signal on a long enough chart.
- Recomputing zones from data that include the shift. Limits and zones that move with every new reading absorb the shift the rules were meant to find.
- Treating window probabilities as false-alarm rates. A 0.3 % window probability does not mean one false alarm in 333 points once several rules run together; the ARL table gives the actual interval.
- Applying zone rules to sorted or regrouped data. Run rules depend on time order. Sorting the readings or merging streams from several machines destroys or invents runs.
Using the calculators with this guide
The I-MR Control Chart Calculator, the Subgroup Control Chart Calculator and the Attribute Control Chart Calculator apply single-point tests only. They report the center line and limits; the zone lines lie one third and two thirds of the way from the center line to each limit, and the rules in this guide are applied by hand or in a spreadsheet. The I-MR guide explains the limits used in the worked example, and the control chart constants guide gives the constants for subgroup charts.
Sources and further reading
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 6.3.2, What are Variables Control Charts? — the WECO rules, the trend rules, the "about 0.3 %" rarity and the 371 and 91.75 point false-alarm intervals.
- Minitab Support: Which tests for special causes are included in Minitab? — the eight tests and which charts each applies to.
- Barsalou, M., Using the Nelson Rules for Control Charts in Minitab, Minitab Blog, 2016 — the Nelson rules and Nelson's 1984 column.
- R package spc, xshewhartrunsrules.arl — the Champ and Woodall Markov chain method and the example ARL values for single runs rules.
- Nelson, L. S., "The Shewhart Control Chart—Tests for Special Causes", Journal of Quality Technology, 16(4), 237–239, October 1984.
- Champ, C. W. and Woodall, W. H., "Exact Results for Shewhart Control Charts with Supplementary Runs Rules", Technometrics, 29(4), 393–399, 1987.
- Kitstead Labs guides: Which control chart for which data, I-MR control charts, Control chart constants.