Date post: | 15-Feb-2016 |
Category: |
Documents |
Upload: | akshay-aggarwal |
View: | 32 times |
Download: | 1 times |
Notes on using the forecasting template:
All values in blue cells are to be entered by the user, all other values are automatically calculated, and do not need to be altered. Most often this is the Actual column. Each forecast model has a sample value set entered, make sure to clear all values before proceeding with your own data.
Cells with red marks in the upper right corner have comments, let the mouse hover over those cells to read the comments to further explain the template model.
This spreadsheet is locked/protected in order to keep the cells with equations from being changed. If a model does need to be altered, the spreadsheet first needs to be unlocked/unprotected. Do this by selecting the workbook you wish to unlock, click on "Tools", highlight "Protection", and select "Unprotect Sheet". The sheet will then be unlocked so alterations can be made.
Equations for models will be given when available.
Notes on using the forecasting template:
All values in blue cells are to be entered by the user, all other values are automatically calculated, and do not need to be altered. Most often this is the Actual column. Each forecast model has a sample value set entered, make sure to clear all values before proceeding with your own data.
Cells with red marks in the upper right corner have comments, let the mouse hover over those cells to read the comments to further explain the template model.
This spreadsheet is locked/protected in order to keep the cells with equations from being changed. If a model does need to be altered, the spreadsheet first needs to be unlocked/unprotected. Do this by selecting the workbook you wish to unlock, click on "Tools", highlight "Protection", and select "Unprotect Sheet". The sheet will then be unlocked so alterations can be made.
Equations for models will be given when available.
Weighted Moving Average (3 period)
Weight 3 Weight 2 Weight 1Least Recent Most Recent
MAD #DIV/0! ERRORMSE 0 Weights must total 1
Period Actual Forecast Error1234 05 06 07 08 09 0
10 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 0
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Actual Forecast Period
Weighted Moving Average
As opposed to the Simple Moving Average which gives equal weight to each of the preceding values, the 3-period Weighted Moving Average allows you to give a higher or lower weight to each of the three previous periods. The number of periods is fixed at 3, and the sum of the weights must equal 1. If all the weights are equal (for the 3-period 0.33) this is the same as a 3 period moving average. A 2-period, 4-period or n-period weighted moving average would follow the same logic.
3-Period Weighted Moving AverageF t = Forecast for period t (or the coming period )A t-1 = Actual demand in period t-1 ( or the previous period )w = WeightF t=w1 A t−1+w2 A t−2+w3 A t−3
1=w1+w2+w3
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Actual Forecast Period
Weighted Moving Average
As opposed to the Simple Moving Average which gives equal weight to each of the preceding values, the 3-period Weighted Moving Average allows you to give a higher or lower weight to each of the three previous periods. The number of periods is fixed at 3, and the sum of the weights must equal 1. If all the weights are equal (for the 3-period 0.33) this is the same as a 3 period moving average. A 2-period, 4-period or n-period weighted moving average would follow the same logic.
3-Period Weighted Moving AverageF t = Forecast for period t (or the coming period )A t-1 = Actual demand in period t-1 ( or the previous period )w = WeightF t=w1 A t−1+w2 A t−2+w3 A t−3
1=w1+w2+w3
Single Exponential Smoothing
α 0.5
MAD #DIV/0!MSE 0
Period Actual Forecast Error123456789
1011121314151617181920212223242526272829303132333435363738394041
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
2
4
6
8
10
12
Actual Forecast Period
Single Exponential Smoothing
The problem with the previous two methods, Simple Moving Average and Weighted Moving Average is that a large amount of historical data is required. With Single Exponential Smoothing the oldest piece of data is eliminated once a new piece has been added. The forecast is calculated by using the previous forecast, as well as the previous actual value with a weighting or smoothing factor, alpha. Alpha can never to be greater than 1 and higher values of alpha put more weight on the most recent periods. Note on the equations below the similarity to the 3-period weighted moving average.
Simple Exponential SmoothingF t = Forecast for period t ( or the coming period )F t-1 = Forecast for period t-1 (or the previous period )A t-1 = Actual demand in period t-1 (or the previous period )α = Smoothing constant
F t=α*A t−1+ (1−α )*Ft−1
andF t−1=α*A t−2+(1−α )*F t−2
substituting F t−1 i nto the equation for F t
F t=α*A t−1+ (1−α )∗[α*A t−2+(1−α )*F t−2 ]substituting F t−2 i nto the equation for F t
F t=α*A t−1+ (1−α )∗[α*At−2+(1−α )∗{α*A t−3+(1−α )*F t−3 }]simplifying
F t=α*A t−1+ [ (1−α )*α ] *At−2+ [ (1−α )∗(1−α ) *α ]*At−3+ (1−α )3
*F t−3
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
2
4
6
8
10
12
Actual Forecast Period
Single Exponential Smoothing
The problem with the previous two methods, Simple Moving Average and Weighted Moving Average is that a large amount of historical data is required. With Single Exponential Smoothing the oldest piece of data is eliminated once a new piece has been added. The forecast is calculated by using the previous forecast, as well as the previous actual value with a weighting or smoothing factor, alpha. Alpha can never to be greater than 1 and higher values of alpha put more weight on the most recent periods. Note on the equations below the similarity to the 3-period weighted moving average.
Simple Exponential SmoothingF t = Forecast for period t ( or the coming period )F t-1 = Forecast for period t-1 (or the previous period )A t-1 = Actual demand in period t-1 (or the previous period )α = Smoothing constant
F t=α*A t−1+ (1−α )*Ft−1
andF t−1=α*A t−2+(1−α )*F t−2
substituting F t−1 i nto the equation for F t
F t=α*A t−1+ (1−α )∗[α*A t−2+(1−α )*F t−2 ]substituting F t−2 i nto the equation for F t
F t=α*A t−1+ (1−α )∗[α*At−2+(1−α )∗{α*A t−3+(1−α )*F t−3 }]simplifying
F t=α*A t−1+ [ (1−α )*α ] *At−2+ [ (1−α )∗(1−α ) *α ]*At−3+ (1−α )3
*F t−3
Trend Adjusted Exponential Smoothing
α δ
MAD 1MSE #DIV/0!
Period Actual Level Trend Forecast Error1 88 88 12 90 89 1 89 13 1 904 1 915 1 926 1 947 1 958 1 969 1 97
10 1 9811 1 10012 1 10113 1 10214 1 10315 1 10416 1 10617 1 10718 1 10819 1 10920 1 11021 1 11222 1 11323 1 11424 1 11525 1 11626 1 11827 1 11928 1 12029 1 12130 1 12231 1 12432 1 12533 1 12634 1 12735 1 12836 1 13037 1 13138 1 13239 1 13340 1 13441 1 136
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 580
20
40
60
80
100
120
140
160
180
Actual Forecast Period
Trend Adjusted Exponential Smoothing
Single Exponential Smoothing assumes that the data fluctuate around a reasonably stable mean (no trend or consistent pattern of growth or decline). If the data contains a trend, the Trend Adjusted Exponential Smoothing model should be used.
Trend Adjusted Exponential Smoothing works much like simple smoothing except that two components must be updated each period: level and trend. The level is a smoothed estimate of the value of the data at the end of each period. The trend is a smoothed estimate of average growth at the end of each period. Again, the weighting or smoothing factors, alpha and delta can never exceed 1 and higher values put more weight on more recent time periods.
Trend adjusted exponential smoothing
F t = The exponentially smoothed forecast for period tT t = The exponentially smoothed trend for period tFIT t = The forecast including trend for period tFIT t-1 = The forecast including trend made for the prior periodA t-1 = The actual demand for the prior periodα = Smoothing constant alphaδ = Smoothing constant deltaFIT t=F t+T t
F t=FIT t−1+α ( A t−1−FIT t−1 )T t=T t−1+δ (F t−1−FIT t−1)
42 1 13743 1 13844 1 13945 1 14046 1 14247 1 14348 1 14449 1 14550 1 14651 1 14852 1 14953 1 15054 1 15155 1 15256 1 15457 1 15558 1 15659 1 15760 1 158
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 580
20
40
60
80
100
120
140
160
180
Actual Forecast Period
Trend Adjusted Exponential Smoothing
Single Exponential Smoothing assumes that the data fluctuate around a reasonably stable mean (no trend or consistent pattern of growth or decline). If the data contains a trend, the Trend Adjusted Exponential Smoothing model should be used.
Trend Adjusted Exponential Smoothing works much like simple smoothing except that two components must be updated each period: level and trend. The level is a smoothed estimate of the value of the data at the end of each period. The trend is a smoothed estimate of average growth at the end of each period. Again, the weighting or smoothing factors, alpha and delta can never exceed 1 and higher values put more weight on more recent time periods.
Trend adjusted exponential smoothing
F t = The exponentially smoothed forecast for period tT t = The exponentially smoothed trend for period tFIT t = The forecast including trend for period tFIT t-1 = The forecast including trend made for the prior periodA t-1 = The actual demand for the prior periodα = Smoothing constant alphaδ = Smoothing constant deltaFIT t=F t+T t
F t=FIT t−1+α ( A t−1−FIT t−1 )T t=T t−1+δ (F t−1−FIT t−1)
Trend and Seasonal Effects
Level Trend Season
α δ γ
MAD Err:502 Initial Seasonal ValuesMSE Err:502 Err:502 Err:502 Err:502 Err:502
Please enter at least 4 valuesPeriod Actual Level Trend Season Forecast Error
1 Err:502 Err:502 Err:5022 #VALUE! Err:502 Err:5023 #VALUE! #VALUE! #VALUE!4 #VALUE! #VALUE! #VALUE!56789
10111213141516171819202122232425262728293031323334353637383940
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 580
2
4
6
8
10
12
Actual Forecast Period
Trend and Seasonal Effects
The Trend and Seasonal forecasting model is an extension of the Trend Adjusted Exponential Smoothing model. In addition to a trend, the model also adds a smoothed adjustment for seasonality. This template is a quarterly model, where the number of seasons is set to 4. There are three smoothing constants associated with this model. Alpha is the smoothing constant for the basic level, delta smoothes the trend, and gamma smoothes the seasonal index. Again, the weighting or smoothing factors, alpha, delta and gamma can never exceed 1 and higher values put more weight on more recent time periods.
Note: For initial calculations, when St-4 has not yet been calculated, the Initial Seasonal Values are used. The calculation for these is done further down on the page, starting on cell A73.
Winter's Model with Trend and Seasonal EffectsF t = Forecast for current periodLt = Current level valueLt-1 = Level value from previous periodT t = Current trend valueT t-1 = Trend value from previous periodS t = Current seasonal valueS t-1 = Seasonal value from previous periodS t-4 = Seasonal value from previous season (1 year ago = 4 periods )A t = Current demand ( time t )α = Smoothing constant alphaδ = Smoothing constant deltaγ = Smoothing constant gamma
Lt=α⋅A t
St−4+ (1−α ) (Lt−1+T t−1 )
T t=δ ( Lt−Lt−1 )+(1−δ )⋅T t−1
St=γA t
Lt+(1−γ )⋅S t−1
F t=(Lt−1+T t−1 )⋅St−4
4142434445464748495051525354555657585960
This area is used to compute 'initial seasonal values' due to their complexity
Number of full years (set of 4 seasons) 0
PeriodYear Average Year 1 2 3 4
1 0 1 0 0 0 02 0 2 0 0 0 03 0 3 0 0 0 04 0 4 0 0 0 05 0 5 0 0 0 06 0 6 0 0 0 07 0 7 0 0 0 08 0 8 0 0 0 09 0 9 0 0 0 0
10 0 10 0 0 0 011 0 11 0 0 0 012 0 12 0 0 0 013 0 13 0 0 0 014 0 14 0 0 0 015 0 15 0 0 0 0
The Trend and Seasonal forecasting model is an extension of the Trend Adjusted Exponential Smoothing model. In addition to a trend, the model also adds a smoothed adjustment for seasonality. This template is a quarterly model, where the number of seasons is set to 4. There are three smoothing constants associated with this model. Alpha is the smoothing constant for the basic level, delta smoothes the trend, and gamma smoothes the seasonal index. Again, the weighting or smoothing factors, alpha, delta and gamma can never exceed 1 and higher values put more weight on more recent time periods.
Note: For initial calculations, when St-4 has not yet been calculated, the Initial Seasonal Values are used. The calculation for these is done further down on the page, starting on cell A73.
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 580
2
4
6
8
10
12
Actual Forecast Period
Trend and Seasonal Effects
The Trend and Seasonal forecasting model is an extension of the Trend Adjusted Exponential Smoothing model. In addition to a trend, the model also adds a smoothed adjustment for seasonality. This template is a quarterly model, where the number of seasons is set to 4. There are three smoothing constants associated with this model. Alpha is the smoothing constant for the basic level, delta smoothes the trend, and gamma smoothes the seasonal index. Again, the weighting or smoothing factors, alpha, delta and gamma can never exceed 1 and higher values put more weight on more recent time periods.
Note: For initial calculations, when St-4 has not yet been calculated, the Initial Seasonal Values are used. The calculation for these is done further down on the page, starting on cell A73.
Winter's Model with Trend and Seasonal EffectsF t = Forecast for current periodLt = Current level valueLt-1 = Level value from previous periodT t = Current trend valueT t-1 = Trend value from previous periodS t = Current seasonal valueS t-1 = Seasonal value from previous periodS t-4 = Seasonal value from previous season (1 year ago = 4 periods )A t = Current demand ( time t )α = Smoothing constant alphaδ = Smoothing constant deltaγ = Smoothing constant gamma
Lt=α⋅A t
St−4+ (1−α ) (Lt−1+T t−1 )
T t=δ ( Lt−Lt−1 )+ (1−δ )⋅T t−1
St=γA t
Lt+(1−γ )⋅S t−1
F t=(Lt−1+T t−1 )⋅St−4
The Trend and Seasonal forecasting model is an extension of the Trend Adjusted Exponential Smoothing model. In addition to a trend, the model also adds a smoothed adjustment for seasonality. This template is a quarterly model, where the number of seasons is set to 4. There are three smoothing constants associated with this model. Alpha is the smoothing constant for the basic level, delta smoothes the trend, and gamma smoothes the seasonal index. Again, the weighting or smoothing factors, alpha, delta and gamma can never exceed 1 and higher values put more weight on more recent time periods.
Note: For initial calculations, when St-4 has not yet been calculated, the Initial Seasonal Values are used. The calculation for these is done further down on the page, starting on cell A73.
Linear Trend
Intercept Slope#VALUE! #VALUE!
MAD #DIV/0!MSE 0
Period Actual Forecast Error123456789
1011121314151617181920212223242526272829303132333435363738394041
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
2
4
6
8
10
12
Actual Forecast Period
Linear Trend
The Linear Trend method can be used if the data contains a trend (consistent pattern of growth or decline). The forecasts are calculated using least squares regression to fit a straight line to the data. This line can be extrapolated into the future to obtain the forecast.
Linear Trend
F t = Forecast for period tb = Y interceptm = Slopet = Time period of interest ( t=1 for the first time period )
F t=mt+b
To find m and bA = Actual demandA = Average of all actual demandst = Time periodt = Average of time periods
m=∑ (t − t ) ( A− A )
∑ (t− t )2
b= A−m t
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 590
2
4
6
8
10
12
Actual Forecast Period
Linear Trend
The Linear Trend method can be used if the data contains a trend (consistent pattern of growth or decline). The forecasts are calculated using least squares regression to fit a straight line to the data. This line can be extrapolated into the future to obtain the forecast.
Linear Trend
F t = Forecast for period tb = Y interceptm = Slopet = Time period of interest ( t=1 for the first time period )
F t=mt+b
To find m and bA = Actual demandA = Average of all actual demandst = Time periodt = Average of time periods
m=∑ (t − t ) ( A− A )
∑ (t− t )2
b= A−m t