How to make an EWMA chart
- Copy the measurement column with its header and paste it in.
- Choose the measurement column and set λ (default 0.2) and L (default 3). Turn on 'Specify target mean' if you have a target value.
- Click Analyze and review the EWMA chart, the zoomed initial period 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 λ=0.2 and L=3 around the center line of 20.52, the limits start narrow and widen to a constant UCL of about 21.05 and LCL of about 19.98.
Points 36, 37 and 40 are upward signals where the EWMA is above the UCL. Points 8 and 23 are downward signals below the LCL: the center line is a mean that includes the later, higher data, so the early part looks low by comparison.
When limits are set from data that already contain a shift, signals can appear on both sides; if you know the stable level, enter it as the target mean.
How it is calculated
zᵢ = λ·xᵢ + (1-λ)·zᵢ₋₁ with z₀ = the target mean (the data mean if not given). σ is the mean moving range / 1.128, and the limits are target ± L·σ·√(λ/(2-λ)·(1-(1-λ)²ⁱ)), narrow at first and widening to a constant.
Signals come only from points beyond the limits (rule 1).
What the results show
The full EWMA chart and a zoom on the first 20 points, where the limits widen.
How to read an EWMA chart
- An EWMA beyond the limits signals that the process mean has moved away from the target.
- A smaller λ is more sensitive to small shifts; a larger λ reacts faster to large ones (λ = 1 is the same as an individuals chart).
- The limits are narrow for the first few points, so check early signals on the zoomed chart.
Frequently asked questions
How do I choose λ and L?
λ = 0.05-0.25 and L = 2.7-3 are common. Use a smaller λ to find smaller shifts.
How is it different from CUSUM?
Both are sensitive to small shifts. EWMA uses a weighted average; CUSUM uses the cumulative sum of deviations from the target.
When should I specify the target mean?
When the process has a target value, use it as the center line; otherwise the data mean is used.