Professional Documents
Culture Documents
Models
With
Trend and Seasonal Effects
Types of Seasonal Models
• Two possible models are:
Trend Effects
Seasonal Effects
Random Effects
Additive Model
Regression Forecasting Procedure
• Suppose a time series is modeled as having k seasons
(Here we illustrate k = 4 quarters)
– The following 4 equations represent time series value of 4
seasons
Season 1: yt = β0 + β1t + β2 + εt
Tt St εt
Season 2: yt = β0 + β1t + β3 + εt
Season 3: yt = β0 + β1t + β4 + εt
Season 4: yt = β0 + β1t + β5 + εt
Additive Model
Regression Forecasting Procedure
• Combining the 4 equations into one, we can use 4 dummy
variables, S1, S2, S3 and S4 corresponding to seasons 1, 2,
3 and 4 respectively:
Tt St εt
The combination of 0’s and 1’s for each of the dummy variables at each
period indicate the season corresponding to the time series value.
– Season 1: S1 = 1, S2 = 0, S3 = 0, S4 = 0
– Season 2: S1 = 0, S2 = 1, S3 = 0 ,S4 = 0
– Season 3: S1 = 0, S2 = 0, S3 = 1, S4 = 0
– Season 4: S1 = 0, S2 = 0, S3 = 0, S4 = 0
The combination of 0’s and 1’s for each of the dummy variables at each
period indicate the season corresponding to the time series value.
4800 Summer
4600
Fall
(1000's gallons)
Gasoline Sales
4400
4200
4000
3800
3600
3400
Spring
3200
Winter
3000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Period
Pattern Repeats
Regression Intput
Regression Output
Conclusion
Good model – all factors significant
Troy’s Mobil Station –
Performing the forecast
• The forecasting additive model is:
Ft = 3610.625 + 58.33t – 155F – 323W –
248.27S
=$G$17+$G$18*B22+$G$19*C22+$G$20*D22+$G$21*E22
=SUM(F22:F25)
Drag F22 down to F25
Multiplicative Model
Classical Decomposition Approach
• The time series is first decomposed into
its components (trend, seasonal
variation).
• After these components have been
determined, the series is re-composed by
multiplying the components.
Classical Decomposition
• Smooth the time series to • Calculate moving averages to
remove random effects and get values for Tt for each
seasonality and isolate trend. period t.
Calculate:
• Determine the “adjusted [Unadjusted seasonal factor]
seasonal factors”. [Average seasonal factor]
Stet = yt/Tt
Example:
In period 7 (3rd quarter of 1998):
S7ε7= y7/T7 = 7662/7643.875 = 1.002371
=C5/D5
Drag down to E16
Step 3
Unadjusted Seasonal Factors
This eliminates the random factor from the period factors, Stεt This
leaves us with only the seasonality component for each season.
Copy F3:F6
Paste Special(Values)
Step 4
Adjusted Seasonal Factors
• Determine the “adjusted Calculate:
seasonal factors” so that Unadjusted seasonal factors
average adjusted factor is 1 Average seasonal factor
Average seasonal factor =
(1.01490+.96580+1.00533+1.01624)/4=1.00057
Unadjusted Adjusted
Quarter Seasonal Factor Seasonal Factor
1 1.01490 1.014325
2 .96580 .965252
3 1.00533 1.004759
4 1.01624 1.015663
=$L$18+$L$19*B19
Drag to cell I22
Step 7
The Forecast
Re-seasonalize the forecast by multiplying
the unadjusted forecast by the adjusted
seasonal factor for each period.
Unadjusted Adjusted Adjusted
Period Forecast (t) Seasonal Factor Forecast (t)
17 8402.55 1.014325 8522.92
18 8480.95 .965252 8186.26
19 8559.36 1.004759 8600.09
20 8637.76 1.015663 8773.06
Seasonally
=I19*G3
Adjusted
Drag down to J22
Forecasts
Review
• Additive Model for Time Series with Trend and
Seasonal Effects
– Use of Dummy Variables
• 1 less than the number of seasons
– Use of Regression
• Modified F test if all p-values not < .05
• Excel