Statistical Methods in Economics II

Online BA · Sem 3

Lesson 10 of 11Economics

Time Series Trend: Moving Average and Least Squares

Statistical Methods in Economics II

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 is its long-term movement. Two standard ways to estimate it are the moving average method, which uses odd or even periods with centring, and the least squares method, which fits a straight line y = a + bx.

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

  • Add the first 3 values to get a moving total; place it against the middle year.
  • Drop the first value and add the next value; repeat to the end of the series.
  • Divide each moving total by 3 to get the trend values.
  • No trend value exists for the first and last years.

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

  • Compute 4-year moving totals; they fall between two years.
  • Add pairs of consecutive 4-year totals to get 2-period centred totals.
  • Divide by 8 to get centred trend values aligned with the actual years.
  • Two values are lost at each end.

Least squares (straight line)

  • Fit y = a + bx, with x measured as a deviation from an origin year, usually the middle year.
  • Normal equations: sum(y) = n*a + b*sum(x); sum(xy) = a*sum(x) + b*sum(x^2).
  • If the origin is the middle year, sum(x) = 0, so a = sum(y)/n and b = sum(xy)/sum(x^2).
  • Trend value for each year = a + b*x; successive trend values rise by b each year.

Key terms

Secular trend
The long-term general direction of a time series.
Moving average
An average of consecutive overlapping groups of values, used to smooth fluctuations.
Centring
Averaging pairs of even-period moving averages so the results align with actual time points.
Normal equations
Equations whose solution gives the least squares values of a and b.
Least squares method
Fits the line that minimises the sum of squared deviations of observed values from trend values.

Takeaways

  • Odd-period moving averages centre automatically; even-period ones need centring.
  • Taking the middle year as origin makes sum(x) = 0, which simplifies a and b.
  • Trend value = a + b*x, where b is the annual change.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.