How to make a moving average chart
- Copy the measurement column with its header and paste it in.
- Choose the measurement column and set the window size w (default 5).
- Click Analyze and review the raw values + moving average plot, the moving average chart 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 a window of w=5 the moving average has a standard deviation of 0.5248, 25.47% smaller than the raw values (0.7042), so the variation is smoothed.
The center line is 20.52, and the moving averages at points 28-30 (21.26-21.38) are above the UCL of 21.23.
The shift that began at point 25 builds up in the moving average and is detected a few points later. Compare when the EWMA and CUSUM charts detect it on the same data.
How it is calculated
The moving average MAᵢ is the mean of the last min(i, w) values. The center line is the overall mean, the process sigma σ is the mean moving range / 1.128, and the limits are mean ± 3σ/√(window size). The first w-1 points average fewer values, so their limits are wider.
Signals come only from points beyond the limits (rule 1).
What the results show
A plot of the raw values with the moving average overlaid (with how much the standard deviation dropped) and the moving average control chart.
How to read a moving average chart
- A moving average beyond the limits most likely means the process mean has shifted.
- A larger window gives a smoother line but detects changes later.
- Moving averages share values, so consecutive points naturally move together.
Frequently asked questions
How is it different from an EWMA chart?
A moving average weights the last w values equally; EWMA gives more weight to more recent values.
What window size should I use?
3-5 is common; use a larger window to detect smaller shifts.
How much data do I need?
At least 5 values.