Forecasting: Course: Production & Operation Analysis Effective Period: September 2015
Forecasting: Course: Production & Operation Analysis Effective Period: September 2015
Forecasting
Session 1
D1316 – Production and
Operations Analysis
What is Forecasting
Causal Models are ones that use data from sources other
than the series being predicted; that is, there may be
other variables with values that are linked in some way
to what is being forecasted
20
15
Actual
Value
Value
Forecast
10
0
1 2 3 4 5 6 7 8 9 10 11 12
Time
Weighted Moving Average
Three-Month Weighted Moving Averages
Actual
Period Value Weights
Januari 10 0.222
Februari 12 0.593
Maret 16 0.185
April 13 2.2 + 7.1 + 3 / 1 = 12.298
Mei 17 2.7 + 9.5 + 2.4 / 1 = 14.556
Juni 19 3.5 + 7.7 + 3.2 / 1 = 14.407
Juli 15 2.9 + 10 + 3.5 / 1 = 16.484
Agustus 20 3.8 + 11 + 2.8 / 1 = 17.814
September 22 4.2 + 8.9 + 3.7 / 1 = 16.815
Oktober 19 3.3 + 12 + 4.1 / 1 = 19.262
November 21 4.4 + 13 + 3.5 / 1 = 21.000
Desember 19 4.9 + 11 + 3.9 / 1 = 20.036
Tuesday 0.74
Wednesday 0.84
Thursday 1.04
Friday 1.4
• You should satisfy yourself that these factors do sum
to 5 as required
• Interpret the results in the following way: Mondays
are an average day because the factor for Mondays
is very close to 1
• The usage is lowest on Tuesdays, about 26% below
the average, and highest on Fridays, about 40%
above the average
• Forecasts for the numbers of cars using the bridge
on any day of the week would be obtained by
multiplying the sample mean of 16.425 by the
appropriate seasonal factor. Hence, usage forecasts
by day of the week (in thousands of cars) would be
Monday 16.1
Tuesday 12.1
Wednesday 13.8
Thursday 17.1
Friday 23
Seasonal Decomposition Using Moving Averages
35
30
25
20
Demand
15
10
0
1 2 3 4 5 6 7 8
Time
The picture suggests that these data represent 2 seasons, with each season
being 4 periods long. The next step is to compute all 4 period moving
averages. This gives:
Period Demand MA (4)
1 10
2 20
3 26
4 17 18.25
5 12 18.75
6 23 19.5
7 30 20.5
8 22 21.75
1 10 18.81 0.532
2 20 18.81 1.063
3 26 18.5 1.405
4 17 19.125 0.888
5 12 20 0.6
6 23 21.125 1.089
7 30 20.56 1.463
8 22 20.56 1.07
Period Factor
1 0.558
2 1.061
3 1.415
4 0.966
• The sum of these final seasonal factors is exactly 4.
Based on the given data, these factors tell us that, on
average, the first quarter of each year results in sales
that are about 45% below the yearly average, the
second quarter in sales that are about 6% above the
yearly average and so on.
• The next step in the process is to divide each
observation by the appropriate seasonal factor in
order to obtain the deseasonalized demand
(A) (B) Deseasonalized
Demand Factor Demand (A/B)
10 0.558 17.92
20 1.061 18.85
26 1.415 18.39
17 0.966 17.6
12 0.558 21.5
23 1.061 21.68
30 1.415 21.22
22 0.966 22.77
A forecast can now be made based on the deseasonalized demand, which must be
reseasonalized by multiplying by the appropriate seasonal factor.
As an example, suppose that we were using a 6 month moving average to forecast
the deseasonalized series. The average of the last 6 observations is 20.52.
This number is then multiplied by the appropriate seasonal factor to obtain
forecasts of future demand. The forecast for period 9 is (20.52)(0.558) = 11.45, for
period 10 is (20.52)(1.061) = 21.77 and so on.
• However, because the deseasonalized series exhibits a trend, it
would be more appropriate to apply a trend based method such as
holt’s method or regression analysis to the deseasonalized series
• If we use regression analysis, we obtain the least squares fit of the
data as Dt=16.8+0.7092t
• Suppose that we are interested in forecasting at the end of period 8
for periods 9 through 12. Substituting t equals 9 through 12 into the
regression equation gives the forecasts of the deseasonalized
series for the following year as 23.18, 23.89, 24.6 and 25.31
• Each of these forecasts is then reseasonalized by multiplying by the
appropriate seasonal factor
• The forecasts obtained by this method for the following year
(periods 9 through 12) are respectively 12.93, 25.35, 34.81 and
24.45
Winter’s Method for Seasonal Problems
0
1
V2
N
D
j N 1
j
• Normalize the
seasonal factors cj
cj N 1 N
ci
i 0
Period Obs. Period Obs.
2001 Demand 2002 Demand
1st 10 1st 12
2nd 20 2nd 23
3rd 26 3rd 30
4th 17 4th 22
• V1 = (10+20+26+17)/4 = 18.25
• V2 = (12+23+30+22)/4 = 21.75
• G0 = (21.75-18.25)/4 = 0.875
• S0 = 21.75+(0.875)(1.5) = 23.06
• The initial seasonal factors are computed as follows:
10
C7 0.5904
18.25 (5 / 2 1)( 0.875)
20
C6 1.123
18.25 (5 / 2 2)(0.875)
• The other factors are computed in a similar fashion. They
are
c-5 = 1.391 c-2 = 1.079
c-4 = 0.869 c-1 = 1.352
c-3 = 0.5872 c0 = 0.9539
• We then average C-7 and C-3, C-6 and C-2, and so on, to
obtain the four seasonal factors
c-3 = 0.5888, c-2 = 1.1010, c-1 = 1.3720, c0 = 0.9115
• Finally norming the factors to ensure that the sum is 4 results in
c-3 = 0.5900, c-2 = 1.1100, c-1 = 1.3800, c0 = 0.9200
• Suppose that we wish to forecast the following year’s demand at
time t=0. The forecasting equation is
Ft,t+ = (St + Gt)c t+ -N which results in
F0,1 = (S0+G0)c-3 = (23.06+0.875)(0.59)=14.12
F0,2 = (S0+2G0)c-2 = [23.06+(2)(0.875)](1.11)=27.54
F0,3 = 35.44
F0,4 = 24.38
Now, suppose at that time t=1 we observe a demand of
D1=16
We now need to update our equations. Assume that
α=0.2, β=0.1, γ=0.1
St Dt / Ct N (1 )( St 1 Gt 1)
S1 = 0.2 (D1/c-3)+(1-0.2)(S0+G0)
= 0.2 (16/0.59) + (0.8)(23.06+0.875) = 24.57
Gt [ St St 1] (1 )Gt 1
ct ( Dt / St ) (1 )ct N
C1 = 0.1(D1/S1)+(1-0.1)C-3
= 0.1(16/24.57)+(0.9)(0.59) = 0.5961
Key Point