How to make a CUSUM chart
- Copy the measurement column with its header and paste it in.
- Choose the measurement column and set K (default 0.5σ), H (default 5σ) and the direction. Turn on 'Specify target mean' if you have a target value.
- Click Analyze and review the two-sided CUSUM, the V-mask, the raw run chart and the automatic interpretation.
Worked example with sample data
The example data are 40 individual measurements, with the process mean made to rise by about 2σ from the 25th value on.
With the target at the data mean (20.52), K = 0.5σ and H = 5σ (±2.66), 17 of the 40 points signal.
The early points 8, 21, 23 and 24 are downward signals where C⁻ falls below -2.66, and from point 28 on C⁺ rises above H (C⁺ = 5.493 at point 40).
The early downward signals appear because the target is a mean that includes the later high values. Enter the real target value as the target mean to see exactly when the shift started.
How it is calculated
C⁺ᵢ = max(0, xᵢ - (target + K) + C⁺ᵢ₋₁) and C⁻ᵢ = max(0, (target - K) - xᵢ + C⁻ᵢ₋₁); a signal occurs when C⁺ or C⁻ exceeds H. K and H are entered as multiples of σ (mean moving range / 1.128).
With a one-sided direction only upward (C⁺) or downward (C⁻) signals are judged.
What the results show
The two-sided CUSUM (C⁺ drawn upward, C⁻ downward), a traditional V-mask reference plot and a raw run chart with the target line.
How to read a CUSUM chart
- C⁺ above H means the process mean rose above the target; C⁻ above H means it fell.
- The point where a cumulative sum started climbing from 0 hints at when the shift began.
- The V-mask is for reference; official signals come from the tabular two-sided CUSUM.
Frequently asked questions
How do I choose K and H?
K = 0.5σ (to detect a 1σ shift) and H = 4-5σ are common.
Is EWMA or CUSUM better?
Both are good at detecting small shifts and perform similarly. CUSUM is handy when the cumulative deviation from a target is intuitive.
What if I don't specify the target mean?
The data mean is used as the target.