Skip to content

Mathematics and Statistics · Ch 12 — Time Series

Measurement of Trend: Method of Moving Averages

4

Measurement of Trend: Method of Moving Averages

The method of moving averages smooths a series by replacing each value with the average of itself and its neighbours, so that short-term fluctuations cancel out and the trend stands clear. A moving average of period kk is a series of successive arithmetic means, each taken over kk consecutive values; as we step one period forward in time, the oldest value is dropped and the next one added — the 'window' of kk values moves along the series.

Odd period (e.g. 3-yearly, 5-yearly). When kk is odd the average falls naturally against the middle year of the group, so no extra step is needed. For a 3-yearly moving average:

  • form the 3-yearly moving totals y1+y2+y3, y2+y3+y4, …y_1+y_2+y_3,\ y_2+y_3+y_4,\ \ldots;
  • divide each total by 33;
  • place each result against the middle year of its group.

The first and last years get no moving-average value.

Even period (e.g. 4-yearly). When kk is even, the average of a group falls between two years, not against any actual year, so a second smoothing — centering — is needed:

  • form the 4-yearly moving totals and write each between the middle two years;
  • add each pair of consecutive 4-yearly totals to get 2-item moving totals (this is the centering step);
  • divide these centered totals by 8 (=4×2= 4 \times 2) to get the centered 4-yearly moving average, which now falls against an actual year.
Note

Choosing the period

The period kk should match the length of the cycle you want to remove: choose a period equal to that cycle so a full up-and-down swing is averaged away. If the data show a periodicity of, say, 4 years, a 4-yearly moving average removes it best.

Tip

Merits and limitations …

Definition 1Moving average

A series of successive arithmetic means each computed over kk consecutive observations; the window of kk values moves one period forward at a time, smoothing …

Definition 2Centering

The extra averaging step used with an even period: consecutive moving totals are paired and added so the smoothed value falls against an actual time peri …