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 Choose λ Often 0.2.
Update the EWMA daily
Limits
Investigate
What the letters mean
CUSUM Cumulative sum chart: adds up differences from the target to catch small shifts
EWMA Exponentially weighted moving average chart
λ Lambda: the power a Box-Cox transformation raises the data to
σ · μ Sigma, the standard deviation; mu, the target or true average
°C Degrees Celsius
± Plus or minus: the allowed range either side
÷ × Divided by, multiplied by Worked example The situation. Daily temperature of a cold store, target 4 °C, σ = 0.5, λ = 0.2.
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.
Day Value EWMA 1 4.2 4.04 2 4.5 4.13 3 4.6 4.23 4 4.7 4.32 5 4.8 4.42
Filled in for: Daily temperature of a cold store, target 4 °C, σ = 0.5, λ = 0.2.
Period Value EWMA Upper limit Lower 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 Check If it fails A known target and standard deviation Estimate 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 dataCatching 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 limits 0 2 4 6 8 CL UCL LCL Day 1: 4.3 Day 2: 4.1 Day 3: 4.6 Day 4: 4.3 Day 5: 3.9 Day 6: 4.4 Day 7: 4.9 Day 8: 4.7 Day 9: 3.8 Day 10: 3.5 Day 11: 3.9 Day 12: 4.2 Day 13: 2.9 Day 14: 4.1 Day 15: 3.5 Day 16: 4.3 Day 17: 4.5 Day 18: 4.6 Day 19: 5 Day 20: 5.3 Day 21: 4.7 Day 22: 5.5 Day 23: 4.4 Day 24: 4.9 Day 25: 5.2 Day 26: 4.8 Day 27: 4.3 Day 28: 4.2 Day 29: 4.5 Day 30: 4.9 Day 1 Day 5 Day 9 Day 13 Day 17 Day 21 Day 25 Day 29 Daily average wait EWMA chart: crosses its limit on day 25 0 2 4 6 8 CL UCL Day 1: 4.22 Day 2: 4.2 Day 3: 4.28 Day 4: 4.28 Day 5: 4.21 Day 6: 4.24 Day 7: 4.38 Day 8: 4.44 Day 9: 4.31 Day 10: 4.15 Day 11: 4.1 Day 12: 4.12 Day 13: 3.88 Day 14: 3.92 Day 15: 3.84 Day 16: 3.93 Day 17: 4.04 Day 18: 4.15 Day 19: 4.32 Day 20: 4.52 Day 21: 4.56 Day 22: 4.74 Day 23: 4.68 Day 24: 4.72 Day 25: 4.82 (outside the limits) Day 26: 4.81 (outside the limits) Day 27: 4.71 Day 28: 4.61 Day 29: 4.59 Day 30: 4.65 Day 1 Day 5 Day 9 Day 13 Day 17 Day 21 Day 25 Day 29 EWMA
Step by step Individuals chart limits 4.2 ± 3 × 0.55 = 2.55 to 5.85 = no signal at all EWMA each day: 0.2 × today + 0.8 × yesterday's EWMA, starting at 4.2 EWMA limit 4.2 + 3 × 0.55 × √(0.2 ÷ 1.8 × (1 − 0.8^(2 × day))) = 4.75 after a few days EWMA signal day 25: 4.82 above 4.75 CUSUM each day: add (today − 4.2 − 0.275) to the running total, never below 0 = reference k = 0.5 × σ CUSUM signal total above h = 4 × 0.55 = 2.2 = day 22
Day Daily average wait EWMA EWMA upper limit CUSUM Day 1 4.3 4.22 4.53 0 Day 2 4.1 4.2 4.62 0 Day 3 4.6 4.28 4.67 0.12 Day 4 4.3 4.28 4.7 0 Day 5 3.9 4.21 4.72 0 Day 6 4.4 4.24 4.73 0 Day 7 4.9 4.38 4.74 0.43 Day 8 4.7 4.44 4.74 0.65 Day 9 3.8 4.31 4.75 0 Day 10 3.5 4.15 4.75 0 Day 11 3.9 4.1 4.75 0 Day 12 4.2 4.12 4.75 0 Day 13 2.9 3.88 4.75 0 Day 14 4.1 3.92 4.75 0 Day 15 3.5 3.84 4.75 0 Day 16 4.3 3.93 4.75 0 Day 17 4.5 4.04 4.75 0.02 Day 18 4.6 4.15 4.75 0.15 Day 19 5 4.32 4.75 0.67 Day 20 5.3 4.52 4.75 1.5 Day 21 4.7 4.56 4.75 1.72 Day 22 5.5 4.74 4.75 2.75 Day 23 4.4 4.68 4.75 2.67 Day 24 4.9 4.72 4.75 3.1 Day 25 5.2 4.82 4.75 3.82 Day 26 4.8 4.81 4.75 4.15 Day 27 4.3 4.71 4.75 3.97 Day 28 4.2 4.61 4.75 3.7 Day 29 4.5 4.59 4.75 3.72 Day 30 4.9 4.65 4.75 4.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.
← All techniques and tools