EWMA Chart (Exponentially Weighted Moving Average)

Updates an average by mixing the current value and the previous EWMA in the ratio λ. Older values fade exponentially, so it catches small, persistent shifts that an individuals chart misses.

1Data Table

Paste a table copied from Excel into a cell (Ctrl+V). Click a column header (A, B…) before pasting to use the first line as column names. Double-click a header to rename it, right-click to insert/delete rows and columns, and formulas such as =A1*2 work too.

2EWMA Chart Options

How to make an EWMA chart

  1. Copy the measurement column with its header and paste it in.
  2. Choose the measurement column and set λ (default 0.2) and L (default 3). Turn on 'Specify target mean' if you have a target value.
  3. 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.

EWMA chart - the weighted moving average with gradually widening limits
EWMA chart - the weighted moving average with gradually widening limits

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.

Other chart tools