MM CH 8 Revision 2023
MM CH 8 Revision 2023
Chapter 8 Revision
1. Describe a typical decomposition of a time series. Which components would you describe
as systematic, and how would you describe the others?
2. When might you forecast one period ahead, and when might you forecast five periods
ahead, say? Give an example of each.
3. Deduce the weights in the simple exponential smoothing forecasting model, and show that
the weights are decreasing when 0 < < 1.
4. The monthly demand for a product for 2007 is given in the table. Find the trend in the
monthly demand using exponential smoothing with a smoothing constant of 0.8
5. Which components would you expect to be important in modelling the following time
series?
1. Sales of sunspecs
2. The price of metals
3. Share price of Keppel Corporation.
6. The following forecasting equation is proposed for a set of sales data, Xt.
Xt = Xt – 1 + (1 – )Xt – 2 + εt
where εt is an error term; = 0.6. Ten observations are given below:
t 1 2 3 4 5 6 7 8 9 10
Xt 60 52 58 47 49 54 51 46 52 59
(a) Evaluate the one period ahead forecasts provided by the equation.
(b) Calculate the mean square error.
(c) Find an expression for an N period ahead forecast.
Evaluate a forecast made at time t = 10, for N = 4 periods ahead.
MM 2023-24 Kumaresan 1
Chapter 8 Forecasting
(a) Find the forecast demand for each month up to January 2008, starting with April 2007 by
using a three-month moving average.
(b) Find the forecast demand for January 2008 by using exponential smoothing with a
smoothing constant of 0.9.
(c) On the assumption that a forecasting method is assessed by its mean absolute deviation,
which is the better of the two methods in parts (a) and (b)?
8. The annual amount spent on advertising by a company between 2000 and 2008 is shown
in the following table. (The advertising figures are all in millions of dollars)
Year 00 01 02 03 04 05 06 07 08
Advertising 3.1 5.1 4.4 4.9 6.3 5.2 6.9 7.6 8.4
(a) Using a 3-point moving average, smooth out this time series and hence estimate
graphically the trend values in 2009 and 2010.
(b) Compare these estimates with those obtained using exponential smoothing using a
smoothing constant of 0.4
MM 2023-24 Kumaresan 2
Chapter 8 Forecasting
9. The numbers of drunk drivers stopped each day over a four-week period are shown in the
following table:
Week 1 2 3 4
Day
Monday 11 7 7 6
Tuesday 6 8 3 7
Wednesday 17 19 12 16
Thursday 12 15 8 11
Friday 48 41 50 47
Saturday 42 36 40 35
Sunday 28 31 26 24
(a) Using 7-point moving averages, isolate the trend for this time series.
Using a graphical method or otherwise, estimate the trend during each day in week 5.
(b) Assuming a multiplicative model, estimate the ‘seasonal (i.e. daily) variations’ for the
data, and hence forecast the number of drunk drivers stopped on each day in week 5.
10. Two forecasting equations are proposed for a set of sales data, Xt.
(1) Xt = Xt – 1 + t
(2) Xt = + t – 1 + t
where t is an error term; is 1.1, is 90, and is 0.2. Ten observations are given:
t Xt
1 105.1
2 112.8
3 99.6
4 104.9
5 110.2
6 107.7
7 115.8
8 118.1
9 113.5
10 120.3
MM 2023-24 Kumaresan 3
Chapter 8 Forecasting
11. The table below shows the total export orders (in $m) for a company during 2004-07:
Total exports ($ millions)
Year Jan-Apr May-Aug Sep-Dec
2004 28 37 52
2005 34 43 61
2006 34 46 64
2007 40 58 79
13. Briefly discuss how one might choose between a multiplicative and additive seasonal
forecasting model.
14. Write down the general formula for each of the following.
(a) An autoregressive model, AR(3), of order 3.
(b) A moving average model, MA(3), of order 3.
(c) A mixed autoregressive moving average model, ARIMA(3, 3).
15. For each of the following three time series A, B and C (recorded from year 2002 to 2011),
decide whether a 2-year, 3-year or 4-year moving average is most appropriate.
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011
A 12 9 14 10 16 12 19 13 21 15
B 60 55 54 58 51 45 43 48 41 35
C 30 38 35 33 40 37 34 43 36 34
MM 2023-24 Kumaresan 4
Chapter 8 Forecasting
Using a decomposition approach, each component is estimated, and then these estimates
are re-combined to form a forecast.
The trend of a time series is the systematic increase (or decrease) of the variable over a
‘long’ period of time. The trend line is a smooth line, indicating the path of the time series,
ignoring the other three components. When forecasting, the trend is usually taken to be a
straight line, which is extrapolated (extended) to estimate the trend in the future. The trend
could be found by using exponential smoothing or by taking a moving average of the data,
a process that is called ‘smoothing’.
Seasonal variations in a time series are periodic patterns that complete themselves within
a year, and are then repeated in subsequent years.
Seasonal variations might be due to holidays, the weather, or financial year ends, for
example. In the UK, with its changing climate, we might expect domestic fuel
consumption to peak in the winter, and to drop to a low in the summer, so the time series
for domestic fuel consumption in the UK has seasonal variation.
Cyclical variation is the component of a time series that oscillates about the trend line,
with the length of a cycle being longer than one year. The oscillations do not arise from
seasonal influences.
After trend, cyclical and seasonal variations have been eliminated from a time series, there
is still an unpredictable factor called random variation that follows a random pattern.
Random variation in a time series might be caused by unusual events that cannot be
forecasted.
**************************************************************
MM 2023-24 Kumaresan 5
Chapter 8 Forecasting
2. You might forecast one period ahead when there is a lot of random variation in the time
series, and no discernible trend. Example: when forecasting a stock market index.
You might forecast five periods ahead, say, when there does appear to be a discernible
trend. Example: when forecasting the sales of a well-established magazine.
**************************************************************
3. Simple exponential smoothing model: Ft = Xt – 1 + (1 – )Ft – 1 ……….. (*)
Suppose 0 < < 1.
Ft = Xt – 1 + (1 – )[Xt – 2 + (1 – )Ft – 2] , replacing t by t – 1 in (*)
= Xt – 1 + (1 – )Xt – 2 + (1 – )2Ft – 2
= Xt – 1 + (1 – )Xt – 2 + (1 – )2[Xt – 3 + (1 – )Ft – 3] , replacing t by t – 2 in (*)
= Xt – 1 + (1 – )Xt – 2 + (1 – )2Xt – 3 + (1 – )3Ft – 3
= Xt – 1 + (1 – )Xt – 2 + (1 – )2Xt – 3 + (1 – )3[Xt – 4 + (1 – )Ft – 4]
= Xt – 1 + (1 – )Xt – 2 + (1 – )2Xt – 3 + (1 – )3Xt – 4 + (1 – )4Ft – 4
This process carries on until we reach F1.
0 < < 1. So, the weights , (1 – ), (1 – )2, (1 – )3, … are decreasing since the
common ratio is 1 – . where 0 < 1 – < 1.
**************************************************************
4. T1 = X1 = 480, Tt = Tt – 1 + 0.8(Xt – Tt – 1) for t 2.
For example, T2 = T1 + 0.8(X2 – T1) = 480 + 0.8(500 – 480) = 496,
T3 = T2 + 0.8(X3 – T2) = 496 + 0.8(630 – 496) = 603.2
**************************************************************
MM 2023-24 Kumaresan 6
Chapter 8 Forecasting
5.
Time Series Important Components
Seasonal (expect increase in summer and
Sales of sunspecs
holidays), trend
The price of metals Cyclical, trend, random variation
Share price of Keppel Corporation Trend, random variation
**************************************************************
6. (a) Xt = Xt – 1 + (1 – )Xt – 2 + t, where t = Xt – Ft and = 0.6
Xt = 0.6Xt – 1 + 0.4Xt – 2 + Xt – Ft
Ft = 0.6Xt – 1 + 0.4Xt – 2
A suitable forecast for the equation is
t Xt Ft (Xt – Ft)2
1 60
2 52
3 58 55.2 7.84
4 47 55.6 73.96
5 49 51.4 5.76
6 54 48.2 33.64
7 51 52 1
8 46 52.2 38.44
9 52 48 16
10 59 49.6 88.36
11 56.2
265
X t Ft 2
(b) MSE =
n
265
MSE = = 33.125
8
MM 2023-24 Kumaresan 7
Chapter 8 Forecasting
t–1 (0.4)t 5
Put N = –1: Ft – 1 = A + B(–0.4) =A+B = A – B(–0.4)t …… (2)
0.4 2
7 2( Ft Ft 1 )
(1) – (2): Ft – Ft – 1 = B(–0.4)t B =
2 7(0.4)t
2( Ft Ft 1 )
From (1), A = Ft –
7
2( Ft Ft 1 ) 2( Ft Ft 1 )
Hence, the solution we want is Ft + N = Ft – + (–0.4)N
7 7
Reverting back to X, the N-period-ahead forecast is:
2( X t X t 1 ) 2( X t X t 1 ) 2( X t X t 1 )
Ft + N = Xt – + (–0.4)N = Xt + [(–0.4)N – 1]
7 7 7
2( X 10 X 9 )
With t =10 and N = 4, we obtain F14 = X10 + [(–0.4)4 – 1]
7
= 59 + 2[(–0.4)4 – 1] = 57.0512
Checking:
Ft = 0.6Xt – 1 + 0.4Xt – 2
So, F12 = 0.6X11 + 0.4X10 = 0.6F11 + 0.4X10 = 0.6(56.2) + 0.4(59) = 57.32
So, F13 = 0.6X12 + 0.4X11 = 0.6F12 + 0.4F11 = 0.6(57.32) + 0.4(56.2) = 56.872
So, F14 = 0.6X13 + 0.4X12 = 0.6F13 + 0.4F12 = 0.6(56.872) + 0.4(57.32) = 57.0512
****************************************************************
MM 2023-24 Kumaresan 8
Chapter 8 Forecasting
7. (a) (b)
X1 X 2 X 3 36 32 31
For example, F4 = = = 33
3 3
X t Ft 26
(c) For 3-month moving average, MAD = = 2.89
n 9
20 .66
For exponential smoothing, MAD 2.30
9
The MAD is lower for the exponential smoothing forecast, so exponential smoothing with
= 0.9 is the better of the two forecasting methods for the given time series.
**************************************************************
MM 2023-24 Kumaresan 9
Chapter 8 Forecasting
X t 1 X t X t 1
8. (a) The 3-point moving average trend is given by Tt =
3
X1 X 2 X 3 3.1 5.1 4.4
For example, T2 = = = 4.2 (trend for 2001)
3 3
(a) (b)
Advertising 3-year moving Exp Smoothing
Year average trend Forecast ( = 0.4)
t Xt Tt Ft
2000 1 3.1 3.1
2001 2 5.1 4.2 3.1
2002 3 4.4 4.8 3.9
2003 4 4.9 5.2 4.1
2004 5 6.3 5.46667 4.42
2005 6 5.2 6.13333 5.172
2006 7 6.9 6.56667 5.1832
2007 8 7.6 7.63333 5.86992
2008 9 8.4 6.561952
2009 10 7.2971712
Extrapolating a best-fit line (by inspection), I estimate the 3-point trend to be 8.5 in 2009,
and 9.0 in 2010.
MM 2023-24 Kumaresan 10
Chapter 8 Forecasting
X t 3 X t 2 X t 1 X t X t 1 X t 2 X t 3
Tt =
7
Example:
X1 X 2 X 3 X 4 X 5 X 6 X 7
T4 =
7
11 6 17 12 48 42 28
= 23.42857
7
20 .85714 23.42857
Trend is = –0.1224 per season, referring to table.
25 4
The latest trend figure we have is 20.857 on Thursday in week 4. 29 – 25 = 4
MM 2023-24 Kumaresan 11
Chapter 8 Forecasting
Xt X 12
(b) Multiplicative model: Seasonal ratio = . Example: S4 = 4 = 0.512
Tt T4 23.42857
Seasonal ratios
Mon Tue Wed Thu Fri Sat Sun
Week 1 0.512 2.1 1.815 1.195
Week 2 0.293 0.35 0.864 0.669 1.828 1.658 1.497
Week 3 0.355 0.143 0.556 0.384 2.414 1.879 1.190
Week 4 0.269 0.320 0.757 0.527
Average
A B C D E F G
Seasonal
0.306 0.271 0.726 0.523 2.114 1.784 1.294
Ratio
A B C D E F G
Seasonal
H H H H H H H
variation
0.305 0.270 0.724 0.522 2.109 1.779 1.291
A B C D E F G 7 .018
H=
7 7
Forecast for nth season = Seasonal variation Estimated trend Multiplicative model
Season Forecast
Monday 0.305 20.37 6.2
Tuesday 0.270 20.25 5.5
Wednesday 0.724 20.13 14.6
Thursday 0.522 20.01 10.4
Friday 2.109 19.89 41.9
Saturday 1.779 19.77 35.2
Sunday 1.291 19.65 25.4
**************************************************************
MM 2023-24 Kumaresan 12
Chapter 8 Forecasting
X t Ft 2
RMSE =
9
1
For forecast (1), RMSE 1221.847 11.65
3
1
For forecast (2), RMSE 3381.265 19.38
3
MM 2023-24 Kumaresan 13
Chapter 8 Forecasting
X t 1 X t X t 1
11. (a) The 3-point moving average trend is given by Tt =
3
X1 X 2 X 3 28 37 52
For example, T2 = = = 39
3 3
Xt X 37
(b) Multiplicative model: Seasonal ratio = . Example: S2 = 2 = 0.94872
Tt T2 39
Seasonal ratios
Jan-Apr May-Aug Sep-Dec
2004 0.94872 1.26829
2005 0.79070 0.93478 1.32609
2006 0.72340 0.95833 1.28
2007 0.74074 0.98305
Average seasonal ratio A 0.7516 B 0.9562 C 1.2915
A B C
Seasonal variation 0.7518 0.9564 1.2918
H H H
A BC 2.9993
H=
3 3
59 39
Trend is = 2.2222 per season, from table in (a).
11 2
The latest trend figure we have is 59 in the 2nd season in 2007. 13 – 11 = 2
MM 2023-24 Kumaresan 14
Chapter 8 Forecasting
Forecast for nth season = Seasonal variation Estimated trend Multiplicative model
(c)
Seasonal difference Xt – Tt
Jan-Apr May-Aug Sep-Dec
2004 –2 11
2005 –9 –3 15
2006 –13 –2 14
2007 –14 –1
Average seasonal difference A = –12 B = –2 C 13.3333
A–H B–H C–H
Seasonal variation
–11.7778 –1.7778 13.5556
A BC 0.6667
Additive model: H =
3 3
Forecast for nth season = Seasonal variation + Estimated trend … Additive Model
X t Ft 2
(d) RMSE =
3
2 2 2
(48 47.70) (65 62.80) (85 87.70)
For multiplicative model, RMSE = 2.02
3
2 2 2
(48 51.67) (65 63.89) (85 81.44)
For additive model, RMSE = 3.02
3
**************************************************************
MM 2023-24 Kumaresan 15
Chapter 8 Forecasting
61.73 70
Model 1: Absolute percentage error for period 2 is 100% 11.814%
70
The mean absolute percentage errors (for periods two to ten) are
1 1
(115.94) 12.9% for Model 1 and (164.09) 18.2% for Model 2,
9 9
Hence, model 1 gives the lowest mean absolute percentage error (for periods two to ten).
MM 2023-24 Kumaresan 16
Chapter 8 Forecasting
Xt
This re-arranges to give the seasonal ratio St = t
Tt
We hope that the sum of the average seasonal ratios for the n seasons will be close to n.
MM 2023-24 Kumaresan 17