CUSUM vs. EWMA Control Charts: Complete Guide and Minitab Practice
CUSUM and EWMA control charts catch small, lasting process shifts that an ordinary chart can miss. Every pipe reading looks fine on its own, but a tiny change has been building for 30 samples. Can your chart spot it before the process drifts too far?
Your mission: spot small, lasting process changes, tell them apart from one-off spikes, and explain what a CUSUM or EWMA signal really means.
What you will be able to do
Understand and calculate
- Explain how CUSUM and EWMA remember earlier readings.
- Calculate the upper and lower CUSUM and the EWMA by hand.
- Describe how \(K\), \(H\), \(\lambda\) and \(L\) change detection.
Interpret and apply
- Read Minitab output and find its first signal.
- Tell a lasting shift from one unusual reading.
- Pick a chart and plan a sensible response to a signal.
Before you start: know what a process mean, a standard deviation and a control limit are. The control charts explained lesson covers them. All data in this lesson is made up for teaching.
Two process detectives, two different notebooks
A sensor reads 0.3 °C above normal, again and again. Each reading looks harmless. An Individuals chart judges each point alone. A time-weighted chart asks: “Is this becoming a pattern?”
CUSUM: the running evidence counter
Each reading adds to, or takes away from, a running score. Readings that keep landing on one side of target make that score grow. Past the decision limit, you investigate.
Think: two tallies, one for “above target” and one for “below target”.
EWMA: the smoothing filter
The newest reading gets some weight; the last smoothed value gets the rest. Random zigzags fade, while a lasting change slowly pulls the line away from target.
Think: a display that remembers its history but trusts recent readings most.
Which chart answers which question?
| Question | CUSUM | EWMA |
|---|---|---|
| How does it remember? | Adds up deviations. Each one-sided tally never drops below zero. | Gives older readings weights that shrink exponentially. |
| What is plotted? | Two statistics: upward and downward evidence. | One weighted average. |
| What tunes it? | Allowance \(K\) and decision interval \(H\). | Weight \(\lambda\) and limit width \(L\). |
| One isolated spike? | May not signal if the tally stays below \(H\). | Can be smoothed away, depending on \(\lambda\). |
| Is one always faster? | No. It depends on the shift size, the variation and the tuning. Compare them under the same conditions. | |
How to monitor a real process: the seven-step roadmap
- Ask the questionLasting shift, slow drift or one big spike?
- Check the dataTime order, units, gauge, product mix.
- Set a baseline\(\mu_0\) and \(\sigma\) from a stable period.
- Check assumptionsWatch for autocorrelation and drift.
- Tune the chartPick \(k,h\) or \(\lambda,L\) using ARL.
- Plot and readFind the first signal and its direction.
- InvestigateFind the cause, act, document a restart.
Essential vocabulary
| Term | Plain meaning | How to use it |
|---|---|---|
| Target, \(\mu_0\) | The in-control average | From stable process history or the engineering target. |
| Historical \(\sigma\) | The normal short-term spread | From a stable period, never the suspected shifted period. |
| \(K\) and \(k\) | CUSUM allowance: ignore tiny wiggles | \(K\) is in measurement units; \(k = K/\sigma\). |
| \(H\) and \(h\) | CUSUM alarm threshold | \(H\) is in measurement units; \(h = H/\sigma\). |
| \(\lambda\) (lambda) | How much the newest point counts | Smaller means smoother; larger means faster reaction. |
| ARL | Average run length: average samples until a signal | Long when in control (few false alarms), short after a real shift. |
The formulas are just a way of remembering
CUSUM: an upward notebook and a downward notebook
EWMA: a moving average with a memory
EWMA control limits
Time-varying limits for individual readings
- readings are in time order and independent of each other;
- \(\mu_0\) and \(\sigma\) come from a stable, trusted period;
- the gauge and the product mix stay the same.
One small thickness shift. Two different stories.
The pipe wall target is 6.40 mm and the historical \(\sigma\) is 0.04 mm. Six pipes in a row measure 6.45 mm. None looks wild on its own. Does the run of readings matter?
Part A — CUSUM tallies the evidence
| Sample | Reading (mm) | Upper CUSUM (mm) | Lower CUSUM plotted | Result |
|---|---|---|---|---|
| 1 | 6.45 | 0.03 | 0 | Below \(H\) |
| 2 | 6.45 | 0.06 | 0 | Below \(H\) |
| 3 | 6.45 | 0.09 | 0 | Below \(H\) |
| 4 | 6.45 | 0.12 | 0 | Below \(H\) |
| 5 | 6.45 | 0.15 | 0 | Below \(H\) |
| 6 | 6.45 | 0.18 | 0 | Signal: 0.18 > 0.16 |
Part B — EWMA smoothly follows the shift
| Sample | EWMA \(Z_i\) (mm) | Time-varying UCL (mm) | Signal? |
|---|---|---|---|
| 1 | 6.4100 | 6.4240 | No |
| 2 | 6.4180 | 6.4307 | No |
| 3 | 6.4244 | 6.4344 | No |
| 4 | 6.4295 | 6.4365 | No |
| 5 | 6.4336 | 6.4378 | No |
| 6 | 6.4369 | 6.4386 | No |
| 7 | 6.4395 | 6.4391 | Yes |
Takeaway: with these readings and settings, CUSUM signals at sample 6 and EWMA at sample 7. That does not mean CUSUM is always faster.
Because \(K\) is still subtracted at every reading. When \(x_i = \mu_0\), the tally becomes \(\max(0,\ C_{i-1}^{+} - K)\), so 0.18 drops to 0.16, then 0.14, and so on.
The EWMA also eases back toward 6.40. Neither statistic resets just because it crossed a limit.
Change the process. Watch both detectives react.
You control the readings and settings. Both charts and the table update in your browser. Change only \(\lambda\) or \(h\), then see how the first signal moves.
Build your own monitoring experiment
Show the first 12 calculation rows
| \(i\) | \(x_i\) | \(C_i^{+}\) | \(-C_i^{-}\) | EWMA \(Z_i\) | EWMA UCL |
|---|
This is a teaching calculator: tabular CUSUM for individual readings and 3-sigma time-varying EWMA limits. It does not copy every Minitab option.
When you see this, it means this
Recreate the analysis in Minitab
Use the same historical settings for both charts so the comparison is fair. The Minitab project holds the seven saved charts, so you can check your settings against them.
Prepare the worksheet
- Open the CSV with
File → Open(Minitab 18 and earlier:File → Open Worksheet). Check that you see 100 rows and five columns. - Keep
Sample_Noin time order. Each other column holds one reading per row (subgroup size 1). - Use the known historical target and \(\sigma\) below. Do not estimate them from data that already contains the shift.
Create the CUSUM chart
- Choose
Stat → Control Charts → Time-Weighted Charts → CUSUM. - Select
Pipe_Wall_mm, set subgroup size to 1 and target to 6.40. - Click
CUSUM Options. OnParameters, enter standard deviation 0.04. - On
Plan/Type, choose Tabular, \(h = 4\) and \(k = 0.5\). Leave FIR off. - Click OK twice. Checkpoint: the limits read \(\pm 0.16\) and the first red point is sample 33.
Create the EWMA chart
- Choose
Stat → Control Charts → Time-Weighted Charts → EWMA. - Select the same column, subgroup size 1, and weight of EWMA 0.2.
- Click
EWMA Options. OnParameters, enter mean 6.40 and standard deviation 0.04. - Keep the default 3-sigma limits and click OK twice.
- Checkpoint: the first point beyond the upper limit is sample 33.
Use these settings for all four case studies
| Column | Target \(\mu_0\) | Historical \(\sigma\) | CUSUM | EWMA |
|---|---|---|---|---|
Pipe_Wall_mm | 6.40 | 0.04 | \(h = 4,\ k = 0.5\) | \(\lambda = 0.20,\ L = 3\) |
Reactor_Temp_C | 210 | 1.50 | \(h = 4,\ k = 0.5\) | \(\lambda = 0.20,\ L = 3\) |
Fill_Weight_g | 500 | 2.00 | \(h = 4,\ k = 0.5\) | \(\lambda = 0.20,\ L = 3\) |
Ore_Grade_pct | 1.25 | 0.035 | \(h = 4,\ k = 0.5\) | \(\lambda = 0.20,\ L = 3\) |
Read real project outputs, not just textbook drawings
Compare the pattern, the limits and the first signal, not how dramatic the line looks.
Pipe wall thickness: the warning you can almost miss
Target 6.40 mm, \(\sigma = 0.04\) mm, \(H = 0.16\) mm. Readings start near target, then higher readings keep coming. The upper CUSUM builds past \(+H\).

