Professional Documents
Culture Documents
SCM Quiz 1
SCM Quiz 1
Forecasting models
Judgement
Old realizations of
demand: y1, …, yt
Old realizations of
variables: x1, …, xt Forecasting Forecast for: yt+1
Process
Subjective opinions
about the future
Case 1: Forecasting the Trend Form
• A constant increase or decrease in demand
denotes
– Linear trend
– Model
• Forecast (t) = a + b * t
Case 1: Forecasting the Trend Form …
Calculations
t D(t) t-Tavg D(t) - Davg (t-Tavg) * (D(t)-Davg) (t-tavg)^2 Forecast Abs error
1 328 -7.5 -78.81 591.09 56.25 326.40 1.60
2 310 -6.5 -96.81 629.28 42.25 337.12 27.12
3 355 -5.5 -51.81 284.97 30.25 347.84 7.16
4 362 -4.5 -44.81 201.66 20.25 358.56 3.44
5 375 -3.5 -31.81 111.34 12.25 369.29 5.71
6 380 -2.5 -26.81 67.03 6.25 380.01 0.01
7 408 -1.5 1.19 -1.78 2.25 390.73 17.27
8 415 -0.5 8.19 -4.09 0.25 401.45 13.55
9 417 0.5 10.19 5.09 0.25 412.17 4.83
10 412 1.5 5.19 7.78 2.25 422.90 10.90
11 429 2.5 22.19 55.47 6.25 433.62 4.62
12 434 3.5 27.19 95.16 12.25 444.34 10.34
13 449 4.5 42.19 189.84 20.25 455.06 6.06
14 471 5.5 64.19 353.03 30.25 465.78 5.22
15 475 6.5 68.19 443.22 42.25 476.51 1.51
16 489 7.5 82.19 616.41 56.25 487.23 1.77
Mean 8.5 406.8125 7.57
Sum 3645.50 340.00
b 10.72206
a 315.675
Different Estimates of Forecast Error
Absolute Square Absolute
Month Sales Forecast Error Deviation Error % Error
1 328 326 2 2 4 0.61%
2 310 337 -27 27 729 8.71%
3 355 348 7 7 49 1.97%
4 362 359 3 3 9 0.83%
5 375 369 6 6 36 1.60%
6 380 380 0 0 0 0.00%
7 408 391 17 17 289 4.17%
8 415 401 14 14 196 3.37%
9 417 412 5 5 25 1.20%
10 412 423 -11 11 121 2.67%
11 429 434 -5 5 25 1.17%
12 434 444 -10 10 100 2.30%
13 449 455 -6 6 36 1.34%
14 471 466 5 5 25 1.06%
15 475 476 -1 1 1 0.21%
16 489 487 2 2 4 0.41%
Mean 0.0625 7.5625 103.0625 1.98%
ME MAD MSE MAPE
Case 2: Forecasting Seasonality …
Some Equations
• Seasonality index of period i for block j
– S(i, j) = (di)/[(d1 + d2 + … + dp)/p]
• For each period i within block j
• Average seasonality index for period i within a
block
– S(i)
Case 2: Forecasting Seasonality … Analysis
Period Seasonal
within Index of
Time Block block Demand Average Period
1 1 6 0.03
2 2 55 0.23
1 239
3 3 249 1.04
4 4 646 2.70
5 1 24 0.12
6 2 73 0.36
2 201.5
7 3 140 0.69
8 4 569 2.82
9 1 12 0.06
10 2 28 0.14
3 201.75
11 3 136 0.67
12 4 631 3.13
Case 2: Forecasting Seasonality …Seasonality
Index Calculation
Average
Seasonality
Period/Block S(i, 1) S(i, 2) S(i, 3) Index
1 0.03 0.12 0.06 0.07
2 0.23 0.36 0.14 0.24
3 1.04 0.69 0.67 0.80
4 2.70 2.82 3.13 2.88
Case 2: Forecasting Seasonality … De-
seasonalizing Demand
• De-seasonalized demand data (t)
– Demand(t)/S(t)
• Forecast (t)
– [Level (t)] * Seasonal index (t)
Case 2: Forecasting Seasonality …
Calculations
Period
within Average Seasonality
Time Block Block Demand Demand Index
1 1 45 0.18
2 2 335 1.34
1 250
3 3 520 2.08
4 4 100 0.40
5 1 70 0.23
6 2 370 1.23
2 300
7 3 590 1.97
8 4 170 0.57
9 1 100 0.22
10 2 585 1.30
3 450
11 3 830 1.84
12 4 285 0.63
13 1 100 0.17
14 2 725 1.26
4 573.75
15 3 1160 2.02
16 4 310 0.54
Case 3: Forecasting Combination of
Seasonality and Trend … Analysis
Average
Seasonality
Period/Block 1 2 3 4 Index
1 0.18 0.23 0.22 0.17 0.20
2 1.34 1.23 1.30 1.26 1.28
3 2.08 1.97 1.84 2.02 1.98
4 0.40 0.57 0.63 0.54 0.54
Case 3: Forecasting Combination of
Seasonality and Trend … Analysis
De-
seasonlized
Time Demand t-Tavg D(t) - Davg (t-Tavg) * (D(t) - Davg) (t-tavg)^2
1 222 -7.5 -172 1290.14 56.25
2 261 -6.5 -133 867.28 42.25
3 263 -5.5 -131 722.82 30.25
4 187 -4.5 -207 933.27 20.25
5 346 -3.5 -49 169.89 12.25
6 288 -2.5 -106 265.44 6.25
7 298 -1.5 -96 144.05 2.25
8 318 -0.5 -77 38.29 0.25
9 494 0.5 100 49.82 0.25
10 456 1.5 61 91.86 2.25
11 420 2.5 25 63.21 6.25
12 533 3.5 138 484.23 12.25
13 494 4.5 100 448.37 20.25
14 565 5.5 170 936.40 30.25
15 586 6.5 192 1248.66 42.25
16 579 7.5 185 1388.05 56.25
Mean 8.5 394.28
Sum b 27 9141.77 340
a 165.74
Case 3: Forecasting Combination of
Seasonality and Trend … Analysis
N MAD
2 3.27
3 3.21
4 2.78
5 2.79
6 3.08
Simple Exponential Smoothing
• A time series that fluctuates about a base level
• At = αxt + (1 – α) At-1
• A0 = 32
• α = 0.1
Simple Exponential Smoothing
Calculations
Month TV Sa le s Fore ca st At et
1 30 32 31.8 2.00
2 32 31.8 31.82 0.20
3 30 31.82 31.64 1.82
4 39 31.64 32.37 7.36
5 33 32.37 32.44 0.63
6 34 32.44 32.59 1.56
7 34 32.59 32.73 1.41
8 38 32.73 33.26 5.27
9 36 33.26 33.53 2.74
10 39 33.53 34.08 5.47
11 30 34.08 33.67 4.08
12 36 33.67 33.91 2.33
13 38 33.91 34.32 4.09
14 30 34.32 33.88 4.32
15 35 33.88 34.00 1.12
16 30 34.00 33.60 4.00
17 34 33.60 33.64 0.40
18 40 33.64 34.27 6.36
19 36 34.27 34.45 1.73
20 32 34.45 34.20 2.45
21 40 34.20 34.78 5.80
22 36 34.78 34.90 1.22
23 40 34.90 35.41 5.10
24 34 35.41 35.27 1.41
Simple Exponential Smoothing
Alpha MAD
0.05 3.20
0.1 3.04
0.15 2.94
0.2 2.89
0.25 2.88
0.3 2.90
0.35 2.94
0.4 2.98
0.45 3.05
0.5 3.14
Holt’s Method: Exponential Smoothing with
Trend
• Base Level at the end of tth period = Lt
• The per-period trend at the end of tth period = Tt
– For e.g., if L20 = 20 and T20 = 2. Implication?
• Lt = αxt + (1 – α) (Lt-1 + Tt-1)
• Tt = β(Lt - Lt-1 ) + (1 – β) Tt-1
• Ft,k = Lt + k * Tt
• T0 = average monthly increase in the time series
during the previous year
• L0 = Last month’s observation
Holt’s Method Calculations
• Let, the CD sales during each of the last 12
months are given by 4, 6, 8, 10, 14, 18, 20, 22,
24, 28, 31, 34.
• T0 = [(6 - 4) + (8 – 6) + (10 – 8) + … + (34 – 31)]/11 = 2.73
• L0 = 34
• α = 0.3
• β = 0.1
Holt’s Method Calculations
ft-1,1
(= Lt-1+Tt- e t (xt - ft-
Month CD Sale s Lt Tt 1) 1,1)
1 40 37.71 2.83 36.73 3.27
2 47 42.47 3.02 40.53 6.47
3 50 46.85 3.15 45.49 4.51
4 49 49.70 3.12 50.00 1.00
5 56 53.78 3.22 52.82 3.18
6 53 55.80 3.10 57.00 4.00
7 55 57.73 2.98 58.90 3.90
8 63 61.40 3.05 60.71 2.29
9 68 65.51 3.16 64.45 3.55
10 65 67.57 3.05 68.67 3.67
11 72 71.03 3.09 70.62 1.38
12 69 72.59 2.94 74.12 5.12
13 79 76.57 3.04 75.52 3.48
14 82 80.32 3.11 79.61 2.39
15 80 82.40 3.01 83.44 3.44
16 85 85.29 3.00 85.41 0.41
17 94 90.00 3.17 88.29 5.71
18 89 91.92 3.04 93.17 4.17
19 96 95.27 3.07 94.96 1.04
20 100 98.84 3.12 98.35 1.65
21 100 101.38 3.06 101.97 1.97
22 105 104.61 3.08 104.44 0.56
23 108 107.78 3.09 107.69 0.31
24 110 110.61 3.06 110.87 0.87
Choice of α & β
Beta
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
0.1 2.86 2.80 2.74 2.70 2.75 2.80 2.83 2.86 2.92
0.2 2.77 2.73 2.76 2.79 2.84 2.92 2.97 2.98 2.99
0.3 2.85 2.87 2.91 2.95 2.99 3.04 3.13 3.22 3.29
Alpha 0.4 2.96 3.00 3.05 3.11 3.17 3.23 3.30 3.35 3.39
0.5 3.07 3.13 3.19 3.25 3.31 3.36 3.43 3.50 3.58
0.6 3.19 3.26 3.33 3.40 3.48 3.59 3.69 3.78 3.88
0.7 3.32 3.39 3.47 3.60 3.72 3.84 3.95 4.07 4.21
0.8 3.43 3.53 3.67 3.81 3.94 4.07 4.27 4.47 4.68
0.9 3.54 3.69 3.85 4.02 4.23 4.46 4.69 4.95 5.25
Winter’s Method
• c = number of periods in the length of the seasonal
pattern
c = 12 for monthly data.
• st = seasonal multiplicative factor for month t,
obtained after observing xt.
Winter’s Method
• Lt = α(xt/st-c) + (1 – α) (Lt-1 + Tt-1)
• Tt = β(Lt - Lt-1 ) + (1 – β) Tt-1
• st = γ (xt/Lt) + (1 – γ) st-c
• ft,k = (Lt + k * Tt) * St+k-c
Initialization of Winter’s Method
• L0 = estimate of base at beginning of month 1
• T0 = estimate of trend at beginning of month 1
• S-11 = estimate of January seasonal factor at the
beginning of month 1
• S-10 = estimate of February seasonal factor at the
beginning of month 1
• .
• S0 = estimate of December seasonal factor at the
beginning of month 1.
Initialization of Winter’s Method
• Variety of methods are available to estimate
above parameters
• A simple approach:
– Suppose we have two years of data
• Year –2: 4, 3, 10, 14, 25, 26, 38, 40, 28, 17, 16, 13
• Year –1: 9, 6, 18, 27, 48, 50, 75, 77, 52, 33, 31, 24
• Total sales during year –2 = 234
• Total sales during year –1 = 450
Initialization of Winter’s Method
• T0 = [(Avg. monthly sales during year –1) – (Avg.
monthly sales during year –2)]/12
– T0 = 1.5
• L0 = Avg. monthly demand during year –1.
– Further correction
• This estimates the base at the middle of the year –1
– Month 6.5 of year –1
» Hence, to bring this estimate to the end of the year
» Add, (12 – 6.5)T0 = 5.5T0
» L0 = 37.5 + 5.5(1.5) = 45.75
Initialization of Winter’s Method
• To estimate the seasonality factor for a given
month (say, January = s-11)
– we take an estimate of January seasonality of year
–2 and year –1 and average them.
– In year –2, average monthly demand = 19.5
– In January of year –2, number of ACs sold = 4
• Therefore, s-11 = [(4/19.5) + (9/37.5)]/2 = 0.22
Initialization of Winter’s Method
• s-10 = 0.16, s-9 = 0.50, s-8 = 0.72, s-7 = 1.28, s-6 = 1.33, s-5 = 1.97, s-
4 = 2.05, s-3 = 1.41, s-2 = 0.88, s-1 = 0.82, s0 = 0.65
Slope = P - D Slope = - D
Q(1-D/P)
Q/P
Run Time
Q/D
Production Interval
Analysis
• 3rd Question
– P&G will prefer 3rd plan as long as
• Price is higher than in the 2nd plan, i.e., $8.93
– But the retailer needs a low enough price so that its
total cost with the 3rd plan
• Is not greater than in the 2nd plan
– i.e., $11,957
– In 1st question, we determined that the annual holding cost with a weekly
ordering plan is $72
• If we lower the price, the annual holding cost will be a bit lower
– But $72 is a conservative approximation of the holding cost
– So the retailer’s purchase cost should not exceed $11,957 - $72 = $11,885
– Total Purchasing Quantity?
• 25 * 52 = 1300 units
• So, if the price is $11,885/1300 = $9.14, then the retailer will be slightly better offf
– Relative to the second plan
• And P&G is much better off
– Revenue of $12,012 instead of $11,885
A Numerical Illustration
If Normal Expected
demand, s sales
Order quantity,
Q, and, if Exp. left over Expected
Normal demand, inventory profit
z = (Q In-stock
– m)/s probability
Distribution Stockout
function table probability
Price, cost,
salvage value
Performance Measures
• Expected lost sales σ× L(Z)