Data and statistics · cheat sheet

EWMA chart

A chart of a weighted average that gives most weight to recent values and less to older ones, which smooths noise and shows small shifts.

Common practice
4 steps
Used by Process Improvement Specialist

What it is

An EWMA chart plots a weighted average where each new value counts for λ and the previous average for 1 − λ, so old values fade gradually.

When to use it

When you want to detect small shifts, or the data is noisy or slightly skewed.

Why it works

It smooths noise and reveals small shifts, and copes better than individuals charts with slightly skewed data.

Do

  • λ between 0.1 and 0.3 suits most uses.

Don't

  • Choosing λ too large (close to an ordinary chart) or too small (slow to react).

Step by step

  1. Choose λ Often 0.2.
  2. Update the EWMA daily
  3. Limits
  4. Investigate
Also called: Exponentially weighted moving average chartPrint the blank template ↗

Worked example

The situation. Daily temperature of a cold store, target 4 °C, σ = 0.5, λ = 0.2.

  1. Steady limit: 4 ± 3 × 0.5 × √(0.2 ÷ 1.8) = 4 ± 0.5.

The result. If the rise continues, the EWMA reaches 4.5 within a few days, while each single day is still inside 2.5 to 5.5.

EWMA worksheet Print blank
DayValueEWMA
14.24.04
24.54.13
34.64.23
44.74.32
54.84.42

Filled in for: Daily temperature of a cold store, target 4 °C, σ = 0.5, λ = 0.2.

PeriodValueEWMAUpper limitLower limit

Copy this structure, or print the blank version and fill it in by hand. EWMA = λ × value + (1 − λ) × previous EWMA · λ ______

Before you use it: check these

CheckIf it fails
A known target and standard deviationEstimate them from a stable period first

How to do it with real data

The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.

Worked example with real data

Catching a small drift: EWMA and CUSUM

From Day 52: A slow drift of the Process Improvement Specialist story

After week 8 of roll-out, the locum covering two sessions starts cancelling some of them. The daily average wait creeps up by about half a day. Target 4.2 days, standard deviation 0.55.

Individuals chart: no point outside the limits02468CLUCLLCLDay 1: 4.3Day 2: 4.1Day 3: 4.6Day 4: 4.3Day 5: 3.9Day 6: 4.4Day 7: 4.9Day 8: 4.7Day 9: 3.8Day 10: 3.5Day 11: 3.9Day 12: 4.2Day 13: 2.9Day 14: 4.1Day 15: 3.5Day 16: 4.3Day 17: 4.5Day 18: 4.6Day 19: 5Day 20: 5.3Day 21: 4.7Day 22: 5.5Day 23: 4.4Day 24: 4.9Day 25: 5.2Day 26: 4.8Day 27: 4.3Day 28: 4.2Day 29: 4.5Day 30: 4.9Day 1Day 5Day 9Day 13Day 17Day 21Day 25Day 29Daily average waitEWMA chart: crosses its limit on day 2502468CLUCLDay 1: 4.22Day 2: 4.2Day 3: 4.28Day 4: 4.28Day 5: 4.21Day 6: 4.24Day 7: 4.38Day 8: 4.44Day 9: 4.31Day 10: 4.15Day 11: 4.1Day 12: 4.12Day 13: 3.88Day 14: 3.92Day 15: 3.84Day 16: 3.93Day 17: 4.04Day 18: 4.15Day 19: 4.32Day 20: 4.52Day 21: 4.56Day 22: 4.74Day 23: 4.68Day 24: 4.72Day 25: 4.82 (outside the limits)Day 26: 4.81 (outside the limits)Day 27: 4.71Day 28: 4.61Day 29: 4.59Day 30: 4.65Day 1Day 5Day 9Day 13Day 17Day 21Day 25Day 29EWMA

Step by step

  1. Individuals chartlimits 4.2 ± 3 × 0.55 = 2.55 to 5.85= no signal at all
  2. EWMAeach day: 0.2 × today + 0.8 × yesterday's EWMA, starting at 4.2
  3. EWMA limit4.2 + 3 × 0.55 × √(0.2 ÷ 1.8 × (1 − 0.8^(2 × day)))= 4.75 after a few days
  4. EWMA signalday 25: 4.82 above 4.75
  5. CUSUMeach day: add (today − 4.2 − 0.275) to the running total, never below 0= reference k = 0.5 × σ
  6. CUSUM signaltotal above h = 4 × 0.55 = 2.2= day 22
DayDaily average waitEWMAEWMA upper limitCUSUM
Day 14.34.224.530
Day 24.14.24.620
Day 34.64.284.670.12
Day 44.34.284.70
Day 53.94.214.720
Day 64.44.244.730
Day 74.94.384.740.43
Day 84.74.444.740.65
Day 93.84.314.750
Day 103.54.154.750
Day 113.94.14.750
Day 124.24.124.750
Day 132.93.884.750
Day 144.13.924.750
Day 153.53.844.750
Day 164.33.934.750
Day 174.54.044.750.02
Day 184.64.154.750.15
Day 1954.324.750.67
Day 205.34.524.751.5
Day 214.74.564.751.72
Day 225.54.744.752.75
Day 234.44.684.752.67
Day 244.94.724.753.1
Day 255.24.824.753.82
Day 264.84.814.754.15
Day 274.34.714.753.97
Day 284.24.614.753.7
Day 294.54.594.753.72
Day 304.94.654.754.15

How to read the result

The individuals chart never signals, because each day is still inside its limits. EWMA and CUSUM add up small differences over time and catch the drift within about 7 to 10 days of it starting.

What it led to

Aurelie (Practice Nurse Manager) finds the cancelled locum sessions and books a second locum. Add a CUSUM on the daily average wait to the control plan.

Do it in a spreadsheet

EWMA=0.2*B3+0.8*C2 (C2 starts at 4.2)
EWMA limit=4.2+3*0.55*SQRT(0.2/1.8*(1-0.8^(2*ROW()-2)))
CUSUM=MAX(0,E2+B3-4.2-0.275)
Try it yourself: Why not just use a more sensitive individuals chart with limits at 2 standard deviations?

Tighter limits give many more false alarms on normal days. EWMA and CUSUM detect small sustained shifts without that cost.

In the roles

How a Process Improvement Specialist uses it

λ = 0.2: the EWMA crosses its limit (4.75) on day 25, ten days after the drift began.

Questions people ask

EWMA or CUSUM?

Both catch small shifts; EWMA is easier to explain, CUSUM slightly quicker for a known shift size.

Related techniques

← All techniques and tools