Control Chart Limits

Paste measurements in time order. The tool computes X̄–R, X̄–S, or individuals–moving range (I–MR) control limits with the standard SPC constants, plots both charts, and flags points that break the Western Electric run rules.

Inputs

2–25

Consecutive blocks of n values form the subgroups. The example is an ablation depth in µm, 25 subgroups of 5, with a small upward shift starting around subgroup 18.

Control limits
Run rules

Results

Out-of-control signals—
X̄ chart center line—
X̄ chart UCL · LCL—
R chart center line—
R chart UCL · LCL—
Within-subgroup σ estimate— —
Subgroups · values used— —
Constants—

X̄ chart

R chart

Rule violations

How the control limits are calculated

A Shewhart chart puts limits three standard errors either side of the center line. The standard deviation is estimated from variation within subgroups, so that shifts between subgroups show up as signals instead of widening the limits. With \(k\) subgroups of size \(n\), grand mean \(\bar{\bar x}\), average range \(\bar R\), and average standard deviation \(\bar s\):

\[ \bar X\text{–}R:\quad UCL, LCL = \bar{\bar x} \pm A_2 \bar R, \qquad UCL_R = D_4 \bar R,\quad LCL_R = D_3 \bar R \]
\[ \bar X\text{–}S:\quad UCL, LCL = \bar{\bar x} \pm A_3 \bar s, \qquad UCL_S = B_4 \bar s,\quad LCL_S = B_3 \bar s \]
\[ I\text{–}MR:\quad UCL, LCL = \bar x \pm 3\frac{\overline{MR}}{1.128} = \bar x \pm 2.660\,\overline{MR}, \qquad UCL_{MR} = 3.267\,\overline{MR} \]

The constants come from the distribution of the range and standard deviation of \(n\) normal values: \(\sigma = \bar R/d_2 = \bar s/c_4\), so \(A_2 = 3/(d_2\sqrt n)\) and \(A_3 = 3/(c_4\sqrt n)\), and \(D_3, D_4 = 1 \mp 3d_3/d_2\), with negative values set to zero. With a standard given (Phase II), the limits are \(\mu_0 \pm 3\sigma_0/\sqrt n\). The range chart then uses \(D_1\sigma_0\), \(d_2\sigma_0\), and \(D_2\sigma_0\), and the S chart uses \(B_5\sigma_0\), \(c_4\sigma_0\), and \(B_6\sigma_0\).

nA₂D₃D₄d₂A₃B₃B₄c₄
21.88003.2671.1282.65903.2670.7979
31.02302.5741.6931.95402.5680.8862
40.72902.2822.0591.62802.2660.9213
50.57702.1142.3261.42702.0890.9400
60.48302.0042.5341.2870.0301.9700.9515
80.3730.1361.8642.8471.0990.1851.8150.9650
100.3080.2231.7773.0780.9750.2841.7160.9727

The calculator holds the full table for n = 2–25. Each value was checked against the defining integrals of \(d_2\) and \(d_3\) and against \(c_4 = \sqrt{2/(n-1)}\,\Gamma(n/2)/\Gamma\bigl((n-1)/2\bigr)\).

Run rules

Points beyond the control limits are not the only sign of a special cause. The zone rules from the Western Electric handbook catch smaller sustained shifts sooner. They divide each side of the center line into zones at 1σ and 2σ of the plotted statistic:

  1. Rule 1: one point beyond a 3σ control limit.
  2. Rule 2: two of three consecutive points beyond 2σ, on the same side.
  3. Rule 3: four of five consecutive points beyond 1σ, on the same side.
  4. Rule 4: eight consecutive points on the same side of the center line.
  5. Trend: six consecutive points steadily increasing or decreasing (Nelson's rule 3).

The tool applies all of them to the X̄ or individuals chart. It applies only rule 1 to the range, S, and moving-range charts, because their distributions are skewed and the symmetric zone rules do not apply. Each extra rule raises the false-alarm rate. For a stable, normally distributed process, rule 1 alone gives a false alarm about once every 370 points. Rules 1–4 together bring that down to about once every 92 points (Champ and Woodall), and adding the trend rule to about once every 78. Investigate signals; do not adjust the process for every one.

Worked example

The default data are 25 subgroups of 5 ablation-depth measurements. The grand mean is 12.138 µm and \(\bar R = 0.703\) µm, so the X̄ limits are \(12.138 \pm 0.577 \times 0.703 = 11.732\) to \(12.544\) µm. The R-chart UCL is \(2.114 \times 0.703 = 1.487\) µm, and the within-subgroup σ is \(0.703/2.326 = 0.302\) µm.

No point crosses a control limit, but the zone rules catch a run of four low means (subgroups 8–12, rule 3). Late in the run they catch the upward shift: rule 2 at subgroup 24, rule 3 at 24, and rule 4 at 25. The realized shift was about 0.3 µm, roughly 1 process σ. Because the Phase I grand mean includes the shifted subgroups, those subgroups sit only about 1.5σ of X̄ above the center line, and rule 1 alone would have missed the shift. In Phase I, find the cause, remove the affected subgroups, and recalculate the limits before using them for monitoring.

Assumptions and limits

References

  1. Western Electric Co., Statistical Quality Control Handbook (1956).
  2. AIAG, Statistical Process Control (SPC) Reference Manual, 2nd ed. (2005).
  3. D. C. Montgomery, Introduction to Statistical Quality Control, 8th ed., Wiley (Appendix VI, factors for constructing variables control charts).
  4. L. S. Nelson, “The Shewhart control chart—tests for special causes,” Journal of Quality Technology 16(4), 237–239 (1984).
  5. C. W. Champ and W. H. Woodall, “Exact results for Shewhart control charts with supplementary runs rules,” Technometrics 29(4), 393–399 (1987).