# 3.5. CUSUM charts¶

We showed earlier that the Shewhart chart is not too sensitive to detecting shifts in the mean. Depending on the subgroup size, \(n\), we showed that it can take several consecutive samples before a warning or action limit is triggered. The cumulative sum chart, or CUSUM chart, allows more rapid detection of these shifts away from a target value, \(T\).

The following equation shows how this chart works.

Values of \(S_t\) are the values plotted on the y-axis of a CUSUM chart. Imagine during a period of good, stable, in-control process operation around the target \(T\), then these \(S_t\) numbers are just random errors, with mean of zero. The long-term sum of \(S_t\) is also zero, as the positive and negative errors keep cancelling out.

So imagine a CUSUM chart where at some time point the process mean shifts up by \(\Delta\) units, causing future values of \(x_t\) to be \(x_t + \Delta\) instead. Now the summation in the last equation of (1) has an extra \(\Delta\) term added at each step to \(S_t\). Every point will build up an accumulation of \(\Delta\), which shows up as a positive or negative slope in the CUSUM chart.

The CUSUM chart is extremely sensitive to small changes. The example chart is shown here for a process where the mean is \(\mu=20\), and \(\sigma=3\). A small shift of \(0.4 \times 3 = 1.2\) units (i.e from 20 to 21.2) occurs at \(t=150\). This shift is almost imperceptible in the raw data (see the 3rd row in the figure). However, the CUSUM chart rapidly picks up the shift by showing a consistent rising slope.

This figure also shows how the CUSUM chart is used with the 2 masks. Notice that there are no lower and upper bounds for \(S_t\). A process that is on target will show a “wandering” value of \(S\), moving up and down. In fact, as the second row in the figure shows, a surprising amount of movement up and down occurs even when the process is in control.

What is of interest however is a persistent change in slope in the CUSUM chart. The angle of the superimposed V-mask is the control limit: the narrower the mouth of the mask, the more sensitive the CUSUM chart is to deviations from the target. Both the type I and II error are set by the angle of the V and the leading distance (the distance from the short vertical line to the apex of the V).

The process is considered in control as long as all points are within the arms of the V shape. The mask in the second row of the plot shows “in control” behaviour, while the mask in the fourth row detects the process mean has shifted, and an alarm should be raised.

Once the process has been investigated the CUSUM value, \(S_t\) is often reset to zero; though other resetting strategies exist. A tabular version of the CUSUM chart also exists which tends to be the version used in software systems.

The purpose of this section is not to provide formulas for the V-mask or tabular CUSUM charts, only to explain the CUSUM concept to put the next section on EWMA control charts in perspective.