Tools › Quality › Control › CUSUM and EWMA Charts › Example

A slow drift: CUSUM signals at point 42, the 3-sigma limits at point 57

ToolCUSUM and EWMA Charts
SourceOriginal illustrative case (seeded synthetic data). Method: National Institute of Standards and Technology (2012). NIST/SEMATECH e-Handbook of Statistical Methods, sections 6.3.2.2 (moving range and 1.128), 6.3.2.3 and 6.3.2.4.
LevelUndergraduate

Problem

Seventy measurements are stable for 25 points and then drift upward by 0.04 sigma per point. Neither the target nor sigma is known: estimate both from the first 25 points, then find where each of the three charts first signals.

Inputs to Enter

  • 70 single values in time order; target and sigma estimated from the first 25 points
  • CUSUM k = 0.5, h = 5; EWMA weight 0.2, width 3, time-varying limits; Shewhart ± 3 sigma
Open the CUSUM and EWMA Charts tool

Answers

  • Target = mean of the first 25 points = 99.982; sigma = mean moving range ÷ 1.128 = 1.796
  • First signals: CUSUM at point 42, EWMA at point 48, Shewhart chart at point 57
  • Change estimate at the CUSUM signal: sum last at zero at point 30, mean of the 12 points after it 101.66, a shift of +0.94 sigma (for a drift this is the average level over those points, not a step)

Notes

Open this case in the tool: /analysis-tools/quality/control/cusum-ewma-charts/?try=slow-drift. Seeded illustrative data; the drift was put in after point 25 when the series was generated. Checked against an independent numpy computation. An estimate of the target from 25 points carries its own error of about sigma ÷ 5.

More Examples for This Tool