Tools › Quality › Control › CUSUM and EWMA Charts › Example
A half-sigma shift that no 3-sigma point shows: CUSUM signals at point 49, EWMA at 50
| Tool | CUSUM and EWMA Charts |
| Source | Original illustrative case (seeded synthetic data). Method: National Institute of Standards and Technology (2012). NIST/SEMATECH e-Handbook of Statistical Methods, sections 6.3.2.3 (CUSUM control charts) and 6.3.2.4 (EWMA control charts). |
| Level | Undergraduate |
Problem
Sixty measurements come from a process with target 100 and sigma 2; from point 21 on the mean was raised by half a sigma when the series was generated. Chart the series with 3-sigma Shewhart limits, a tabular CUSUM (k = 0.5, h = 5) and an EWMA (weight 0.2, limit width 3). Find the first signal of each chart, the change estimate at the CUSUM signal and the average run lengths of the three designs.
Inputs to Enter
- 60 single values in time order (the tool's default data), target 100, sigma 2
- CUSUM: k = 0.5, h = 5 sigma, so K = 1 and H = 10 in data units; sums start at zero
- EWMA: weight 0.2, limit width 3, time-varying limits; Shewhart limits at ± 3 sigma (94 and 106)
Answers
- Shewhart chart: no point beyond 94 or 106 in the 60 points
- Tabular CUSUM: upper sum at point 49 = max(0, 102.38 − (100 + 1) + 9.84) = 11.22, above H = 10: first signal at point 49
- EWMA: z at point 50 = 0.2 × 103.14 + 0.8 × 101.881 = 102.133, beyond the upper limit 102.000: first signal at point 50
- Change estimate: the upper sum was last zero at point 20 and reached 11.22 over 29 points, so the mean after the change is 100 + 1 + 11.22 / 29 = 101.39, a shift of +0.69 sigma (the series was generated with +0.5 sigma after point 20)
- Average run length at shifts of 0 / 0.5 / 1 sigma: Shewhart 370 / 155 / 43.9; CUSUM 465 / 38.0 / 10.4 (Siegmund 469 / 38.0 / 10.3); EWMA 560 / 44.1 / 10.8
Notes
The tool's default inputs are this case; press Submit, or open /analysis-tools/quality/control/cusum-ewma-charts/?try=half-sigma-shift. Seeded illustrative data, no real process; the seed is the first whose series shows the pattern (search rule in References/CUSUM-EWMA/make_cases.py). Every figure is checked against an independent numpy and scipy computation. A signal marks a point where a chart's rule is met; it does not say what caused it.
More Examples for This Tool
- A slow drift: CUSUM signals at point 42, the 3-sigma limits at point 57
- One high point: the Shewhart chart signals at point 23, the CUSUM and the EWMA do not
- Nothing changed: two false signals in 250 in-control points
- Skewed measurements: Cpk 0.51 on the normal assumption, 0.91 after a Box-Cox transformation
- NIST e-Handbook tabular CUSUM: 20 sample means, first signal at group 14