Escolar Documentos
Profissional Documentos
Cultura Documentos
Chapter Goals
After completing this chapter, you should be able to:
Develop and implement basic forecasting models Identify the components present in a time series Compute and interpret basic index numbers Use smoothing-based forecasting models, including single and double exponential smoothing Apply trend-based forecasting models, including linear trend, nonlinear trend, and seasonally adjusted trend
2
Time-Series Data
Numerical data obtained at regular time intervals The time intervals can be annually, quarterly, daily, hourly, etc. Example: Year: 1999 2000 2001 2002 2003 Sales: 75.3 74.2 78.5 79.7 80.2
4
Year
Time-Series Components
Time-Series
Trend Component Seasonal Component Cyclical Component Random Component
Trend Component
Long-run increase or decrease over time
(overall upward or downward movement)
Time
Trend Component
Trend can be upward or downward Trend can be linear or non-linear
Sales Sales
(continued)
Time
8
Seasonal Component
Short-term regular wave-like patterns Observed within 1 year Often monthly or quarterly
Sales
Summer Winter Spring Fall
9
Time (Quarterly)
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
10
Random Component
Unpredictable, random, residual fluctuations Due to random variations of
Nature Accidents or unusual events
11
Index Numbers
Index numbers allow relative comparisons over time Index numbers are reported relative to a Base Period Index Base period index = 100 by definition Used for an individual item or measurement
12
Index Numbers
Simple Index number formula:
(continued)
yt It ! 100 y0
where It = index number at time period t yt = value of the time series at time t y0 = value of the time series in the base period
13
I1996
Base Year: y 2000 320 I2000 ! 100 ! (100) ! 100 y 2000 320
I2003 y 2003 384 100 ! (100) ! 120 ! y 2000 320
14
15
It
where
p ! p
(100 )
It = unweighted aggregate price index at time t 7pt = sum of the prices for the group of items at time t 7p0 = sum of the prices for the group of items in the base period
17
Index
Year 2001 2002 2003 2004 Lease payment 260 280 305 310 Fuel 45 60 55 50 Repair 40 40 45 50
2004
Total
345 380 405 410
I2004
p ! p
18
It
q p ! q p
t t
(100 ) It
q p ! q p
0 0
(100 )
20
y adjt
= adjusted time series value at time t yt = value of the time series at time t It = index (such as CPI) at time t
21
GWTW adj1984 !
23
Trend-Based Forecasting
Estimate a trend line using regression analysis
Year 1999 2000 2001 2002 2003 2004 Time Period (t) 1 2 3 4 5 6 Sales (y) 20 40 30 50 70 65
y ! b0 b1t
24
Trend-Based Forecasting
Year 1999 2000 2001 2002 2003 2004 The linear trend model is: Time Period (t) 1 2 3 4 5 6 Sales (y) 20 40 30 50 70 65
(continued)
y ! 12.333 9.5714 t
Sales trend
80 70 60 50 40 30 20 10 0 0 1 2 3 4 5 6 7
sales
Year
25
Trend-Based Forecasting
Year 1999 2000 2001 2002 2003 2004 2005
(continued)
sales
Year
26
e t ! y t Ft
27
(y MSE !
Ft )
| y MAD !
Ft |
where: yt = Actual value at time t Ft = Predicted value at time t n = Number of time periods
29
Autocorrelation
Time (t) Residual Plot
(continued)
5 0 -5 0 -10 -15
Time (t)
Violates the regression assumption that residuals are random and independent
30
(e t e t 1 )2 d!
t !1 n
e
t !1
2 t
31
dL
dU
2
32
(continued)
Excel/PHStat output:
Durbin-Watson Calculations Sum of Squared Difference of Residuals Sum of Squared Residuals Durbin-Watson Statistic
n
Sales
80 60
40 20 0 0 5 1 0 1 5 20 25 30
Tim e
(e
d!
t !1
e t 1 )2 !
2
et
t !1
(continued)
Using the Durbin-Watson table, dL = 1.29 and dU = 1.45 d = 1.00494 < dL = 1.29, so reject H0 and conclude that significant positive autocorrelation exists Therefore the linear model is not the appropriate model to forecast sales
Decision: reject H0 since d = 1.00494 < dL
Reject H0 Inconclusive Do not reject H0
dL=1.29
dU=1.45
2
34
yt !
t
Compare R2 and s to that of linear model to see if this is an improvement Can try other functional forms to get best fit
35
y t ! Tt v S t v C t v It
Tt = Trend value at time t Ct = Cyclical value at time t
where
Moving Averages
Used for smoothing Series of arithmetic means over time Result dependent upon choice of L (length of period for computing means) To smooth out seasonal variation, L should be equal to the number of seasons
For quarterly data, L = 4 For monthly data, L = 12
38
Moving Averages
Example: Four-quarter moving average
(continued)
First average:
Moving average 1 ! Q1 Q2 Q3 Q4 4
Second average:
Q2 Q3 Q4 Q5 Moving average 2 ! 4
etc
39
Seasonal Data
Quarter
1 2 3 4 5 6 7 8 9 10 11 etc Sales 23 40 25 27 32 48 33 37 37 50 40 etc
60 50 Sales 40 30 20 10 0 1 2 3 4 5 6 Quarter 7 8 9 10
Quarterly Sales
11
40
Quarter 1 2 3 4 5 6 7 8 9 10 11
Average Period 2.5 3.5 4.5 5.5 6.5 7.5 etc 8.5 9.5
Moving Average 28.75 31.00 33.00 35.00 37.50 38.75 39.25 41.00
2.5 !
1 2 3 4 4 23 40 25 27 4
28.75 !
Centered Period 3 4 5 6 7 8 9
Centered Moving Average 29.88 32.00 34.00 36.25 38.13 39.00 40.13
yt S t v It ! Tt v C t
43
25 0.837 ! 29.88
44
Fall
Fall
Fall
Average all of the Fall values to get Falls seasonal index Do the same for the other three seasons to get the other seasonal indexes
45
Interpretation:
Spring sales average 82.5% of the annual average sales Summer sales are 31.0% higher than the annual average sales etc
Deseasonalizing
The data is deseasonalized by dividing the observed value by its seasonal index
yt Tt v C t v It ! St
This smooths the data by removing seasonal variation
47
Deseasonalizing
Quarter 1 2 3 4 5 6 7 8 9 10 11 Sales 23 40 25 27 32 48 33 37 37 50 40 Seasonal Index 0.825 1.310 0.920 0.945 0.825 1.310 0.920 0.945 0.825 1.310 0.920 Deseasonalized Sales 27.88 30.53 27.17 28.57 38.79 36.64 35.87 39.15 44.85 38.17 43.48
(continued)
27.88 ! etc
23 0.825
48
Sales
Quarter
Sales Deseasonalized Sales
49
50
51
Ft 1 ! Ft E( y t Ft )
or:
Ft 1 ! Ey t (1 E )Ft
where: Ft+1= forecast value for period t + 1 yt = actual value for period t Ft = forecast value for period t E = alpha (smoothing constant)
53
54
Sales
30 20 10 0 1 2 3 4 5
Quarter
10
Sales
Smoothed
55
56
Tt ! F(C t C t 1 ) (1 F)Tt 1
Ft 1 ! C t Tt
where: yt = actual value in time t E = constant-process smoothing constant F = trend-smoothing constant Ct = smoothed constant-process value for period t Tt = smoothed trend value for period t Ft+1= forecast value for period t + 1 t = current time period
57
58
59