Академический Документы
Профессиональный Документы
Культура Документы
Chap 15-1
Chapter Goals
After completing this chapter, you should be able
to:
Time-Series Data
Sales:
75.3
74.2
78.5
79.7
80.2
Time-Series Plot
A time-series plot is a two-dimensional
plot of time series data
Time-Series Components
Time Series
Trend
Component
Seasonal
Component
Cyclical
Component
Irregular
Component
Trend Component
Sales
nd
e
r
t
d
r
Up w a
Time
Trend Component
(continued)
Sales
Sales
Time
Downward linear trend
Time
Upward nonlinear trend
Seasonal Component
Sales
Summer
Winter
Summer
Spring
Winter
Spring
Fall
Time (Quarterly)
Fall
Cyclical Component
Sales
Year
Irregular Component
Nature
Accidents or unusual events
Yi Ti Ci Ii
where
Yi Ti Si Ci Ii
where
Smoothing the
Annual Time Series
Moving Averages
Moving Averages
(continued)
First average:
MA(5)
Second average:
MA(5)
Y1 Y2 Y3 Y4 Y5
5
etc.
Y2 Y3 Y4 Y5 Y6
5
Sales
23
40
25
27
32
48
33
37
37
50
40
etc
5-Year
Moving
Average
Year
Sales
23
29.4
40
34.4
25
33.0
27
35.4
32
37.4
48
41.0
33
39.4
37
37
10
50
11
40
etc
3
29.4
1 2 3 4 5
5
23 40 25 27 32
5
The 5-year
moving average
smoothes the
data and shows
the underlying
trend
Exponential Smoothing
Exponential Smoothing
(continued)
Subjectively chosen
Range from 0 to 1
Smaller W gives more smoothing, larger W gives
less smoothing
E1 Y1
Ei WYi (1 W )Ei1
For i = 2, 3, 4,
where:
Ei = exponentially smoothed value for period i
Ei-1 = exponentially smoothed value already
computed for period i - 1
Yi = observed value in period i
W = weight (smoothing coefficient), 0 < W < 1
Time
Period
(i)
1
2
3
4
5
6
7
8
9
10
etc.
Forecast
from prior
period (Ei-1)
-23
26.4
26.12
26.296
27.437
31.549
31.840
32.872
33.697
etc.
Exponentially Smoothed
Value for this period (Ei)
23
(.2)(40)+(.8)(23)=26.4
(.2)(25)+(.8)(26.4)=26.12
(.2)(27)+(.8)(26.12)=26.296
(.2)(32)+(.8)(26.296)=27.437
(.2)(48)+(.8)(27.437)=31.549
(.2)(48)+(.8)(31.549)=31.840
(.2)(33)+(.8)(31.840)=32.872
(.2)(37)+(.8)(32.872)=33.697
(.2)(50)+(.8)(33.697)=36.958
etc.
E1 = Y1
since no
prior
information
exists
Ei
WYi (1 W )Ei1
Fluctuations
have been
smoothed
NOTE: the
smoothed value in
this case is
generally a little low,
since the trend is
upward sloping and
the weighting factor
is only .2
Yi1 Ei
Trend-Based Forecasting
Year
Time
Period
(X)
Sales
(Y)
1999
2000
2001
2002
2003
2004
0
1
2
3
4
5
20
40
30
50
70
65
Y b0 b1X
Trend-Based Forecasting
(continued)
Year
Time
Period
(X)
Sales
(Y)
1999
2000
2001
2002
2003
2004
0
1
2
3
4
5
20
40
30
50
70
65
Yi 21.905 9.5714 Xi
Trend-Based Forecasting
(continued)
Year
Time
Period
(X)
Sales
(y)
1999
2000
2001
2002
2003
2004
2005
0
1
2
3
4
5
6
20
40
30
50
70
65
??
Yi 0 1Xi 2 X i
2
i
Yi
log(Yi ) b0 b1Xi
where
b0 = estimate of log(0)
b1 = estimate of log(1)
Interpretation:
(1 1) 100%
(Y2 Y1 ) ( Y3 Y2 ) ( Yn Yn-1 )
(continued)
(Y2 Y1 )
(Y3 Y2 )
(Yn Yn-1 )
100%
100%
100%
Y1
Y2
Yn-1
Autoregressive Modeling
Autoregressive Model:
Example
The Office Concept Corp. has acquired a number of office
units (in thousands of square feet) over the last eight years.
Develop the second order Autoregressive model.
Year
Units
97
98
99
00
01
02
03
04
4
3
2
3
2
2
4
6
Autoregressive Model:
Example Solution
Develop the 2nd order
table
Use Excel to estimate a
regression model
Excel Output
Coefficients
Intercept
3.5
X Variable 1
0.8125
X Variable 2
-0.9375
Year
Yi
Yi-1
Yi-2
97
98
99
00
01
02
03
04
4
3
2
3
2
2
4
6
-4
3
2
3
2
2
4
--4
3
2
3
2
2
Autoregressive Model
Example: Forecasting
Use the second-order equation to forecast
number of units for 2005:
Yi 3.5 0.8125Yi1 0.9375Yi2
Y2005 3.5 0.8125(Y2004 ) 0.9375(Y2003 )
3.5 0.8125(6 ) 0.9375(4 )
4.625
Principle of parsimony
Residual Analysis
e
Random errors
T
Cyclical effects not accounted for
0
T
Trend not accounted for
T
Seasonal effects not accounted for
Measuring Errors
SSE (Yi Yi )
MAD
i1
Sensitive to outliers
Y Y
i1
Principal of Parsimony
Least-squares linear
Least-squares quadratic
1st order autoregressive
Yi Ti Si Ci Ii
Q1
Q2
Q3
Yi 2 3 4 i
i provides the multiplier for the ith quarter relative
to the 4th quarter (i = 2, 3, 4)
b0
10
0
b0 = estimate of log(0), so
b1
10
1
b = estimate of log( ), so
Interpretation:
etc
10b0 0 2691.53
b1 = .017, so
10b1 1 1.040
b2 = -.082, so
10b2 2 0.827
b3 = -.073, so
b4 = .022, so
10b3 3 0.845
10b 4 4 1.052
Value:
Interpretation:
0 2691.53
1 1.040
2 0.827
3 0.845
4 1.052
Index Numbers
Pi
Ii
100
Pbase
where
Ii = index number for year i
Pi = price for year i
Pbase = price for the base year
Year
Price
(base year
= 2000)
1995
272
85.0
1996
288
90.0
1997
295
92.2
1998
311
97.2
1999
322
100.6
2000
320
100.0
2001
348
108.8
2002
366
114.4
2003
384
120.0
I1996
P1996
288
100
(100 ) 90
P2000
320
Base Year:
P2000
320
I2000
100
(100 ) 100
P2000
320
I2003
P2003
384
100
(100 ) 120
P2000
320
100
(100 ) 90
P2000
320
I2000
P2000
320
100
(100 ) 100
P2000
320
I2003
P
384
2003 100
(100 ) 120
P2000
320
I1996
Weighted
aggregate
price indexes
Paasche Index
Laspeyres Index
Unweighted
Aggregate Price Index
IU( t )
(t)
P
i
i1
n
P
i1
P
i1
n
(t)
i
(0)
P
i
i1
100
t = time period
n = total number of items
IU( t )
n
(0)
i
i = item
Index
Year
Lease payment
Fuel
Repair
Total
(2001=100)
2001
260
45
40
345
100.0
2002
280
60
40
380
110.1
2003
305
55
45
405
117.4
2004
310
50
50
410
118.8
I2004
410
100
(100) 118.8
345
2001
2004
Weighted
Aggregate Price Indexes
Laspeyres index
n
I
(t)
L
P
i1
n
(t)
i
P
i1
(0)
i
(0)
i
Paasche index
n
100
(0)
i
I
(t)
P
P
i 1
n
P
i1
period 0 quantities
(t)
i
(0)
i
(t)
i
100
(t)
i
NASDAQ Index
Pitfalls in
Time-Series Analysis
Chapter Summary
Moving averages
Exponential smoothing
Chapter Summary
(continued)