Escolar Documentos
Profissional Documentos
Cultura Documentos
Models
With
Trend and Seasonal Effects
Multiplicative Model
yt = TtStt
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
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:
yt = 0 + 1t + 2S1 + 3S2 + 4S3 + 5S4 + t
Tt
St
Season 1:
Season 2:
Season 3:
Season 4:
S1 = 1, S2 = 0, S3 = 0, S4 = 0
S1 = 0, S2 = 1, S3 = 0 ,S4 = 0
S1 = 0, S2 = 0, S3 = 1, S4 = 0
S1 = 0, S2 = 0, S3 = 0, S4 = 0
Additive Model
Regression Forecasting Procedure
Season 1:
Season 2:
Season 3:
Season 4:
S1 = 1, S2 = 0, S3 = 0
S1 = 0, S2 = 1, S3 = 0
S1 = 0, S2 = 0, S3 = 1
S1 = 0, S2 = 0, S3 = 0
St
Example
Troys Mobil Station
Troy owns a gas station in a vacation resort city
that has many spring and summer visitors.
Due to a steady increase in population Troy feels that
average sales experience long term trend.
Troy also knows that sales vary by season due to the
vacationers.
2
3726
3589
3742
4050
3
3989
3870
3996
4327
4
5
4248 4443
4105 4307
4263 4466
4544 4795
Fall
Winter
Summer
Spring
The Model
There is also apparent long term trend.
The form of the model then is:
yt = 0 + 1t + 2F + 3W + 4S + t
Fall
Winter Spring
Pattern Repeats
Regression Intput
Regression Output
Conclusion
Good model all factors significant
The Forecasts
=$G$17+$G$18*B22+$G$19*C22+$G$20*D22+$G$21*E22
=SUM(F22:F25)
Run 2 models:
Full: Time + (3) Seasonal Variables
Reduced: Time Only
Test --- Reject H0 (Accept HA) if F > F,3,DFE(Full)
F = ((SSEREDUCED-SSEFULL)/3)/MSEFULL
So if F >F,3,DFE(Full) ---Include seasonal variables
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
Calculate:
Determine a deseasonalized
trend forecast.
Determine an adjusted
seasonal forecast.
yt
[Adjusted seasonal factors]t
Calculate:
(Desesonalized values)
[Adjusted seasonal factors]).
CANADIAN FACULTY
ASSOCIATION (CFA)
The CFA is the exclusive bargaining agent for
public Canadian college faculty.
Membership in the organization has grown over
the years, but in the summer months there was
always a decline.
To prepare the budget for the 2001 fiscal year, a
forecast of the average quarterly membership
covering the year 2001 was required.
CFA - Solution
Membership records from 1997 through 2000
were collected and graphed.
YEAR
PERIOD
YEAR
PERIOD
1997
1997
1998
1998
1999
1999
2000
2000
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
AVERAGE
AVERAGE
QUARTER MEMBERSHIP
QUARTER MEMBERSHIP
11
22
33
44
11
22
33
44
11
22
33
44
11
22
33
44
7130
7130
6940
6940
7354
7354
7556
7556
7673
7673
7332
7332
7662
7662
7809
7809
7872
7872
7551
7551
7989
7989
8143
8143
8167
8167
7902
7902
8268
8268
8436
8436
AverageDues
DuesPaying
PayingMembers
Members(payroll
(payrolldeduction)
deduction)
Average
9000
9000
8500
8500
8000
8000
7500
7500
7000
7000
6500
6500
1
1
2
2
3
3
1997
4
4
5
5
6
6
7
7
1998
8
8
9
P er i od
Per i od
10
10
11
11
1999
12
12
13
13
14
14
15
15
2000
16
16
Step 1:
Isolating the Trend Component
Smooth the time series to
remove random effects and
seasonality.
Average membership for the first 4 periods First moving average period is
centered at quarter (1+4)/ 2 = 2.5
= [7130+6940+7354+7556]/4 = 7245.01
Average membership for periods [2, 5]
= [6940+7354+7556+7673]/4 = 7380.75
Centered location is t = 3
Trend value at period 3, T3
=AVERAGE(C3:C6,C4:C7)
Drag down to D16
Step 2
Determining the Period Factors
Determine period factors
to isolate the
(Seasonal)(Random error)
factor.
St t = yt/Tt
Example:
In period 7 (3rd quarter of 1998):
S77= y7/T7 = 7662/7643.875 = 1.002371
=C5/D5
Drag down to E16
Step 3
Unadjusted Seasonal Factors
Determine the unadjusted
seasonal factors to eliminate
the random component from
the period factors
This eliminates the random factor from the period factors, S tt This
leaves us with only the seasonality component for each season.
Example: Unadjusted Seasonal Factor for the third quarter.
S3 = {S3,97 + S3,98 3,98 + S3,99 3,99}/3 = {1.0056+1.0024+1.0079}/3 = 1.0053
=AVERAGE(E3,E7,E11,E15)
Drag down to F6
Copy F3:F6
Paste Special(Values)
Step 4
Adjusted Seasonal Factors
Determine the adjusted
seasonal factors so that
average adjusted factor is 1
Calculate:
Unadjusted seasonal factors
Average seasonal factor
Quarter
1
2
3
4
Unadjusted
Seasonal Factor
1.01490
.96580
1.00533
1.01624
Adjusted
Seasonal Factor
1.014325
.965252
1.004759
1.015663
F3/AVERAGE($F$3:$F$6)
Drag down to G18
Step 5
The Deseasonalized Time Series
Determine Deseasonalized
data values.
Calculate:
yt
[Adjusted seasonal factors]t
=C3/G3
Drag to cell H18
Step 6
The Time Series Trend Component
Regress on the Deseasonalized Time Series
Determine a deseasonalized forecast from
the resulting regression equation
Run regression
Deseason vs. Period
=$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.
Period
17
18
19
20
Unadjusted
Forecast (t)
8402.55
8480.95
8559.36
8637.76
Adjusted
Seasonal Factor
1.014325
.965252
1.004759
1.015663
Adjusted
Forecast (t)
8522.92
8186.26
8600.09
8773.06
=I19*G3
Drag down to J22
Seasonally
Adjusted
Forecasts
Review
Use of Regression
Excel