Professional Documents
Culture Documents
)
SMOOTHING TECHNIQUES
They are used to remove, or at least reduce, the random fluctuations in a time
series so as to more clearly expose the existence of the other components.
Ex 1:
The daily (Monday – Friday) sales figures during the last four weeks were
recorded in a medium-size merchandising firm.
2
70
60
50
40 This time series seems to
Sales
This figure suggests that the longer the moving average period
i. the stronger the smoothing effect,
ii. the shorter the smoothed series.
When the moving average period is relatively large, along with the
random variations, the seasonal and cyclical variations are also
removed and only the long-term trend can be revealed.
4
– What if an even number of periods are used to calculate the moving
averages?
For example, if we calculate 4-period moving averages, MA(4) must be
placed to the middle of the ‘window’, i.e. between the second and third
observations involved in the arithmetic mean.
Since this makes interpretation and graphing difficulty, we prefer to use
centered moving averages which, in this case, are the 2-period moving
averages of the 4-period moving averages.
(Ex 1)
d) Calculate the 4-day centered moving averages, CMA(4).
Day Sales CMA(4)
MA(4)
1 43
2 45 33.8 30.8
33.8 32.3
3 22 32.3
30.8 2
4 25 31.5
32.3
5 31 34.6
37.0
6 51 38.5
40.0
7 41 etc.
etc.
5
• The second type of smoothing techniques is exponential smoothing.
S t wYt (1 w) S t 1
where St : exponentially smoothed value for time period t ;
St-1 : exponentially smoothed value for time period t -1;
Yt : observed value for time period t ;
w : smoothing constant, 0 < w < 1.
Note: a) Assuming that Y has been observed from t = 1, this formula can be
applied only from the second time period.
For t = 1 we set the smoothed value equal to the observed
value, i.e. S1 = Y1.
b) The smoothing constant determines the strength of smoothing,
the larger the value of w the weaker the smoothing effect.
c) The formula for the exponentially smoothed series can be expanded
as follows:
6
S t wYt (1 w) S t 1 wYt (1 w)( wYt 1 (1 w)S t 2 )
St-1
7
0.7 w(1-w)i
0.6
w = 0.6
0.5
0.4
0.3
w = 0.4
0.2
0.1 w = 0.2
0 i
1 2 3 4 5 6 7 8 9 10
This graph shows that if w = 0.2, w(1-w)i approaches zero relatively slowly and
even w(1-w)10 is substantial. On the other hand, if w = 0.6, w(1-w)i approaches
zero much faster and at i = 6 it is already negligible.
Ex 2:
Using the quarterly Australian unemployed persons (in thousands) data for the
years 1989-98 that stored in file Xr13-14,
a) Apply the exponential smoothing technique with w = 0.2 and w = 0.7.
8
Y S (w=0.2) S (w=0.7)
1989 1 1735.6 1735.6 1735.6 S1 Y1 1735.6
2 1507.9 1690.1 1576.2
S 2 wY2 (1 w)S1
3 1450.2 1642.1 1488.0
4 1402.7 1594.2 1428.3 0.2 1507.9 0.8 1735.6 1690.1
1990 1 1689.9 1613.3 1611.4 S 3 wY3 (1 w) S 2
2 1621.4 1615.0 1618.4
etc. etc. etc. 0.2 1450.2 0.8 1690.1 1642.1
b) Plot the time series and the exponential smoothed values on the same
graph.
3500
3000 If w = 0.7, St is quite similar
2500 to Yt, i.e. there is very little
2000 smoothing.
1500
1000 However, if w = 0.2, St does
500 not have the seasonal
0
pattern of Yt, i.e. there is far
more smoothing.
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
Y S (w=0.2) S (w=0.7)
9
HOW TO CAPTURE THE TREND, CYCLICAL AND
SEASONAL COMPONENTS?
• Smoothing procedures are used to facilitate the identification of the
systematic components of the time series. If we manage to decompose
the time series into the trend, seasonal and cyclical components, then
we can construct a forecast by projecting these parts into the future.
1) Trend analysis
The easiest way of isolating a long-term linear trend is by simple linear
regression, where the independent variable is the t time variable.
yt 0 1t t
and t is equal to 1 for the first time period in the sample and increases
by one each period thereafter.
After having created this variable, this linear time trend model can be
estimated as any other simple linear regression model.
Note: This model is not appropriate if the trend is likely to be non-linear.
10
Ex 3:
The graph below shows Australian exports of footwear ($m) from 1988 through
2000.
70
60
50
This time series has an upward trend,
40
which is perhaps linear, perhaps not.
30
20
10
1988 1990 1992 1994 1996 1998 2000
fwexport y-hat
ˆ1 4.505 Each year the trend value of footwear exports increases by
4.505 $m.
Therefore, for example, in 1988 (t = 1) it is yˆ 15.308 4.505 1 19.813 $m
and in 1999 (t = 12) it is yˆ 15.308 4.505 12 69.368 $m
12
2) Measuring the cyclical effect
Assume that the time series model is multiplicative and consists of only
two parts: the trend and the cyclical components so that
Yt
Yt Tt Ct Ct
Tt
Under these assumptions the cyclical effect can be measured by
expressing the actual data as the percentage of the trend:
yt
100 %
yˆ t
(Ex 3)
b) Calculate and plot the percentage of trend.
year t fwexport y-hat y/y-hat*100
1988 1 14 19.81 70.66 14 / 19.81*100 71
1989 2 23 24.32 94.58
1990 3 22 28.82 76.32 So in 1988 the actual exports of
1991 4 30 33.33 90.01 footwear were about 29% below
1992 5 etc. etc. etc. the trend line.
13
Boom
130
Expansion phase
120
110
100
90
Recession
80
Contraction phase
70
y / yˆ 100
60
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000
Note: We have assumed that the time series pattern does not have a
seasonal component and that the random variations are negligible.
In Ex 3 the first of these assumptions is certainly satisfied since the data
is annual.
However, when these assumptions are invalid, we should remove the
seasonal and random variations before attempting to identify the trend
and cyclical components.
14
3) Measuring the seasonal effect
Depending on the nature of the time series, the seasonal variations can
be captured in different ways.
i. Assume, for example, that the time series does not contain a
discernible cyclical component and can be described by the
following multiplicative model
Yt
Yt Tt S t Rt S t Rt
Tt
This suggests that dividing the estimated trend component (y-hat)
into the time series we obtain an estimate for the product of the
seasonal and random variations.
Seasonal factor: yt / yˆ t
15
Ex 4:
The graph below shows retail turnover for households goods ($m) for Australia
from the second quarter of 1982 through the fourth quarter of 2000.
4500
This time series has an upward linear
4000
trend and quarterly seasonal variations.
3500
3000
It probably has some cyclical variations
2500
too, but this third component seems to be
2000
less significant than the other two.
1500
Dec-82 Dec-85 Dec-88 Dec-91 Dec-94 Dec-97 Dec-00
yˆ 1589.189 36.604t
16
yˆ 1589.189 36.604t
17
Year Q1 Q2 Q3 Q4
1982 0.955 0.964 1.208
1983 0.960 0.948 0.962 1.240
1984 0.948 0.890 0.905 1.163
18
ii. When the time series model is multiplicative and has all four parts,
i.e. a trend, a cyclical component, a seasonal component and
random variations,
Yt Tt Ct S t Rt
the data is first divided by (centered) moving averages, which are
supposed to capture the trend and cyclical components,
Yt Yt
CMAt Tt Ct St Rt
CMAt Tt Ct
Then the seasonal factors and indices are calculated from these
ratio-to-moving averages: Yt / CMAt
and the trend and cyclical components are estimated from the
centered moving averages, instead of the original data.
Note: The order of the centered moving average must be equal to the number
of seasons. For example, we use 4-quarter CMA if the data is quarterly
and seasonality has 4 phases a year, and we use 12-month CMA if the
data is monthly and seasonality has 12 phases a year.
19
(Ex 4)
c) Re-estimate the seasonal component using the ratio-to-moving average
instead of the original data.
quarter t retail cma(4)
Jun-82 1 1553.2 MISSING Following the same steps than in part (b)
Sep-82 2 1601.9 MISSING we get the following seasonal indices:
Dec-82 3 2052.2 1734.2
Mar-83 4 1666.0 1767.3 I Mar 93.0% I Jun 94.8% I Sep 96.5% I Dec 115.7%
Jun-83 5 1680.4 1814.0
Sep-83 6 etc. etc.
This time there is not much difference between the indices computed from the
original data and the indices computed from the centered moving averages.
E.g.: For the June quarter of 1982 the seasonally adjusted retail turnover is
1553.2 / 94.8 100 1638.2 $m
20