Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Forecasting
Methods
Chapter 18
Time Series Analysis
Quantitative
Causal
Smoothing
Slide 1
Time Series
Trend
Projection
Trend Projection
Adjusted for
Seasonal Influence
Regression
Analysis
Qualitative
Slide 2
Slide 3
Slide 4
Trend Component
It represents a gradual shifting of a time series to
relatively higher or lower values over time.
Trend is usually the result of changes in the
population, demographics, technology, and/or
consumer preferences.
Cyclical Component
Any regular pattern of sequences of values above
and below the trend line lasting more than one
year can be attributed to the cyclical component.
Usually, this component is due to multiyear
cyclical movements in the economy.
Example, periods of moderate inflation followed
by periods of rapid inflation can lead to time
series that alternate below and above a generally
increasing trend line (e.g., a time series for
housing costs).
Slide 5
Slide 6
Slide 7
Seasonal Component
The seasonal component accounts for regular
patterns of variability within certain time periods,
such as a year.
The variability does not always correspond with
the seasons of the year (i.e. winter, spring,
summer, fall). There can be, for example, withinweek or within-day seasonal behavior.
Example, daily traffic volume data show withinthe-day seasonal behavior : peak levels (rush
hours), moderate flow, light flow.
Slide 8
Forecast Accuracy
Irregular Component
The irregular component is caused by short-term,
unanticipated and non-recurring factors that affect
the values of the time series.
This component is the residual, or catch-all,
factor that accounts for unexpected data values.
It is unpredictable.
MSE =
t =1
( yt y t ) 2
T
MAD =
t =1
| yt y t |
T
Slide 10
Smoothing Methods
Moving Averages
We use the average of the most recent n data
values in the time series as the forecast for the next
period.
The moving average calculation is
Moving Average = (most recent n data values)/n
Moving Averages
Weighted Moving Averages
Exponential Smoothing
Slide 11
Slide 12
Slide 13
Slide 14
Slide 15
Sales
110
115
125
120
125
Week
6
7
8
9
10
Sales
120
130
115
110
130
Slide 16
Week
Sales
1
2
3
4
5
6
7
8
9
10
11
110
115
125
120
125
120
130
115
110
130
3MA
Forecast
(110 + 115 + 125)/3
116.7
120.0
123.3
121.7
125.0
121.7
118.3
118.3
116.7
120.0
123.3
121.7
125.0
121.7
118.3
118.3
Slide 17
Slide 18
In general,
Ft + 1 = w1(Yt ) + w2(Yt - 1) + w3(Yt - 2) + ...
Exponential Smoothing
It is a special case of the weighted moving
averages method in which we select only the
weight for the most recent observation.
The weight placed on the most recent observation
is the value of the smoothing constant, .
The weights for the other data values are
computed automatically and become smaller at an
exponential rate as the observations become older.
Slide 19
Slide 20
Exponential Smoothing
Ft + 1 = Yt + (1 - )Ft
where
Exponential Smoothing
With some algebraic manipulation, we can rewrite
Ft+1 = Yt + (1 )Ft as:
Ft+1 = Ft + (Yt Ft)
Slide 21
Slide 22
Sales
110
115
125
120
125
Week
6
7
8
9
10
Sales
120
130
115
110
130
Slide 23
= 110
= 110
= 110.5
= 111.95
= 112.76
= 113.98
= 114.58
= 116.12
= 116.01
= 115.41
Slide 24
F1
= 110
F2 = .8(110) + .2(110) = 110
F3 = .8(115) + .2(110) = 114
F4 = .8(125) + .2(114) = 122.80
F5 = .8(120) + .2(122.80) = 120.56
F6 = .8(125) + .2(120.56) = 124.11
F7 = .8(120) + .2(124.11) = 120.82
F8 = .8(130) + .2(120.82) = 128.16
F9 = .8(115) + .2(128.16) = 117.63
F10= .8(110) + .2(117.63) = 111.53
Slide 25
Slide 26
Week
Yt
2
3
4
5
6
7
8
9
10
115
125
120
125
120
130
115
110
130
MSE
= .1
Ft
(Yt - Ft)2
110.00
110.50
111.95
112.76
113.98
114.58
116.12
116.01
115.41
25.00
210.25
64.80
149.94
36.25
237.73
1.26
36.12
212.87
Sum
974.22
Sum/9 108.25
= .8
Ft
(Yt - Ft)2
110.00
114.00
122.80
120.56
124.11
120.82
128.16
117.63
111.53
25.00
121.00
7.84
19.71
16.91
84.23
173.30
58.26
341.27
Sum
847.52
Sum/9 94.17
Slide 27
Slide 28
Slide 29
Slide 30
SPSS(Moving Average)
Transfer
Create Time Series
New Variable(s): sales
Function: Prior moving average
Span: 3
Change
OK
Slide 31
Slide 32
SPSS(Exponential Smoothing)
Questions
Analyze
Time Series
Exponential Smoothing
Variables: sales
Parameters
General (Alpha)
Value: 0.2
Initial Values:
Custom:
Starting: 17
Trend: 0
Continue
OK
Smoothing Parameters
Series
sales
Alpha (Level)
.20000
Sums of
Squared Errors
98.80454
df error
11
Slide 33
Slide 34
Questions
Slide 35
b1 = tYt - (t Yt)/n
t 2 - (t )2/n
b0 = (Yt/n) - b1t/n = Y - b1t
where
Yt = actual value in period t
n = number of periods in time series
Slide 37
Slide 38
40
30
20
Year
Sales
1
11
2
14
3
20
4
26
5
34
SALES
10
0
TIME
Slide 39
Slide 40
Total
t
1
2
3
4
5
15
Yt
11
14
20
26
34
105
tYt
11
28
60
104
170
373
Trend Projection
b1 = 373 - (15)(105)/5 = 5.8
55 - (15)2/5
t2
1
4
9
16
25
55
Slide 41
Slide 42
Slide 43
Slide 44
SPSS
SPSS
Analyze
Regression
Linear
Dependent: Sales
Independent (s): Week
OK
Model Summary
Model
R
R Square
1
.875a
.765
a. Predictors: (Constant), week
Adjusted R
Square
.735
Std. Error of
the Estimate
1.95895
Mean Square
99.825
3.838
F
26.013
ANOVA b
Model
1
Sum of Squares
Regression
99.825
Residual
30.700
Total
130.525
a. Predictors: (Constant), week
b. Dependent Variable: sales
(D): Sales
(I): Week
df
1
8
9
Coefficients
Unstandardized
Coefficients
Model
B
Std. Error
1
(Constant)
20.400
1.338
week
1.100
.216
a. Dependent Variable: sales
Standardized
Coefficients
Beta
.875
Slide 45
t
15.244
5.100
Sig.
.000
.001
Slide 46
Sig.
.001a
Multiplicative Model
Multiplicative Model
Calculating the Seasonal Indexes
Deseasonalizing the Time Series
Using the Deseasonalizing Time Series to Identify
Trend
Seasonal Adjustments
Cyclical Component
Slide 47
Slide 48
Slide 49
Slide 50
Seasonal Adjustments
Slide 51
Slide 52
Year
1
2
3
4
Season
1
2
1856 2012
1995 2168
2241 2306
2280 2408
3
985
1072
1105
1120
Slide 53
Slide 54
Slide 55
Slide 56
1
2
3
1
2
3
1
2
3
1
2
3
1856
2012
985
1995
2168
1072
2241
2306
1105
2280
2408
1120
1617.67
1664.00
1716.00
1745.00
1827.00
1873.00
1884.00
1897.00
1931.00
1936.00
Slide 57
Slide 58
1
2
3
1
2
3
1
2
3
1
2
3
1856
2012
985
1995
2168
1072
2241
2306
1105
2280
2408
1120
1617.67
1664.00
1716.00
1745.00
1827.00
1873.00
1884.00
1897.00
1931.00
1936.00
S tI t
2012/1617.67
1.244
.592
1.163
1.242
.587
1.196
1.224
.582
1.181
1.244
Slide 59
Slide 60
Moving
Dollar
Year Season Sales (Yt) Average
1
2
3
3.000
1
2
3
1
2
3
1
2
3
1
2
3
1856
2012
985
1995
2168
1072
2241
2306
1105
2280
2408
1120
1617.67
1664.00
1716.00
1745.00
1827.00
1873.00
1884.00
1897.00
1931.00
1936.00
S tI t
Scaled
St
1.178
1.236
.586
1.178
1.236
.586
1.178
1.236
.586
1.178
1.236
.586
1.244
.592
1.163
1.242
.587
1.196
1.224
.582
1.181
1.244
Slide 61
Slide 62
Moving
Dollar
Year Season Sales (Yt) Average
1
2
3
4
Slide 63
1
2
3
1
2
3
1
2
3
1
2
3
1856
2012
985
1995
2168
1072
2241
2306
1105
2280
2408
1120
1617.67
1664.00
1716.00
1745.00
1827.00
1873.00
1884.00
1897.00
1931.00
1936.00
S tI t
1.244
.592
1.163
1.242
.587
1.196
1.224
.582
1.181
1.244
Scaled
St Yt/St
1.178
1.236
.586
1.178
1.236
.586
1.178
1.236
.586
1.178
1.236
.586
1576
1628
1681
1694
1754
1829
1902
1866
1886
1935
1948
1911
Slide 64
Tt = 1580.11 + 33.96t
Slide 65
Slide 66
Slide 67
Slide 68
Slide 69
Slide 70
Slide 71
Slide 72
Slide 73
Slide 74
SPSS
Transfer
Create Time Series
New Variable(s): Sales
Function: Centered moving average
Span: 4
Change
OK
Slide 75
Slide 76
SPSS
SPSS
Analyze
Descriptive Statistics
Explore
Dependent List: SIV
Factor List: Quarter
OK
1.00
Mean
.93
2.00
Mean
.84
3.00
Mean
1.09
4.00
Mean
1.14
Slide 77
Slide 78
SPSS
SPSS
SI
0.93
0.84
1.09
1.14
.....
Transfer
Compute
Target Variable: SIS
Numeric Expression: SI/((0.93+0.84+1.09+1.14)/4)
OK
Slide 79
Transfer
Compute
Target Variable: DS
Numeric Expression: Sales / SIS
OK
Slide 80
SPSS
SPSS
1
Coefficients
Unstandardized
Coefficients
Model
B
Std. Error
1
(Constant)
5.105
.113
t
.148
.012
a. Dependent Variable: DS
3
....
16
Standardized
Coefficients
Beta
.959
t
45.072
12.601
Sig.
.000
.000
Analyze
Regression
Linear
Dependent: DS
Independent (s): t
OK
Slide 81
Slide 82
Cyclical Component
Slide 83
Yt = Tt Ct St I t
Slide 84
Regression Analysis
Regression Analysis
Slide 85
Slide 86
Regression Analysis
Regression Analysis
Slide 87
Slide 88
Regression Analysis
Period
(t)
Time Series
(Yt)
1
2
.
.
n
Y1
Y2
.
.
Yn
x21
x22
.
.
x2n
x31
x32
.
.
x3n
.
.
.
.
.
.
.
.
.
.
xk1
xk2
.
.
xkn
Slide 89
Slide 90
Autoregressive Processes
y t = + 1 y t 1 + 2 y t 2 + ... + p y t p + u t
y t = + i y t i + u t
s =
i =1
p
i
or y t = + i L y t + u t
i =1
for
s = 1,2,..., q
Slide 91
or ( L) y t = + u t
where ( L) = 1 (1 L + 2 L2 +... p Lp )
Slide 92
ARMA Processes
( L) y t = + ( L)u t
where
( L) = 1 1 L 2 L2 ... p Lp
and
( L) = 1 + 1 L + 2 L2 + ... + q Lq
or
y t = + 1 y t 1 + 2 y t 2 + ... + p y t p + 1u t 1 + 2 u t 2 + ... + q u t q + u t
with
E (u t ) = 0; E (u t2 ) = 2 ; E (u t u s ) = 0, t s
Box and Jenkins (1970) were the first to approach the task of
estimating an ARMA model in a systematic manner. There are
3 steps to their approach:
1. Identification
2. Estimation
3. Model diagnostic checking
Step 1:
- Involves determining the order of the model.
- Use of graphical procedures
- A better procedure is now available
Slide 93
Slide 94
ARMAX Models
Step 2:
- Estimation of the parameters
- Can be done using least squares or maximum likelihood
depending on the model.
yt = + 1 yt 1 + 1ut 1 + ut + xt
xy
yt = + 1 yt 1 + 1ut 1 + ut + xt 1
Step 3:
- Model checking
Box and Jenkins suggest 2 methods:
- deliberate overfitting
- residual diagnostics
ARMAARMAX
y
x
Slide 95
Slide 96
Example: (Regression)
ARIMA Models
Model Summary
Model
R
R Square
1
.465a
.216
a. Predictors: (Constant), DOW_R
b. Dependent Variable: MIC_R
Adjusted R
Square
.212
Coefficients
Unstandardized
Coefficients
Model
B
Std. Error
1
(Constant)
1.192E-02
.007
DOW_R
1.144
.154
a. Dependent Variable: MIC_R
Std. Error of
the Estimate
.09221
Standardized
Coefficients
Beta
.465
1.805
7.443
Slide 97
Sig.
.073
.000
Slide 98
.4
FINAL PARAMETERS:
.2
-.0
Analysis of Variance:
-.2
Unstandardized Predi
-.4
cted Value
1.6755434
.00837675
SEB
MA1
.1524335 .06975689 2.1852102
DOW_R
1.1308487 .15280021 7.4008322
CONSTANT .0120568 .00559740 2.1539993
9
198
187
176
165
154
143
132
121
110
10
89
78
67
56
45
34
23
12
1
Sequence number
200
MIC_R
-.6
Residuals
Slide 99
.03003531
.00000000
.03243638
Slide 100
.4
Forecasting in Econometrics
.2
Forecasting = prediction.
An important test of the adequacy of a model.
e.g.
- Forecasting tomorrows return on a particular share
- Forecasting the price of a house given its characteristics
- Forecasting the riskiness of a portfolio over the next year
- Forecasting the volatility of bond returns
MIC_R
-.0
-.2
Fit for MIC_R from A
-.4
-.6
9
198
187
176
165
154
143
132
121
110
10
89
78
67
56
45
34
23
12
1
Sequence number
Slide 101
Slide 102
Say we have some data - e.g. monthly FTSE returns for 120
months: 1990M1 1999M12. We could use all of it to build
the model, or keep some observations back:
Slide 103
Delphi Method
It is an attempt to develop forecasts through group
consensus.
The goal is to produce a relatively narrow spread of
opinions within which the majority of the panel of experts
concur.
Three Steps:
1. A panel of experts, each of whom is physically
separated from the others and is anonymous, is asked
to respond to a sequential series of questionnaires.
2. After each questionnaire, the responses are tabulated
and the information and opinions of the entire group
are made known to each of the other panel members so
that they may revise their previous forecast response.
3. The process continues until some degree of consensus
is achieved.
Slide 104
Expert Judgment
Experts individually consider information that
they believe will influence the variable; then they
combine their conclusions into a forecast.
No two experts are likely to consider the same
information in the same way.
Slide 105
Assignments of Chapter 18
Slide 107
Scenario Writing
This procedure involves developing several
conceptual scenarios, each based on a well-defined
set of assumptions.
After several different scenarios have been
developed, the decision maker determines which
is most likely to occur in the future and makes
decisions accordingly.
Intuitive Approaches
A committee or panel seeks to develop new ideas
or solve complex problems through a series of
brainstorming sessions.
Individuals are free to present any idea without
being concerned about criticism or relevancy.
Slide 106