Cumulative Sum (CUSUM)

Local Algorithm - One-Dimensional Algorithm

Cumulative Sum algorithm calculates the cumulative sum of an input data sequence. The basic formula is stated as follows:

S0=0,
Sn=max(0,Sn1+Ynk),

where Y is the input data sequence and S represents the cumulative sums. k is a user-given reference value.

Input Parameters

Parameter Type Constraint Description Remarks
Y YRN NN Input data sequence of length N  
k kR      

Output Parameters

Parameter Type Constraint Description Remarks
S SRN NN    

Tool Support

Single Steps using the Algorithm

References

  • E.S. Page, Continuous Inspection Scheme, Biometrika, vol. 41(1/2), pp. 100-115, 1954.