Written and maintained by CASRAI Editorial Board
Published
On this page
The Nelson rules are eight tests for special causes on a Shewhart control chart. Lloyd S. Nelson published them in the Journal of Quality Technology in 1984, and each test flags one non-random pattern: a point beyond the control limits, a run on one side of the centre line, a steady trend, alternating points, or clusters of points in the outer zones. Minitab, SAS/QC and the R package qcc all implement them, so the same eight patterns can be switched on, read and compared across tools.
This page lists the eight tests exactly as two vendors word them, shows where to enable them in each program, explains how to read a flagged point, and maps which chart types allow which tests. It assumes you already have a control chart; for chart construction see the guide to statistical process control charts and for picking the chart type see choosing a control chart.
What the Nelson rules are used for in research
A control chart separates ordinary, common-cause variation from variation that has a specific, findable cause. A single point outside the control limits is the classic signal, but a process can drift or shift without ever crossing a limit. The Nelson rules add seven pattern tests so that these quieter changes are caught earlier. In a research setting the typical uses are monitoring a calibration standard or quality-control sample run after run, watching an instrument reading across a long experiment, and tracking a measured output in a core facility or manufacturing step.
The tests are numbered 1 to 8. Two sources agree on the pattern behind each number: the SAS/QC documentation (“Standard Tests for Special Causes”) and Minitab’s list of tests for special causes. Both describe the chart in zones measured in standard deviations (σ) from the centre line. Minitab’s wording for tests 5 to 7 shows the zone boundaries: a point more than 2σ from the centre line is in the outer region (Zone A or beyond), more than 1σ is Zone B or beyond, and within 1σ is Zone C. If the σ idea is new, the guides to standard deviation and the empirical rule explain where 1σ, 2σ and 3σ come from.
The eight tests in plain terms
- Test 1: one point beyond Zone A, meaning outside the control limits (Minitab: one point more than 3σ from the centre line). Minitab labels it an unusual point.
- Test 2: nine points in a row in Zone C or beyond on one side of the centre line. Minitab reads this as a shift in the process mean.
- Test 3: six points in a row steadily increasing or steadily decreasing. Minitab reads this as a trend.
- Test 4: fourteen points in a row alternating up and down. Minitab reads this as systematic variation.
- Test 5: two out of three points in a row in Zone A or beyond, on the same side. Minitab reads this as a small shift.
- Test 6: four out of five points in a row in Zone B or beyond, on the same side. Minitab also reads this as a small shift.
- Test 7: fifteen points in a row in Zone C, on either or both sides of the centre line. Minitab notes that this often means the control limits are too wide, a pattern frequently caused by stratification of the data.
- Test 8: eight points in a row on either or both sides of the centre line with none in Zone C. Minitab reads this as a mixture of two processes.
The data table below compares the eight tests with the chart types on which each program allows them.
Access: where the Nelson rules live in Minitab, SAS and R
Minitab
Minitab includes the eight tests in its variables control charts and calls them tests for special causes. They are chosen on the chart’s Options dialog, on the Tests tab, where you tick individual tests or pick the drop-down choice “Perform all tests for special causes”. Minitab’s support page “Which tests for special causes are included in Minitab?” is the reference for exactly which tests each chart type supports.
SAS/QC
SAS/QC calls them the standard tests for special causes. In the SHEWHART procedure you request them with the TESTS= option, which takes a list of test numbers. The option is available on the BOXCHART, CCHART, IRCHART, MCHART, MRCHART, NPCHART, PCHART, UCHART, XCHART, XRCHART and XSCHART statements. The run lengths for tests 2 and 3 can be changed with the TEST2RUN= and TEST3RUN= options.
R (qcc package)
The qcc package on CRAN added all eight Nelson rules in version 3.0. According to the package’s NEWS file, they are selectable with rule.set = "nelson" in both qcc() and qccRules(), and a subset of the Western Electric rules is also implemented. R is free to download and use; qcc is the open-source route to the same tests.
Step-by-step: turn the Nelson tests on
- Start from a chart that suits the data. The tests assume a Shewhart-type chart with a centre line and control limits. Choose the chart type first (see choosing a control chart), because the available tests depend on it.
- In Minitab, for one chart: create the chart from the Control Charts menu (for example Variables Charts for Individuals, then Individuals), click the chart’s Options button (for an individuals chart, I Chart Options), open the Tests tab and tick the tests you want, or choose “Perform all tests for special causes”.
- In Minitab, as a default for every new chart: go to File > Options > Control Charts and Quality Tools > Tests and select the preset. Minitab states that changes made there do not apply to charts already in the project, so re-open the Options dialog on existing charts.
- In SAS/QC: add the
TESTS=option, listing the test numbers, to the chart statement for your chart type. ChangeTEST2RUN=orTEST3RUN=only if your process rules define a different run length for those two tests. - In R: call
qcc()withrule.set = "nelson"to apply all eight rules, or useqccRules()with the same argument on an existing qcc object to list which points violate them. - Re-read the chart. Any flagged point now carries the number of the test that fired.
Output: how to read a flagged point
A flagged point means the pattern around that point would be unusual if the process were behaving as one stable, random source of variation. It does not say why. The number of the test is the first diagnostic clue, and Minitab’s labels give a starting hypothesis for each.
- Tests 1, 2, 5 and 6 point to a change in level: one extreme point, or a run or cluster on one side of the centre line.
- Test 3 points to a drift, for example a reagent degrading or a detector slowly losing sensitivity.
- Test 4 points to a systematic alternation, for example two operators, two instruments or two alternating sample positions.
- Tests 7 and 8 are about too little or too much spread near the centre line. Minitab associates test 7 with limits that are too wide, often through stratification, and test 8 with a mixture of two processes.
Worked example (illustrative)
This is an illustrative composite, not a real data set. Suppose an analyst plots one control sample each day on an individuals chart. No point ever leaves the control limits, so test 1 never fires. On day 20, the ninth consecutive result sits above the centre line, and test 2 flags it. The chart has not shown an out-of-limits point, yet the process mean has plausibly shifted upward. The analyst then looks for what changed nine measurements ago, such as a new reagent lot, a recalibration or a change of operator, rather than waiting for a point beyond 3σ.
Which tests apply to which chart type
Not every test belongs on every chart. The tests are built on the idea that the plotted statistic is roughly symmetric around its centre line, which is not true for every chart.
- Minitab: tests 1 to 8 are available for most variables charts. For R, S and MR charts and for the attribute charts (P, NP, C, U), Minitab offers tests 1 to 4. For G and T charts, Minitab recommends tests 1 and 2. For the time-weighted charts, only the beyond-limits test applies to EWMA and CUSUM, and the CUSUM, Hotelling T-squared and Zone charts do not support the tests.
- SAS/QC: for c, np, p and u charts only tests 1 to 4 are recommended, and test 2 is not recommended unless the distribution is symmetric or nearly symmetric.
Troubleshooting
The tests flag too many points
Each additional test is another chance for the chart to signal. Switching on all eight tests makes the chart more sensitive, and it also makes false alarms more likely for a stable process. That is an editorial reading of how multiple tests combine, not a figure taken from a source, so treat the number of tests as a decision to make with your process owner. A common narrower set is tests 1 to 4, which Minitab and SAS both use as the limited set for attribute charts.
A test is missing or greyed out
Check the chart type first. On R, S, MR and attribute charts Minitab offers only tests 1 to 4, and on CUSUM, Hotelling T-squared and Zone charts it supports none. In SAS, the TESTS= option is accepted on the chart statements listed above, but only tests 1 to 4 are recommended for c, np, p and u charts.
Tests added to a project do not show on older charts
In Minitab, changing the default under File > Options affects new charts only. Open the Options dialog on each existing chart and set the tests there.
A pattern appears with no test firing
The eight tests are a defined set, not a guarantee. A process can be out of control without producing a signal from any of them, so a chart that looks suspicious deserves attention even when the test count is zero.
Free alternatives and where each one fits
The table compares the three programs covered above on how each exposes the Nelson tests, using only the vendors’ and package maintainers’ own descriptions.
| Program | Where the tests are set | Test coverage described by the source | Free to use |
|---|---|---|---|
| R package qcc | rule.set = "nelson" in qcc() and qccRules() |
All eight Nelson rules, plus a subset of the Western Electric rules | Yes (R and CRAN packages are open source) |
| Minitab | Chart Options, Tests tab; File > Options for the default | Tests 1 to 8 on most variables charts; 1 to 4 on R, S, MR and attribute charts | Commercial software |
| SAS/QC | TESTS= option on the chart statements |
Eight standard tests; 1 to 4 recommended for c, np, p and u charts | Commercial software |
Western Electric rules and the Nelson rules
The Nelson rules sit alongside the Western Electric rules, a subset of which the qcc package also implements. The two rule sets are not the same list, so numbering from one does not carry over to the other. When a procedure or customer specification names a rule set, use the set it names rather than mixing numbering from the two, and state which rule set a chart used when you report the result.
Reporting a chart that used the Nelson rules
When a chart supports a methods section, a quality report or an audit file, record four things: the chart type, the number of points used to set the limits, the list of tests that were enabled (for example tests 1 to 4 or all eight), and the software and version. The test numbers are what let a reader reproduce the flags, since different programs can word the same pattern slightly differently, as the SAS and Minitab lists above show.
Sources
- SAS/QC User’s Guide, “Standard Tests for Special Causes”: https://support.sas.com/documentation/cdl/en/qcug/66857/HTML/default/qcug_shewhart_sect540.htm (checked 2026-11-14)
- Minitab Support, “Which tests for special causes are included in Minitab?”: https://support.minitab.com/en-us/minitab/help-and-how-to/quality-and-process-improvement/control-charts/supporting-topics/basics/using-tests-for-special-causes (checked 2026-11-14)
- Minitab Blog, “Using the Nelson Rules for Control Charts in Minitab”: https://blog.minitab.com/en/statistics-in-the-field/using-the-nelson-rules-for-control-charts-in-minitab (checked 2026-11-14)
- qcc package NEWS, R-universe: https://luca-scr.r-universe.dev/qcc/NEWS (checked 2026-11-14)
Data: Nelson rules: the eight tests for special causes and their chart-type availability
The eight Nelson tests for special causes as worded in the SAS/QC documentation, with the interpretation label Minitab gives each pattern and whether the test is offered for attribute charts (P, NP, C, U). Compiled from the SAS/QC Standard Tests for Special Causes page and Minitab's list of tests for special causes, both read 2026-11-14.
| Test | Pattern (SAS/QC wording) | Minitab interpretation label | Offered for attribute charts (Minitab tests 1-4; SAS recommends 1-4) |
|---|---|---|---|
| 1 | One point beyond Zone A (outside the control limits) | Unusual point | Yes |
| 2 | Nine points in a row in Zone C or beyond on one side of the centre line | Shift | Yes (SAS: not recommended unless symmetric) |
| 3 | Six points in a row steadily increasing or decreasing | Trend | Yes |
| 4 | Fourteen points in a row alternating up and down | Systematic variation | Yes |
| 5 | Two out of three points in a row in Zone A or beyond | Small shift | No |
| 6 | Four out of five points in a row in Zone B or beyond | Small shift | No |
| 7 | Fifteen points in a row in Zone C on either or both sides | Limits too wide, often stratification | No |
| 8 | Eight points in a row on either or both sides with no points in Zone C | Mixture | No |
Sources
- SAS/QC User's Guide: Standard Tests for Special Causes (accessed 2026-11-14)
- Minitab Support: Which tests for special causes are included in Minitab? (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







