CUSUM and EWMA: catching small, sustained shifts
Follow how CUSUM and EWMA accumulate small process shifts, work through a six-point example, and choose their parameters with false alarms in mind.
Use a Shewhart chart for large, sudden shifts, where it is simple and sufficient. For small, sustained shifts of roughly 0.5 to 1.5 sigma, CUSUM and EWMA respond sooner. The choice depends on the shift size to catch and the false-alarm rate you accept.
A Shewhart chart compares each point or subgroup statistic with control limits, usually at ±3σ. It reacts quickly to a large jump, but a small shift inside the limits can go unnoticed for a long time.
CUSUM accumulates deviations: each value's difference from target, minus a slack k, feeds a running sum that cannot fall below zero. When the sum exceeds a decision limit h, the chart signals. EWMA averages the data with exponentially decreasing weights set by λ, so recent points count more. Both detect small sustained shifts earlier than Shewhart.
Common starting points for CUSUM are k around 0.5σ and h around 4 to 5σ. For EWMA they are λ between 0.05 and 0.25 and L around 2.7 to 3. Check them against your data; they are not standards.
Hypothetical: μ0 = 10, σ = 1, k = 0.5, so each step adds x − 10.5.
None of the six values is beyond ±3σ, so Shewhart gives no signal. With h = 4σ = 4, CUSUM also gives no signal yet, but the sum has risen from 0 to 2.4 and every value sits above target. Four more points near 11 push it past 4.
The first mistake is ignoring autocorrelation. Measurements that depend on the previous one, such as a slowly moving temperature, can make CUSUM and EWMA signal too often, so check the residuals before setting limits. The second is estimating sigma during a period that was already drifting; use a stable in-control period instead. The third is choosing k, h, λ and L by feel. They should follow from the shift you care about and the average run length (ARL) you accept.
Both detect small shifts. CUSUM is tuned by slack k and limit h, which follow from the shift you want to catch. EWMA is tuned by weight λ and limit factor L, and it also gives a smoothed view of the data.
No. Shewhart charts stay simple and clear for large jumps. Many teams run one next to a CUSUM or EWMA chart: the Shewhart chart shows large events, while the other shows small sustained drift.
Example numbers are hypothetical, not measured field results.