Professional Documents
Culture Documents
Chapter 15
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-3
Time-Series Data
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-4
Time-Series Plot
A time-series plot is a two-dimensional
plot of time series data
12.00
10.00
8.00
the horizontal axis 6.00
corresponds to the 4.00
2.00
time periods 0.00
1975
1977
1979
1981
1983
1985
1987
1989
1991
1993
1995
1997
1999
2001
Year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-5
Time-Series Components
Time Series
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-6
Trend Component
Sales
Sales Sales
Time Time
Downward linear trend Upward nonlinear trend
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-8
Seasonal Component
Sales
Summer
Winter
Summer
Winter Spring Fall
Spring Fall
Time (Quarterly)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-9
Cyclical Component
Long-term wave-like patterns
Regularly occur but may vary in length
Often measured peak to peak or trough to
trough
1 Cycle
Sales
Year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-10
Irregular Component
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-11
Multiplicative Time-Series Model
for Annual Data
Yi Ti Ci Ii
where Ti = Trend value at year i
Ci = Cyclical value at year i
Ii = Irregular (random) value at year i
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-12
Multiplicative Time-Series Model
with a Seasonal Component
Yi Ti Si Ci Ii
where Ti = Trend value at time i
Si = Seasonal value at time i
Ci = Cyclical value at time i
Ii = Irregular (random) value at time i
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-13
Smoothing the
Annual Time Series
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-14
Moving Averages
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-15
Moving Averages
(continued)
Example: Five-year moving average
First average:
Y1 Y2 Y3 Y4 Y5
MA(5)
5
Second average:
Y2 Y3 Y4 Y5 Y6
MA(5)
5
etc.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-16
Example: Annual Data
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-17
Calculating Moving Averages
5-Year
Average Moving
Year Sales Year Average
1 2 3 4 5
1 23 3 29.4 3
5
2 40 4 34.4
3 25 23 40 25 27 32
5 33.0 29.4
4 27 5
6 35.4
5 32 7 37.4
6 48 8 41.0
7 33 9 39.4
8 37 etc… … …
9 37
10 50 Each moving average is for a
11 40 consecutive block of 5 years
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-18
Annual vs. Moving Average
moving average 60
smoothes the 50
data and shows 40
the underlying
Sales
30
trend
20
10
0
1 2 3 4 5 6 7 8 9 10 11
Year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-19
Exponential Smoothing
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-20
Exponential Smoothing
(continued)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-21
Exponential Smoothing Model
Exponential smoothing model
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
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-22
Exponential Smoothing Example
Suppose we use weight W = .2
Time Forecast
Sales Exponentially Smoothed
Period from prior
(Yi) Value for this period (Ei)
(i) period (Ei-1)
1 23 -- 23 E1 = Y1
2 40 23 (.2)(40)+(.8)(23)=26.4 since no
3 25 26.4 (.2)(25)+(.8)(26.4)=26.12 prior
information
4 27 26.12 (.2)(27)+(.8)(26.12)=26.296 exists
5 32 26.296 (.2)(32)+(.8)(26.296)=27.437
6 48 27.437 (.2)(48)+(.8)(27.437)=31.549 Ei
7 33 31.549 (.2)(48)+(.8)(31.549)=31.840 WYi (1 W )Ei1
8 37 31.840 (.2)(33)+(.8)(31.840)=32.872
9 37 32.872 (.2)(37)+(.8)(32.872)=33.697
10 50 33.697 (.2)(50)+(.8)(33.697)=36.958
etc. etc. etc. etc.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-23
Sales vs. Smoothed Sales
Fluctuations
have been
60
smoothed
50
40
NOTE: the Sales
30
smoothed value in
20
this case is
generally a little low, 10
since the trend is 0
upward sloping and 1 2 3 4 5 6 7 8 9 10
Time Period
the weighting factor
Sales Smoothed
is only .2
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-24
Forecasting Time Period i + 1
Ŷi1 Ei
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-25
Exponential Smoothing in Excel
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-26
Trend-Based Forecasting
Ŷ b0 b1X
1999 0 20
2000 1 40
2001 2 30
2002 3 50
2003 4 70
2004 5 65
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-27
Trend-Based Forecasting
(continued)
40
2002 3 50 30
20
2003 4 70 10
0
2004 5 65
0 1 2 3 4 5 6
Year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-28
Trend-Based Forecasting
(continued)
Forecast for time period 6:
Time
Period
Ŷ 21.905 9.5714 (6)
Year Sales
(X) (y) 79.33
1999 0 20 Sales trend
2000 1 40 80
70
2001 2 30
60
2002 3 50 50
sales
40
2003 4 70 30
2004 5 65 20
10
2005 6 ?? 0
0 1 2 3 4 5 6
Year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-29
Nonlinear Trend Forecasting
A nonlinear regression model can be used when
the time series exhibits a nonlinear trend
Quadratic form is one type of a nonlinear model:
Yi 0 1Xi 2 X i 2
i
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-30
Exponential Trend Model
Yi β β
Xi
0 1 εi
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-31
Exponential Trend Model
(continued)
log(Ŷi ) b0 b1Xi
where b0 = estimate of log(β0)
b1 = estimate of log(β1)
Interpretation:
(β̂1 1) 100% is the estimated annual compound
growth rate (in %)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-32
Model Selection Using
Differences
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-33
Model Selection Using
Differences
(continued)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-34
Autoregressive Modeling
Random
Error
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-35
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 4
98 3
99 2
00 3
01 2
02 2
03 4
04 6
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-36
Autoregressive Model:
Example Solution
Develop the 2nd order Year Yi Yi-1 Yi-2
table 97 4 -- --
98 3 4 --
Use Excel to estimate a 99 2 3 4
regression model 00 3 2 3
Excel Output 01 2 3 2
Coefficients 02 2 2 3
I n te rc e p t 3.5 03 4 2 2
X V a ri a b l e 1 0.8125 04 6 4 2
X V a ri a b l e 2 -0 . 9 3 7 5
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-37
Autoregressive Model
Example: Forecasting
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-38
Autoregressive Modeling Steps
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-39
Selecting A Forecasting Model
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-40
Residual Analysis
e e
0 0
T T
Random errors Cyclical effects not accounted for
e e
0 0
T T
Trend not accounted for Seasonal effects not accounted for
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-41
Measuring Errors
Choose the model that gives the smallest
measuring errors
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-42
Principal of Parsimony
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-43
Forecasting With Seasonal Data
Recall the classical time series model with
seasonal variation:
Yi Ti Si Ci Ii
Suppose the seasonality is quarterly
Define three new dummy variables for quarters:
Q1 = 1 if first quarter, 0 otherwise
Q2 = 1 if second quarter, 0 otherwise
Q3 = 1 if third quarter, 0 otherwise
(Quarter 4 is the default if Q1 = Q2 = Q3 = 0)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-44
Exponential Model with
Quarterly Data
Yi β β β2 β3 β4 εi
Xi Q1 Q2 Q3
0 1
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-45
Estimating the Quarterly Model
Exponential forecasting equation:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-46
Quarterly Model Example
Suppose the forecasting equation is:
log(Ŷi ) 3.43 .017Xi .082Q1 .073Q2 .022Q3
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-47
Quarterly Model Example
(continued)
Value: Interpretation:
β̂0 2691.53 Unadjusted trend value for first quarter of first year
β̂1 1.040 4.0% = estimated quarterly compound growth rate
β̂2 0.827 Ave. sales in Q2 are 82.7% of average 4th quarter sales,
after adjusting for the 4% quarterly growth rate
β̂3 0.845 Ave. sales in Q3 are 84.5% of average 4th quarter sales,
after adjusting for the 4% quarterly growth rate
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-48
Index Numbers
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-49
Simple Price Index
Pi
Ii 100
Pbase
where
Ii = index number for year i
Pi = price for year i
Pbase = price for the base year
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-50
Index Numbers: Example
Airplane ticket prices from 1995 to 2003:
Index
Year Price (base year
= 2000)
1995 272 85.0 P1996 288
1996 288 90.0 I1996 100 (100) 90
P2000 320
1997 295 92.2
1998 311 97.2
Base Year:
1999 322 100.6 P2000 320
2000 320 100.0 I2000 100 (100) 100
P2000 320
2001 348 108.8
2002 366 114.4
P2003 384
2003 384 120.0 I2003 100 (100) 120
P2000 320
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-51
Index Numbers: Interpretation
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-52
Aggregate Price Indexes
An aggregate index is used to measure the rate
of change from a base period for a group of items
Aggregate
Price Indexes
Unweighted Weighted
aggregate aggregate
price index price indexes
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-53
Unweighted
Aggregate Price Index
Unweighted aggregate price index formula:
n
i
P (t)
i = item
IU( t ) i1
n
100 t = time period
P
i 1
i
(t)
= sum of the prices for the group of items at time t
n
i 1
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-54
Unweighted Aggregate Price
Index: Example
Automobile Expenses:
Monthly Amounts ($):
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
P 2004
100
410
(100) 118.8
P 2001 345
Unweighted total expenses were 18.8%
higher in 2004 than in 2001
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-55
Weighted
Aggregate Price Indexes
Laspeyres index Paasche index
n n
P i
(t)
Q (0)
i P i
(t)
Q (t)
i
I
(t)
L
i1
n
100 I
(t)
P
i1
n
100
Pi1
i
(0)
Q (0)
i P i
(0)
Q (t)
i
i1
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-57
Pitfalls in
Time-Series Analysis
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-58
Chapter Summary
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-59
Chapter Summary
(continued)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-60