Professional Documents
Culture Documents
Chap012 - Sao Chép
Chap012 - Sao Chép
BUSINESS
STATISTICS
by
AMIR D. ACZEL
&
JAYAVEL SOUNDERPANDIAN
7th edition.
Chapter 12
Time Series, Forecasting, and Index Numbers
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
12-2
12 LEARNING OBJECTIVES
After studying this chapter you should be able to:
• Differentiate between qualitative and quantitative methods of forecasting
• Carry out a trend analysis in time series data
• Identify seasonal and cyclical patterns in time series data
• Forecast using simple and weighted moving average methods
• Forecast using exponential smoothing method
• Forecast when the time series contains both trend and seasonality
• Assess the efficiency of forecasting methods using measures of error
• Make forecasts using templates
• Compute index numbers
12-4
As can be seen
from the figure, the
observations may be
described by a
straight line. A simple
linear regression
equation is fit to the
data by least squares.
A straight-line model
to account for a trend
is of the form
Zt = 0 + 1t + at
12-6
Note: The template contains forecasts for t = 9 to t = 20 which corresponds to years 2008 to 2019 .
12-7
MAD 12.894
1400 MAD 12.894
MSD 278.474
1300 MSD 278.474
1300
1200
1200
1100
1100
1000
1000
900
900
800
800
2000 2001 2002 2003 2004 2005 2006 2007
2000 2001 2002 2003 2004 2005 2006 2007
Year
Year
Example 12-2
The
forecast
for t = 10
(year 2008)
is 345.27
Example 12-2
The
forecast
for t = 10
(year 2008)
is 345.27
200
20 11000
10000
Pas sengers
E a rning s
15
Sales
9000
100
8000
10
7000
0 5 6000 t
J FMAMJ J ASONDJ FMAMJ J ASONDJ FMAMJ J A 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 86 87 88 89 90 91 92 93 94 95
Time Year
Whenaacyclical
When cyclicalpattern
patternhas
hasaaperiod
periodofofone
oneyear,
year,ititisis
usuallycalled
usually calledseasonal
seasonalvariation.
variation. AApattern
patternwith
withaaperiod
period
ofother
of otherthan
thanone
oneyear
yearisiscalled
calledcyclical
cyclicalvariation.
variation.
12-12
•• Typesof
Types ofVariation
Variation
Trend(T)
Trend (T)
Seasonal(S)
Seasonal (S)
Cyclical(C)
Cyclical (C)
Randomor
Random orIrregular
Irregular(I)
(I)
•• AdditiveModel
Additive Model
ZZt =
t =TTt +
t +SS+
t
t +C
Ct +
t +IIt
t
•• MultiplicativeModel
Multiplicative Model
ZZt =
t =(T
(Tt t)(S
)(St t)(C
)(Ct t)(I
)(It)t)
12-13
Anadditive
An additiveregression
regressionmodel
modelwith
withseasonality:
seasonality:
ZZt= +11 t+
t=00+ t+22 Q
Q11++33 Q
Q22 ++ 44Q
Q33 ++ aat t
where
where
QQ11=1
=1ififthe
theobservation
observationisisin
inthe
thefirst
firstquarter,
quarter,and
and00
otherwise
otherwise
QQ22=1
=1ififthe
theobservation
observationisisin
inthe
thesecond
secondquarter,
quarter,and
and00
otherwise
otherwise
QQ33=1
=1ififthe
theobservation
observationisisin
inthe
thethird
thirdquarter,
quarter,and
and00
otherwise
otherwise
12-14
Time, t: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Series, Ztt: 15 12 11 18 21 16 14 17 20 18 21 16 14 19
(15 + 12 + 11 + 18 + 21)/5=15.4
(12 + 11 + 18 + 21 + 16)/5=15.6
(11 + 18 + 21 + 16 + 14)/5=16.0
. . . . .
(18 + 21 + 16 + 14 + 19)/5=17.6
12-15
15
irregular
Leavestrend
Leaves trendand
andcyclical
cyclical
components
components
10
0 5 10 15
t
Z
t TSCI SI
MA TC
12-16
Ratio-to-Moving Average
•• Ratio-to-MovingAverage
Ratio-to-Moving Averagefor
forQuarterly
QuarterlyData
Data
Computeaafour-quarter
Compute four-quartermoving-average
moving-averageseries.
series.
Centerthe
Center themoving
movingaverages
averagesby
byaveraging
averagingevery
everyconsecutive
consecutivepair
pairand
and
placingthe
placing theaverage
averagebetween
betweenquarters.
quarters.
Dividethe
Divide theoriginal
originalseries
seriesby
bythe
thecorresponding
correspondingmoving
movingaverage.
average.Then
Then
multiplyby
multiply by100.
100.
Derivequarterly
Derive quarterlyindexes
indexesbybyaveraging
averagingall
alldata
datapoints
pointscorresponding
correspondingtoto
eachquarter.
each quarter.Multiply
Multiplyeach
eachby
by400
400and
anddivide
divideby
bysum.
sum.
12-17
Sales
2004S 141 151.125 93.3 150
2004F
2004F 150
150 152.25
152.25 148.625
148.625 100.9
100.9 Moving Average
2005W
2005W 161
161 150.00
150.00 146.125
146.125 110.2
110.2 140 Length: 4
2005S
2005S 137
137 147.25
147.25 146.000
146.000 93.8
93.8 MAPE: 7.816
2005S
2005S 132
132 145.00
145.00 146.500
146.500 90.1
90.1
130 MAD:
MSD:
10.955
152.574
2005F
2005F 158
158 147.00
147.00 147.000
147.000 107.5
107.5 0 5 10 15
2006W
2006W 157
157 146.00
146.00 147.500
147.500 106.4
106.4 Time
2006S
2006S 145
145 148.00
148.00 144.000
144.000 100.7
100.7
2006S
2006S 128
128 147.00
147.00 141.375
141.375 90.5
90.5
2006F
2006F 134
134 141.00
141.00 141.000
141.000 95.0
95.0
2007W
2007W 160
160 141.75
141.75 140.500
140.500 113.9
113.9
2007S
2007S 139
139 140.25
140.25 142.000
142.000 97.9
97.9
2007S
2007S 130
130 140.75
140.75 ** **
2007F
2007F 144
144 143.25
143.25 ** **
12-18
Quarter
Quarter
Year
Year Winter
Winter Spring
Spring Summer
Summer Fall
Fall
2004
2004 93.3
93.3 100.9
100.9
2005
2005 110.2
110.2 93.8
93.8 90.1
90.1 107.5
107.5
2006
2006 106.4
106.4 100.7
100.7 90.5
90.5 95.0
95.0
2007
2007 113.9
113.9 97.9
97.9
Sum
Sum 330.5
330.5 292.4
292.4 273.9
273.9 303.4
303.4
Average
Average 110.17
110.17 97.47
97.47 91.3
91.3 101.13
101.13
SumofofAverages
Sum Averages==400.07
400.07
SeasonalIndex
Seasonal Index==(Average)(400)/400.07
(Average)(400)/400.07
Seasonal
Seasonal
Index
Index 110.15
110.15 97.45
97.45 91.28
91.28 101.11
101.11
12-19
Seasonal
Seasonal Deseasonalized
Deseasonalized Original and Seasonally Adjusted Series
Quarter
Quarter Sales
Sales Index(S)
Index (S) Series(Z/S)*100
Series(Z/S)*100
2004W
2004W 170
170 110.15
110.15 154.34
154.34 170
2004S
2004S 148
148 97.45
97.45 151.87
151.87
2004S
2004S 141
141 91.28
91.28 154.47
154.47 160
2004F
2004F 150
150 101.11
101.11 148.35
148.35
2005W 161 110.15 146.16
Sales
2005W 161 110.15 146.16 150
2005S
2005S 137
137 97.45
97.45 140.58
140.58
2005S
2005S 132
132 91.28
91.28 144.51
144.51 140
2005F
2005F 158
158 101.11
101.11 156.27
156.27
2006W
2006W 157
157 110.15
110.15 142.53
142.53 130
2006S
2006S 145
145 97.45
97.45 148.79
148.79 1992W 1992S 1992S 1992F
2006S
2006S 128
128 91.28
91.28 140.23
140.23
2006F 134 101.11 132.53 t
2006F 134 101.11 132.53
2007W
2007W 160
160 110.15
110.15 145.26
145.26 Original Deseasonalized - - -
2007S
2007S 139
139 97.45
97.45 142.64
142.64
2007S
2007S 130
130 91.28
91.28 142.42
142.42
2007F
2007F 144
144 101.11
101.11 142.42
142.42
12-20
150 aacomparison
comparisonof ofthe
themoving
moving
140 averagesand
averages andthe
theestimated
estimated
130 regressionline:
regression line:
120
1992W 1992S 1992S 1992F
Z 155.275 11059
. t
t illustratesthat
illustrates thatthe
thecyclical
cyclical
componentin
component inthis
thisseries
seriesisis
negligible.
negligible.
12-21
Thecentered
The centeredmoving
movingaverage,
average,ratio
ratiototomoving
movingaverage,
average,seasonal
seasonalindex,
index,and
anddeseasonalized
deseasonalized
valueswere
values weredetermined
determinedusing
usingthe
theRatio-to-Moving-Average
Ratio-to-Moving-Averagemethod.
method.
Thecentered
The centeredmoving
movingaverage,
average,ratio
ratiototomoving
movingaverage,
average,seasonal
seasonalindex,
index,and
anddeseasonalized
deseasonalized
valueswere
values weredetermined
determinedusing
usingthe
theRatio-to-Moving-Average
Ratio-to-Moving-Averagemethod.
method.
Zˆ = TSC
Zˆ = TSC
= (1)(138.03)(1.1015) = 152.02
12-28
ZZ ((Trend
Trend)(
)(Seasonal
Seasonal((Cyclical
Cyclical)(
)(Irregular
Irregular))
TSCI
TSCI
MA((Trend
MA Trend)(
)(Cyclical
Cyclical))
TC
TC
ZZ TSCI
TSCI
SI
SI
MA TC
MA TC
SS == Average
Averageof
ofSI
SI(Ratio
(Ratio--to
to--Moving
MovingAverages)
Averages)
ZZ TSCI
TSCI
CTI
CTI(Deseasonalized
(DeseasonalizedData)
Data)
SS SS
12-29
Smoothingisisused
Smoothing usedto
toforecast
forecastaaseries
seriesby
byfirst
firstremoving
removingsharp
sharp
variation,as
variation, asdoes
doesthe
themoving
movingaverage.
average.
Weights Decline as we go back Exponentialsmoothing
Exponential smoothingisisaaforecasting
forecasting
in Time methodininwhich
method whichthe
theforecast
forecastisisbased
basedinin
Weights Decline as We Go Back in Time and Sum to 1 aaweighted
weightedaverage
averageofofcurrent
currentand
andpast
past
seriesvalues.
series values. The
Thelargest
largestweight
weightisis
0.4
giventotothe
given thepresent
presentobservations,
observations,lessless
0.3
weighttotothe
theimmediately
immediatelypreceding
preceding
Weight
weight
W eig ht
0.2 observation,even
observation, evenless
lessweight
weighttotothe
the
0.1 observationbefore
observation beforethat,
that,and
andso
soon.
on. The
The
0.0 weightsdecline
weights declinegeometrically
geometricallyas aswe
wegogo
-15 -10
Lag
-5 0
backin
back intime.
time.
-10 Lag 0
12-30
2 3
Z t 1 w ( Z t ) w (1 w )( Z t 1 ) w (1 w ) ( Z t 2 ) w (1 w ) ( Z t 3 )
Since
2 3
Z t w ( Z t 1 ) w (1 w )( Z t 2 ) w (1 w ) ( Z t 3 ) w (1 w ) ( Z t 4 )
2 3
(1 w ) Z t w (1 w )( Z t 1 ) w (1 w ) ( Z t 2 ) w (1 w ) ( Z t 3 )
So
Z t 1 w(Z t ) (1 w)(Z t )
Z t 1 Z t (1 w)(Z t - Z t )
12-31
Example 12-4
Day
Day ZZ w=.4
w=.4 w=.8
w=.8 Exponential Smo othing: w=0.4 and w=0.8
960
11 925
925 925.000
925.000 925.000
925.000
22 940
940 925.000
925.000 925.000
925.000 950
33 924
924 931.000
931.000 937.000
937.000 940
w=.4
44 925
925 928.200
928.200 926.600
926.600
55 912
912 926.920
926.920 925.320
925.320 930
66 908
908 920.952
920.952 914.664
914.664 920
77 910
910 915.771
915.771 909.333
909.333
88 912
912 913.463
913.463 909.867
909.867 910
99 915
915 912.878
912.878 911.573
911.573 0 5 10 15
10
10 924
924 913.727
913.727 914.315
914.315
Day
11
11 943
943 917.836
917.836 922.063
922.063 Original data:
12
12 962
962 927.902
927.902 938.813
938.813
13 960 941.541 957.363 Smoothed, w=0.4: ......
13 960 941.541 957.363
14 958 948.925 959.473 Smoothed, w=0.8: -----
14 958 948.925 959.473
15
15 955
955 952.555
952.555 958.295
958.295
16
16 ** 953.533
953.533 955.659
955.659
12-32
Anindex
An indexnumber
numberisisaanumber
numberthat
thatmeasures
measuresthe
therelative
relative
changein
change inaaset
setof
ofmeasurements
measurementsover
overtime.
time. For
Forexample:
example:the
the
DowJones
Dow JonesIndustrial
IndustrialAverage
Average(DJIA),
(DJIA),the
theConsumer
ConsumerPrice
Price
Index(CPI),
Index (CPI),the
theNew
NewYork
YorkStock
StockExchange
Exchange(NYSE)
(NYSE)Index.
Index.
Value in period i
Index number in period i: = 100
Value in base period
Changing the base period of an index:
Old index value
New index value: = 100
Index value of new base
12-34
Index
Index Index
Index Price and Index (1982=100) of Natural Gas Price
Year Price
Year Price 1984-Base
1984-Base 1991-Base
1991-Base
1984
1984 121
121 100.0
100.0 64.7
64.7
250
P r ic e
1987
1987 146
146 120.7
120.7 78.1
78.1 150
1988
1988 162
162 133.9
133.9 86.6
86.6 Index (1991)
1989
1989 164
164 135.5
135.5 87.7
87.7
1990
1990 172
172 142.1
142.1 92.0
92.0 50
1991
1991 187
187 154.5
154.5 100.0
100.0 1985 1990 1995
1992 197 162.8 105.3 Year
1992 197 162.8 105.3
1993
1993 224
224 185.1
185.1 119.8
119.8
1994
1994 255
255 210.7
210.7 136.4
136.4
1995
1995 247
247 204.1
204.1 132.1
132.1
1996
1996 238
238 196.7
196.7 127.3
127.3
1997
1997 222
222 183.5
183.5 118.7
118.7
12-35
Salary
Adjusted Salary = 100
350
CPI
Adjusted
Adjusted
CPI
250
Year
Year Salary Salary
Salary Salary
150
1980
1980 29500 11953.0
29500 11953.0
1981
1981 31000 11380.3
31000 11380.3
50 1982
1982 33600 11610.2
33600 11610.2
19 50 19 55 19 60 196 5 197 0 197 5 1980 1 985 1 990 19 95
1983
1983 35000 11729.2
35000 11729.2
Ye a r 1984
1984 36700 11796.8
36700 11796.8
1985
1985 38000 11793.9
38000 11793.9
12-36
Year Salary
CPI
300
300
200
1980
1980 29500 11953.0
29500 11953.0
200
1981
1981 31000 11380.3
31000 11380.3
100
100 1982
1982 33600 11610.2
33600 11610.2
0
0 1983
1983 35000 11729.2
35000 11729.2
1950 1960 1970 1980 1990 2000 2010
1950 1960 1970 1980
Year
Year
1990 2000 2010
1984
1984 36700 11796.8
36700 11796.8
1985
1985 38000 11793.9
38000 11793.9
12-37