# CUSUM

{{#invoke:Hatnote|hatnote}} Template:Infobox control chart

In statistical quality control, the **CUSUM** (or **cumulative sum control chart**) is a sequential analysis technique developed by E. S. Page of the University of Cambridge. It is typically used for monitoring change detection.^{[1]}
CUSUM was announced in Biometrika, in 1954, a few years after the publication of Wald's SPRT algorithm.^{[2]}

Page referred to a "quality number" , by which he meant a parameter of the probability distribution; for example, the mean. He devised CUSUM as a method to determine changes in it, and proposed a criterion for deciding when to take corrective action. When the CUSUM method is applied to changes in mean, it can be used for step detection of a time series.

A few years later, George Alfred Barnard developed a visualization method, the V-mask chart, to detect both increases and decreases in .^{[3]}

## Method

As its name implies, CUSUM involves the calculation of a **cu**mulative **sum** (which is what makes it "sequential"). Samples from a process are assigned weights , and summed as follows:

When the value of *S* exceeds a certain threshold value, a change in value has been found. The above formula only detects changes in the positive direction. When negative changes need to be found as well, the min operation should be used instead of the max operation, and this time a change has been found when the value of *S* is *below* the (negative) value of the threshold value.

Page did not explicitly say that represents the likelihood function, but this is common usage.

Note that this differs from SPRT by always using zero function as the lower "holding barrier" rather than a lower "holding barrier".^{[1]} Also, CUSUM does not require the use of the likelihood function.

As a means of assessing CUSUM's performance, Page defined the *average run length* (A.R.L.) metric; "the expected number of articles sampled before action is taken." He further wrote:^{[2]}

When the quality of the output is satisfactory the A.R.L. is a measure of the expense incurred by the scheme when it gives false alarms, i.e., Type I errors (Neyman & Pearson, 1936

^{[4]}). On the other hand, for constant poor quality the A.R.L. measures the delay and thus the amount of scrap produced before the rectifying action is taken, i.e., Type II errors.

construct cusum chart for the following 30 observations these observations were drawn at random from a normal distribution 1)with mean(μ)=10 and σ=1. 2)when mean and variance are unknown.

sample i Xi 1 9.45 2 7.99 3 9.29 4 11.66 5 12.16 6 10.18 7 8.04 8 11.46 9 9.2 10 10.34 11 9.03 12 11.43 13 10.51 14 9.4 15 10.08 16 9.37 17 10.62 18 10.31 19 8.52 20 10.84 21 10.9 22 9.33 23 12.29 24 11.5 25 10.6 26 11.08 27 10.38 28 11.62 29 11.31 30 10.52

## Variants

Cumulative observed-minus-expected plots^{[1]} are a related method.

## References

## Further reading

- {{#invoke:citation/CS1|citation

|CitationClass=book }}