Statistics for Management

Online M.Com · Sem 1

Lesson 8 of 9

Time Series Trend: Moving Average and Least Squares

Statistics for Management

About the video

Time Series Analysis: Trend By Semi Average Method, Moving Average Method, Least Square Method

Dr. Rosha

Study notes

The trend of a time series can be measured by the moving average method or the least squares method. A moving average replaces each value with the average of a fixed number of consecutive values, with an extra centring step when the period is even. The least squares method fits a straight line Y = a + bX by solving the normal equations, with X measured as deviations from a chosen origin year.

Moving average: odd period (e.g. 3-yearly)

  • Find moving totals of 3 consecutive values: (y1+y2+y3), (y2+y3+y4), and so on.
  • Write each total against the middle year of its group.
  • Trend value (moving average) = moving total / 3.
  • No trend values exist for the first and last year, so data is lost at both ends.

Moving average: even period (e.g. 4-yearly)

  • Find 4-year moving totals. Each total falls between two years, not on a year.
  • Centre the totals: add each pair of adjacent 4-year totals to get 2-period moving totals of 4 years (8 terms in effect).
  • Trend value = centred total / 8. Each value is now placed against an actual year.
  • Alternatively, average the two neighbouring 4-year moving averages.

Least squares method (straight-line trend)

  • Trend equation: Y = a + bX.
  • Take X as the deviation from an origin year: X = year - origin, e.g. year - 1978. Choose the middle year as origin if none is given.
  • Normal equations: ΣY = na + bΣX and ΣXY = aΣX + bΣX^2.
  • If the origin is the middle year (odd n), ΣX = 0, so a = ΣY/n and b = ΣXY/ΣX^2.
  • If ΣX ≠ 0, solve the two normal equations simultaneously, for example by elimination.
  • Trend values: substitute each X into Y = a + bX, e.g. Y = 2.40 + 2.17X.

Key terms

Time series
Data recorded over successive time periods.
Trend (secular trend)
The long-term general movement of a time series.
Moving average
The average of a fixed number of consecutive values, moved forward one period at a time.
Centring
Averaging adjacent even-period moving averages so the trend values line up with actual time periods.
Normal equations
The equations whose solution gives a and b of the least squares line.
Origin year
The year taken as X = 0 when coding time.

Takeaways

  • Odd-period moving averages sit on the middle year; even-period ones must be centred.
  • Least squares line: Y = a + bX, from ΣY = na + bΣX and ΣXY = aΣX + bΣX^2.
  • Coding the middle year as the origin makes ΣX = 0 and simplifies the calculation.
  • Trend values are found by substituting X into the fitted equation.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.