Reactor temperature: the slow creep
Target 210 °C, \(\sigma = 1.5\) °C. Readings slowly favour higher temperatures. No single reading leaves 205.5–214.5 °C (\(\mu_0 \pm 3\sigma\)), yet both time-weighted charts catch the change.
Practical response: check sensor calibration, controller bias, heat transfer and cooling around samples 55–70. The first signal is not the exact moment the change began.
Fill weight: the process gives away too little
Target 500 g, \(\sigma = 2\) g. The shift is downward, so watch the lower CUSUM. Plotted below zero, it crosses \(-H = -8\) g.
Practical response: review filler-valve timing, scale calibration, product density and batch changes. A legal minimum fill is a separate conformance check.
Ore grade: a big spike with no CUSUM signal
Target 1.25% grade, \(\sigma = 0.035\) percentage points. Sample 45 reads 1.398%, which is 4.23 standard deviations above target and well past the 3-sigma Individuals limit of 1.355%.

Results side by side
| Process | Pattern | First CUSUM signal | First EWMA signal | Readings beyond \(\mu_0 \pm 3\sigma\) |
|---|---|---|---|---|
| Pipe wall | Upward shift | 33 | 33 | 59 |
| Reactor | Slow upward drift | 63 | 69 | None |
| Fill | Downward shift | 37 | 38 | 38, 66 |
| Ore grade | One spike | None | None | 45 |
Calculated from the CSV with tallies starting at zero, \(k = 0.5\), \(h = 4\), \(\lambda = 0.20\), \(L = 3\) and time-varying EWMA limits. The last column uses fixed \(\mu_0 \pm 3\sigma\), not an estimated I-MR chart. Other Minitab options can change the signals.
Do it in software
Statistics Implementation
Psst. The spreadsheet formulas and the Minitab settings are hiding in here, plus the exam traps.You found the secret level. Now make Excel and Minitab do the heavy lifting.
Unlock the cheat codesHide the cheat codes
1. Excel Functions
Excel has no built-in CUSUM or EWMA chart. You build each statistic with ordinary cell formulas.
| Function | Syntax | Purpose | When to use it |
|---|---|---|---|
MAX | =MAX(0,C2+B3-$G$1-$G$2*$G$3) | Stops a one-sided CUSUM going below zero. | Every new upper or lower CUSUM. |
AVERAGE | =AVERAGE(B2:B31) | Estimates the target from history. | Only on a stable baseline period. |
STDEV.S | =STDEV.S(B2:B31) | Estimates the historical spread. | A stable reference period, not a shifted one. |
SQRT | =SQRT($G$4/(2-$G$4)*(1-(1-$G$4)^(2*A2))) | The EWMA limit factor. | Time-varying EWMA limits. |
POWER | =POWER(1-$G$4,2*A2) | The same exponent written as a function. | If you prefer it to ^. |
IF | =IF(C2>$G$2*$G$6,"Investigate","Monitor") | Flags a CUSUM above \(H\). | A teaching signal column, not an automatic decision. |
2. Excel Use Cases
Put the target in G1 (6.40), \(\sigma\) in G2 (0.04), \(k\) in G3 (0.5), \(\lambda\) in G4 (0.20), \(L\) in G5 (3) and \(h\) in G6 (4). Sample numbers go in column A, readings in column B.
| Cell | Formula | Meaning |
|---|---|---|
| C2 | =MAX(0,B2-$G$1-$G$2*$G$3) | First upper CUSUM. |
| C3 | =MAX(0,C2+B3-$G$1-$G$2*$G$3) | Upper CUSUM, copied down. |
| D2 | =MAX(0,$G$1-B2-$G$2*$G$3) | First lower CUSUM size (plot it as a negative). |
| D3 | =MAX(0,D2+$G$1-B3-$G$2*$G$3) | Lower CUSUM size, copied down. |
| E2 | =$G$4*B2+(1-$G$4)*$G$1 | First EWMA, starting at target. |
| E3 | =$G$4*B3+(1-$G$4)*E2 | EWMA, copied down. |
| F2 | =$G$1+$G$5*$G$2*SQRT($G$4/(2-$G$4)*(1-(1-$G$4)^(2*A2))) | Time-varying EWMA upper limit. |
Checkpoint: with six readings of 6.45 mm, column C first passes 0.16 at sample 6, and column E first passes column F at sample 7. The workbook’s CALC_Pipe tab lets you check your formulas.
3. Minitab Navigation
Stat → Control Charts → Time-Weighted Charts → CUSUM: tabular CUSUM. Set the target in the main dialog, the standard deviation inCUSUM Options → Parameters, and \(h\), \(k\) inCUSUM Options → Plan/Type.Stat → Control Charts → Time-Weighted Charts → EWMA: set the weight in the main dialog, and the mean and standard deviation inEWMA Options → Parameters.Stat → Control Charts → Variables Charts for Individuals → I-MR: run it alongside, to catch single spikes.
Which to choose? Use CUSUM for a known size of shift you want to catch (set \(k\) to half of it in standard deviations). Use EWMA for slow drift or noisy data. Enter historical values when you have a trusted baseline; let Minitab estimate them only from a stable Phase I period.
4. Exam Tips
- The ASQ CQE and CSSBB bodies of knowledge list Shewhart, short-run and moving-average charts by name, not CUSUM or EWMA. ASQ says that subtext is not a complete list, so know these charts as the standard answer to “detect a small, lasting shift”.
- Control limits are not specification limits. An exam answer that treats a chart signal as a reject decision is a trap.
- Read the direction: an upper CUSUM signal means an upward shift; a lower one means a downward shift.
- Before interpreting any signal, find the target, the spread estimate, the subgroup size and the tuning values.
Eight mistakes that can ruin a sound analysis
Can you diagnose a downward shift without Minitab?
A filler has target 500 g and historical \(\sigma = 2\) g, with \(k = 0.5\) and \(h = 4\). The first six readings are all 497 g. Find \(K\), \(H\), the first three lower CUSUM sizes and the first sample that signals. Why does the upper tally stay at zero?
Worked solution
Lower sizes: 2, 4 and 6 g at samples 1–3. Sample 4 gives exactly 8 g, which is not beyond \(H\). Sample 5 gives 10 g, the first signal, plotted as \(-10\) g.
Upper tally: each reading adds \(497 - 500 - 1 = -4\) g, and \(\max(0,\ 0 - 4) = 0\). It can never grow.
So what? Five slightly low fills are enough evidence. Investigate the filler, not just the latest sample.
Try a full Minitab investigation
- Open the 100-row CSV and make both charts for each process.
- Before you look, predict: upward shift, downward shift, slow drift or one spike?
- Compare your first signals with the results table. Then change \(\lambda\) from 0.20 to 0.10 and to 0.40.
- For ore grade, make an I-MR chart and look at sample 45. In two sentences, explain why the I chart and the CUSUM disagree.
- Write a short action plan: baseline check, likely causes, evidence needed, and when to return to routine monitoring.
Knowledge check
Check your understanding
Comprehension quiz
Pick the strongest answer, then submit. Explanations appear after you submit.
One process. Two ways to catch a hidden change.
Remember these seven ideas
- CUSUM adds evidence; EWMA smooths it.
- CUSUM has separate upper and lower directions.
- EWMA weights the newest point by \(\lambda\).
- Justify the historical target and \(\sigma\).
- Control limits are not specification limits.
- An alarm does not name the root cause.
- Pair a spike chart with a shift chart.
If you suspect a small, lasting change
Check the baseline, then use CUSUM or EWMA tuned for the shift that matters and a false-alarm rate you can live with. If one extreme reading matters on its own, add an Individuals chart.
Next: choose \(k\), \(h\), \(\lambda\) and \(L\) with average run length in the Signal or Noise ARL lesson.
References and further study
- Minitab: CUSUM methods and formulas
- Minitab: CUSUM Plan/Type options
- Minitab: EWMA methods and formulas
- NIST/SEMATECH e-Handbook: CUSUM control charts
- NIST/SEMATECH e-Handbook: EWMA control charts
Where the charts come from: two charts are screenshots from the supplied Minitab project. The rest are recalculated in this page from the same 100-row CSV. All data is made up for teaching.