Professional Documents
Culture Documents
Content
13.1 Descriptive Analysis: Index Numbers
13.2 Descriptive Analysis: Exponential
Smoothing
13.3 Time Series Components
13.4 Forecasting: Exponential Smoothing
13.5 Forecasting Trends: Holts Method
13.6 Measuring Forecast Accuracy: MAD and
RMSE
2011 Pearson Education, Inc
Content
13.7 Forecasting Trends: Simple Linear
Regression
13.8 Seasonal Regression Models
13.9 Autocorrelation and the Durbin-Watson
Test
Learning Objectives
Time Series
Descriptive analysis
Understanding patterns
Inferential analysis
Forecast future values
13.1
Descriptive Analysis:
Index Numbers
Index Number
100
Y0
where It is the index number at time t, Yt is
the time series value at time t, and Y0 is
the time series value at the base period.
2011 Pearson Education, Inc
Year
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
$
1.299
1.098
1.087
1.067
1.075
1.111
1.224
1.199
1.03
1.136
1.484
1.42
1.345
1.561
1.852
2.27
2.572
100
100 100
1.299
1990price
100
100 79.3
1.299
1990price
100
100 198
1.299
1990price
100
1/ 05price
99.64
100
95.49
104.3
Laspeyres Index
Uses base period quantities as weights
Appropriate when quantities remain approximately
constant over time period
0
2011 Pearson Education, Inc
i1
It
it0
Pit
it0
Pit
i1
k
i1
100
GM
Ford
100
500
200
1/31/2005 Price
45.51
13.17
36.81
12/29/2006 Price
61.41
7.51
30.72
Shares Purchased
Q
i 1
it0
Q
i 1
it0
It
Q
i 1
k
Q
i 1
100
16040
100
18498
86.7
Indicates portfolio value had decreased by
13.3% (10086.7)
between
1/31/2005
and
2011 Pearson Education, Inc
12/29/2006.
Paasche Index
Uses quantities for each period as weights
Appropriate when quantities change over time
i1 Education, Inc
2011 Pearson
Price
45.51
61.41
Volume
.8
.2
Ford
Price
13.17
7.51
Volume
7.0
10.0
GM
Price
36.81
30.72
Volume
5.6
6.1
I1/ 31/ 05
i 1
k
i 1
100
100
.8(45.51) 7(13.17) 5.6(36.81)
100
I12 / 29 / 06
i 1
k
i12 / 29 / 06 i12 / 29 / 06
Q
i 1
100
100
.2(45.51) 10(13.17) 6.1(36.81)
274.774
100 75.2
365.343
13.2
Descriptive Analysis:
Exponential Smoothing
Exponential Smoothing
Type of weighted average
Removes rapid fluctuations in time series (less
sensitive to shortterm changes in prices)
Allows overall trend to be identified
Used for forecasting future values
Exponential smoothing constant (w) affects
smoothness of series
2011 Pearson Education, Inc
Exponential Smoothing
Constant
Exponential smoothing constant, 0 < w < 1
w close to 0
More weight given to previous values of time
series
Smoother series
w close to 1
More weight given to current value of time series
Series looks similar to original (more variable)
2011 Pearson Education, Inc
E3 = wY3 + (1 w)E2
Et = wYt + (1 w)Et1
2011 Pearson Education, Inc
Exponential Smoothing
Example
The closing stock prices on the last
day of the month for Daimler
Chrysler in 2005 and 2006 are
given in the table. Create an
exponentially smoothed series
using w = .2.
Exponential Smoothing
Solution
E1 = 45.51
E2 = .2(46.10) + .8(45.51) = 45.63
Exponential Smoothing
Solution
E1 = 45.51
E2 = .2(46.10) + .8(45.51) = 45.63
Nov-06
Oct-06
Sep-06
Aug-06
Jul-06
Jun-06
May-06
Apr-06
Mar-06
Feb-06
Jan-06
Dec-05
30
Nov-05
40
Oct-05
Sep-05
Aug-05
Jul-05
Jun-05
60
May-05
Apr-05
Mar-05
Feb-05
Jan-05
Exponential Smoothing
Solution
70
Actual Series
50
Smoothed Series
(w = .2)
20
10
Exponential Smoothing
Thinking Challenge
The closing stock prices on the last
day of the month for Daimler
Chrysler in 2005 and 2006 are
given in the table. Create an
exponentially smoothed series
using w = .8.
Exponential Smoothing
Solution
E1 = 45.51
E2 = .8(46.10) + .2(45.51) = 45.98
Nov-06
Oct-06
Sep-06
Aug-06
Jul-06
Jun-06
Smoothed Series
(w = .2)
May-06
Apr-06
Mar-06
Feb-06
Jan-06
Dec-05
Nov-05
Oct-05
30
Sep-05
40
Aug-05
Jul-05
Jun-05
60
May-05
Apr-05
Mar-05
Feb-05
Jan-05
Exponential Smoothing
Solution
70
Actual Series
50
Smoothed Series
(w = .8)
20
10
13.3
Time Series Components
Descriptive v. Inferential
Analysis
Descriptive Analysis
Picture of the behavior of the time series
e.g. Index numbers, exponential smoothing
No measure of reliability
Inferential Analysis
Goal: Forecasting future values
Measure of reliability
13.4
Forecasting:
Exponential Smoothing
Exponentially Smoothed
Forecasts
Assumes the trend and seasonal component are
relatively insignificant
Exponentially smoothed forecast is constant for all
future values
Ft+1 = Et
Ft+2 = Ft+1
Ft+3 = Ft+1
Use for shortterm forecasting only
2011 Pearson Education, Inc
Calculation of Exponentially
Smoothed Forecasts
1. Given the observed time series Y1, Y2, , Yt,
first calculate the exponentially smoothed
values E1, E2, , Et, using
E 1 = Y1
E2 = wY2 + (1 w)E1
M
Et = wYt + (1 w)Et 1
Calculation of Exponentially
Smoothed Forecasts
2. Use the last smoothed value to forecast the
next time series value:
Ft +1 = Et
3. Assuming that Yt is relatively free of trend and
seasonal components, use the same forecast
for all future values of Yt:
Ft+2 = Ft+1
Ft+3 = Ft+1
Exponential Smoothing
Forecasting Example
The closing stock prices on the
last day of the month for
DaimlerChrysler in 2005 and
2006 are given in the table
along with the exponentially
smoothed values using w = .2.
Forecast the closing price for
the January 31, 2007.
2011 Pearson Education, Inc
Exponential Smoothing
Forecasting Solution
F1/31/2007 = E12/29/2006 = 55.42
The actual closing price on 1/31/2007
for DaimlerChrysler was 62.49.
Forecast Error = Y1/31/2007 F1/31/2007
= 62.49 55.42
= 7.07
2011 Pearson Education, Inc
13.5
Forecasting Trends:
Holts Method
and T2 = Y2 Y1
Holt Example
The closing stock prices on the
last day of the month for
DaimlerChrysler in 2005 and
2006 are given in the table.
Calculate the HoltWinters
components using w = .8 and
v = .7.
Holt Solution
w = .8 v = .7
E2 = Y2 and T2 = Y2 Y1
E2 = 46.10 and T2 = 46.10 45.51 = .59
E3 = wY3 + (1 w)(E2 + T2)
E3 = .8(44.72) + .2(46.10 + .59) = 45.114
T3 = v(E3 E2) + (1 v)T2
T3 = .7(45.114 46.10) + .3(.59) = .5132
2011 Pearson Education, Inc
Holt Solution
Completed series:
w = .8 v = .7
Holt Solution
Holt exponentially smoothed (w = .8 and v = .7)
Smoothed
Actual
Holt Solution
w = .7 v = .5
E2 = Y2 and T2 = Y2 Y1
E2 = 9206 and T2 = 9206 8800 = 406
E3 = wY3 + (1 w)(E2 + T2)
E3 = .7(9588) + .3(9206 + 406) = 9595.20
T3 = v(E3 E2) + (1 v)T2
T3 = .5(9595.20 9206) + .5(406) = 397.60
2011 Pearson Education, Inc
Holt Solution
Completed series
Holt Solution
Tuition
Actual
Smoothed
13.6
Measuring Forecast Accuracy:
MAD and RMSE
MAD
Y F
tn1
MAPE
tn1
Y F
t
Yt
m
100
RMSE
Y F
tn1
Forecasting Accuracy
Example
Using the DaimlerChrysler data from 1/31/2005 through
8/31/2006, three time series models were constructed and
forecasts made for the next four months.
Model I: Exponential smoothing (w = .2)
Model II: Exponential smoothing (w = .8)
Model III: HoltWinters (w = .8, v = .7)
Forecasting Accuracy
Example
Model I
MADI
2.31
MAPEI
RMSEI
49.96
4.66
56.93
6.01
58.28
5.53
9.14
61.41
2.31
100 9.50
2
6.06
Forecasting Accuracy
Example
Model II
MADII
2.82
MAPEII
RMSEII
49.96
4.15
56.93
5.50
58.28
5.28
8.63
61.41
2.82
100 9.11
2
5.70
Forecasting Accuracy
Example
Model III
MADIII
3.45
MAPEIII
RMSEIII
49.96
2.42
56.93
2.67
58.28
3.31
3.45
4.71
61.41
100 5.85
3.44
13.7
Forecasting Trends:
Simple Linear Regression
Yt 7997.533
528.158t
2011 Pearson Education, Inc
1 11 5.5
1
10
82.5
2011 Pearson
Inc
13006.21
y11Education,
14608.33
13.8
Seasonal Regression Models
13.9
Autocorrelation and the
Durbin-Watson Test
Autocorrelation
Time series data may have errors that are not
independent
Time series residuals: Rt Yt Yt
Correlation between residuals at different
points in time (autocorrelation)
1st order correlation: Correlation between
neighboring residuals (times t and t + 1)
2011 Pearson Education, Inc
Autocorrelation
Plot of residuals v. time for tuition data shows
residuals tend to group alternately into positive
and negative clusters
DurbinWatson Test
H0: No firstorder autocorrelation of residuals
Ha: Positive firstorder autocorrelation of
residuals
Test Statistic
t 2
Rt Rt 1
Rt
t 1
R R
t
t2
R
t
t1
t1
Range of d : 0 d 4
dL
dU
Possibly significant
autocorrelation
Nonrejection region:
insufficient evidence of
positive autocorrelation
2011 Pearson Education, Inc
Test Statistic
t 2
Rt Rt 1
n
t Inc
2011 Pearson Education,
t 1
t 2
Rt Rt 1
n
t Inc
2011 Pearson Education,
t 1
2
.88 1.32
DurbinWatson Solution
Test Statistic
t 2
Rt Rt 1
R
t
t 1
Test Statistic:
d = .51
2
.88 1.32
Decision:
Reject at = .05
Conclusion:
There is evidence of
d positive autocorrelation
Key Ideas
Time Series Data
Data generated by processes over time.
Key Ideas
Index Number
Measures the change in a variable over time
relative to a base period.
Types of Index numbers:
1. Simple index number
2. Simple composite index number
3. Weighted composite number (Laspeyers
index or Pasche index)
2011 Pearson Education, Inc
Key Ideas
Time Series Components
1.
2.
3.
4.
Key Ideas
Time Series Forecasting
Descriptive methods of forecasting with
smoothing:
1. Exponential smoothing
2. Holts method
Key Ideas
Time Series Forecasting
An Inferential forecasting method:
least squares regression
Key Ideas
Time Series Forecasting
Measures of forecast accuracy:
1. mean absolute deviation (MAD)
2. mean absolute percentage error (MAPE)
3. root mean squared error (RMSE)
Key Ideas
Time Series Forecasting
Problems with least squares regression
forecasting:
1. Prediction outside the experimental region
2. Regression errors are autocorrelated
Key Ideas
Autocorrelation
Correlation between time series residuals at
different points in time.
A test for first-order autocorrelation:
Durbin-Watson test