Process monitoring

Control Chart Run Rules: Western Electric and Nelson Tests, and What They Cost in False Alarms

Kitstead Labs · Engineering reference · Synthetic worked example

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:

Zones of a control chart by distance from the center line
ZoneDistance from the center line
CWithin 1σ
BBetween 1σ and 2σ
ABetween 2σ and 3σ
Beyond the limitMore 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:

The four Western Electric rules, summarized for either side of the center line
RuleSignal
1One point beyond 3σ
22 out of the last 3 points beyond 2σ, on the same side
34 out of the last 5 points beyond 1σ, on the same side
48 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.

Minitab's eight tests for special causes and the closest Western Electric rule
TestSignalClosest WECO rule
1One point more than 3σ from center lineRule 1
2Nine points in a row on the same side of the center lineRule 4 uses 8
3Six points in a row, all increasing or all decreasingTrend rule
4Fourteen points in a row, alternating up and downTrend rule
5Two out of three points more than 2σ from the center line (same side)Rule 2
6Four out of five points more than 1σ from center line (same side)Rule 3
7Fifteen points in a row within 1σ of center line (either side)None
8Eight 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:

Probability that one window of in-control points shows each pattern
PatternProbability for one window
One point beyond 3σ (either side)0.270 % (1 in 370.4)
2 of 3 beyond 2σ, one given side0.153 %
2 of 3 beyond 2σ, either side0.306 %
4 of 5 beyond 1σ, one given side0.277 %
4 of 5 beyond 1σ, either side0.553 %
8 in a row on one side0.781 % (1 in 128)
9 in a row on one side0.391 % (1 in 256)
6 in a row all increasing or all decreasing0.278 % (1 in 360)
14 in a row alternating0.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.

Average run length by rule set and size of shift, with the mean and sigma known
Rule setNo shift0.4σ shift1.0σ shift2.0σ shift
3σ only (rule 1)370.40200.0843.896.30
Rule 1 + 2 of 3 beyond 2σ225.44104.4620.013.65
Rule 1 + 4 of 5 beyond 1σ166.0563.8812.663.68
Rule 1 + 8 on one side152.7359.7614.584.89
All four WECO rules91.7536.619.223.13
Rule 1 + 9 on one side216.7079.9417.055.14
Rule 1, 2 of 3, 4 of 5, 9 on one side109.0541.629.703.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.

0 100 200 300 400 0 10 20 30 40 50 Average run length, no shift (points between false alarms) Average run length, 1σ shift (points to detection) fewer false alarms → ↓ faster detection 3σ only + 2 of 3 + 4 of 5 + 8 on one side + 9 on one side All four WECO rules WECO set, 9-point run
Average run length with no shift (horizontal axis) against average run length after a one-sigma shift (vertical axis) for the seven rule sets in the table above. Points further right give fewer false alarms; points lower detect the shift sooner. No rule set is both furthest right and lowest.

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:

I-MR calculator results with readings 1 to 20 as the baseline
QuantityValue (g)
Center line x̄ (baseline mean, 999.68/20)49.9840
MR̄ (19 baseline moving ranges, 4.40/19)0.2316
σ̂ = MR̄/1.1280.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.

Monitoring readings 21 to 35: distance from the center line, zone and run-rule signals
ReadingWeight (g)Distance from x̄ (σ̂)ZoneRules that signal at this reading
2150.11+0.61C—
2250.27+1.39B—
2350.05+0.32C—
2450.31+1.59B—
2550.25+1.30B—
2650.23+1.20B4 of 5 beyond 1σ
2750.48+2.42A4 of 5 beyond 1σ
2850.15+0.81C4 of 5 beyond 1σ; 8 on one side (WECO)
2950.46+2.32A2 of 3 beyond 2σ; 4 of 5 beyond 1σ; 8 on one side (WECO); 9 on one side (Minitab test 2)
3050.07+0.42C8 on one side (WECO); 9 on one side (Minitab test 2)
3149.88−0.51C—
3250.17+0.91C—
3350.21+1.10B—
3450.03+0.22C—
3549.92−0.31C—
1 5 10 15 20 25 30 35 49.4 49.6 49.8 50.0 50.2 50.4 50.6 Reading Fill weight (g) UCL 50.5999 +2σ +1σ CL 49.9840 −1σ −2σ LCL 49.3681 C B A C B A Baseline (1–20) Monitoring (21–35) 26: 4 of 5 28: 8 on one side 29: 2 of 3
Synthetic fill weights in sampling order, with the center line, the ±1σ and ±2σ zone lines and the 3σ limits set from readings 1 to 20. No reading crosses a 3σ limit. Readings 26, 28 and 29 mark the first signal from the 4-of-5 rule, the 8-point run and the 2-of-3 rule.

How to read the table:

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:

What the numbers assume

Common mistakes

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