Time-Series Analysis and Forecasting – Part IV To read at home
Method of moving average
Method of moving average consists in replacement of initial levels of series by the average values, which are calculated for the successively changing periods of time
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-4 Moving Averages Example: Five-year moving average First average: Second average: etc.
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-5 (2m+1)-Point Moving Average A series of arithmetic means over time Result depends upon choice of m (the number of data values in each average) Examples: For a 5 year moving average, m = 2 For a 7 year moving average, m = 3 Etc. Replace each x t with
19,3 20,5 22, ,6
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-7 YearSales etc… etc… … …
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-8 Calculating Moving Averages Each moving average is for a consecutive block of (2m+1) years YearSales Average Year 5-Year Moving Average …… etc… Let m = 2
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-9 Annual vs. Moving Average The 5-year moving average smoothes the data and shows the underlying trend
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Centered Moving Averages Let the time series have period s, where s is even number i.e., s = 4 for quarterly data and s = 12 for monthly data To obtain a centered s-point moving average series X t *: Form the s-point moving averages Form the centered s-point moving averages (continued)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Centered Moving Averages Used when an even number of values is used in the moving average Average periods of 2.5 or 3.5 dont match the original periods, so we average two consecutive moving averages to get centered moving averages Average Period 4-Quarter Moving Average Centered Period Centered Moving Average etc…
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Calculating the Ratio-to-Moving Average Now estimate the seasonal impact Divide the actual sales value by the centered moving average for that period
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Calculating a Seasonal Index QuarterSales Centered Moving Average Ratio-to- Moving Average … … etc… … etc… …
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Calculating Seasonal Indexes QuarterSales Centered Moving Average Ratio-to- Moving Average … … etc… … etc… … 1.Find the median of all of the same-season values 2.Adjust so that the average over all seasons is 100 Fall (continued)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Interpreting Seasonal Indexes Suppose we get these seasonal indexes: Season Seasonal Index Spring0.825 Summer1.310 Fall0.920 Winter0.945 = four seasons, so must sum to 4 Spring sales average 82.5% of the annual average sales Summer sales are 31.0% higher than the annual average sales etc… Interpretation:
Analytical smoothing of time series
Levels of time series are considered as the function of time
The procedure of smoothing has 3 steps choice of the form of function; determination of parameters of the function; receiving the smoothed values of the levels of series on the basis of the function
Lets consider this method on the example of linear trend equation where a & b – parameters; t – time
The best way to use linear trend in cases, when the preliminary investigation shows, that levels of series change with approximately the same speed, i.e. when chain absolute increases are approximately equal
Parameters a & b are determined by the least square method LSM
The usage of LSM gives the following system of equations for determining the parameters:
The given system of equations can be significantly simplified, if we enumerate the time in the way, that
If the series contains odd number of levels, then the central level of series is enumerated as 0. Levels to the side of decrease of time are enumerated by -1;- 2;-3..., to the side of increase of time – by 1;2;3...
If the series contains even number of levels, then the closest levels to the center are enumerated by -1 and 1, then numeration is the same as with odd number of levels but only with the step 2:...-5,-3,-1,+1,+3,+5...
End of Part IV To be continued… Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 19-30