Beruflich Dokumente
Kultur Dokumente
• Introduction
• Demand Forecasting Techniques
– Qualitative Forecasting Methods
– Quantitative Forecasting Models
• Forecast Error
• Case: Yankee Fork and Hoe Company
• Designing a Demand Forecasting System for PPC
Forecasting
Effective planning requires matching
product requirements of customers with the
capacity of operations
Time
Time
Year 1
Quantity
| | | | | | | | | | | |
J F M A M J J A S O N D
Months
(c) Seasonal: Recurring upward/downward trend
repeated within a year.
Patterns of Demand: Seasonal
Year 1
Quantity
Year 2
| | | | | | | | | | | |
J F M A M J J A S O N D
Months
(c) Seasonal: Data consistently show peaks and valleys.
Patterns of Demand: Cyclical
Quantity
| | | | | |
1 2 3 4 5 6
Years
(c) Cyclical: Data reveal gradual increases and
decreases over extended periods.
Forecasting Techniques
Forecasting is both an art & a science. The
science part deals with mathematical
models, whereas the art part deals with
judgment, experience and intuition. Thus,
two broad methods
Delphi Method
Market Research
| | | | | | | | | | | | | | | |
0 2 4 5 8 10 12 14 16
Period
Seasonal Patterns
(a) Multiplicative pattern
Demand
| | | | | | | | | | | | | | | |
0 2 4 5 8 10 12 14 16
Period
Quantitative Method: Time-Series
Methods
• Naive approach
• Moving averages
• Exponential smoothing
• Trend projection (linear regression)
• Seasonal influences
• Combined seasonal and trend
Time-series method
Naive forecasting
The forecast for the next period equals the demand for the
current period. The naïve forecast can take into account
a demand trend - the forecast is increased with the
number with which it missed the last time. The
advantages of the naive forecasts are its simplicity and
low cost.
450 —
430 —
Patient arrivals
410 —
390 —
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Simple Moving Averages
450 — Patient
Week Arrivals
430 — 1 400
2 380
Patient arrivals
410 — 3 411
390 —
411 + 380 + 400
F4 =
370 — 3
Actual patient
arrivals = 397
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Simple Moving Averages
410 —
390 —
| | | | | |
0 5 10 15 20 25 30
Week
Weighted Moving Average, WMA(n)
Moving averages are unresponsive/sluggish to change,
to partially overcome this we use weighted average
Ft+1 = w1 Dt + w2 Dt-1 + ... + wn Dt-n+1
| | | | | |
0 5 10 15 20 25 30
Week
Simple Exponential Smoothing, SES (α)
• To overcome the drawback of large data
requirements of moving averages, SES implicitly
considers previous points. It is a sophisticated
weighted moving average technique.
Ft+1 = Ft +α( Dt - Ft)
Ft+1 = α Dt + α (1− α) Dt-1 + α (1− α)2 Dt-2 +……
+(1− α) t F0
• smoothing constant 0 ≤ α ≤ 1
• Dt - Ft = forecasting error in period t
• Larger α values make forecast more responsive
• If α=1, naive model
• In practice, 0.05 ≤ α ≤ 0.30
Weights & Initial Forecasts
• w1 =α, w2 =α(1- α ), w3 =α(1- α )2 ...
• Initial forecast required
– use actual value at initial period
F1 = D1
– use average of some initial actual values
F1 = [D1 + D2 + D3 ]/3
Time-Series Methods
Exponential Smoothing
450 —
Exponential Smoothing
430 — α = 0.10
Patient arrivals
410 — Ft +1 = Ft + α (Dt – Ft )
390 —
370 —
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Exponential Smoothing
450 —
Exponential Smoothing
430 — α = 0.10
Patient arrivals
410 — Ft +1 = Ft + α (Dt – Ft )
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Exponential Smoothing
450 —
Exponential Smoothing
430 — α = 0.10
Patient arrivals
410 — Ft +1 = Ft + α (Dt – Ft )
450 —
Exponential Smoothing
430 — α = 0.10
Patient arrivals
410 — Ft +1 = Ft + α (Dt – Ft )
390 — F4 = 392.1
D4 = 415
370 —
F4 = 392.1 F5 = 394.4
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Exponential Smoothing
450 —
430 —
Patient arrivals
410 —
390 —
370 — Exponential
smoothing
α = 0.10
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Exponential Smoothing
410 —
390 —
370 — Exponential
smoothing
α = 0.10
| | | | | |
0 5 10 15 20 25 30
Week
Time-Series Methods
Trend-Adjusted Exponential Smoothing
A = average; T = Trend
α =smoothing constant for average;
β = smoothing constant for trend
At = α Dt + (1 – α)(At-1 + Tt-1)
Patient arrivals
60 —
Tt = β (At – At-1) + (1 – β)Tt-1
50 —
A0 = 28 patients T0 = 3 patients
40 — α = 0.20 β = 0.20
30 —
A1 = 0.2(27) + 0.80(28 + 3)
| | | | | T
| 1 =| 0.2(30.2
| | |- 28)
| + |0.80(3)
| | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Week
Time-Series Methods
Trend-Adjusted Exponential Smoothing
80 —
Medanalysis, Inc.
70 — Demand for blood analysis
At = α Dt + (1 – α)(At-1 + Tt-1)
Patient arrivals
60 —
Tt = β (At – At-1) + (1 – β)Tt-1
50 —
A0 = 28 patients T0 = 3 patients
40 — α = 0.20 β = 0.20
30 —
A1 = 30.2 Forecast2 =
T 30.2 + 2.8 = 33
| | | | | | 1 =| 2.8
| | | | | | | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Week
Time-Series Methods
Trend-Adjusted Exponential Smoothing
80 —
Medanalysis, Inc.
70 — Demand for blood analysis
At = α Dt + (1 – α)(At-1 + Tt-1)
Patient arrivals
60 —
Tt = β (At – At-1) + (1 - β)Tt-1
50 —
A2 = 30.2 D2 = 44 T1 = 2.8
40 — α = 0.20 β = 0.20
30 —
A2 = 0.2(44) + 0.80(30.2 + 2.8)
| | | | | |T2 =| 0.2(35.2
| | |- 30.2)
| |+ 0.80(2.8)
| | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Week
Time-Series Methods
Trend-Adjusted Exponential Smoothing
80 —
Medanalysis, Inc.
70 — Demand for blood analysis
At = α Dt + (1 – α)(At-1 + Tt-1)
Patient arrivals
60 —
Tt = β (At – At-1) + (1 - β)Tt-1
50 —
A2 = 30.2 D2 = 44 T1 = 2.8
40 — α = 0.20 β = 0.20
30 —
A2 = 35.2 Forecast =
35.2 + 3.2 = 38.4
| | | | | |T2 =| | 3.2| | | | | | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Week
Time-Series Methods
Trend-Adjusted Exponential Smoothing
80 — Trend-adjusted
forecast
70 —
Patient arrivals
60 —
50 —
Actual blood
40 — test requests
30 —
| | | | | | | | | | | | | | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Week
Time-Series Methods
Seasonal Influences
Actual Demand
Seasonal Index =
Average Demand
Time-Series Methods
Seasonal Influences
CFE = ΣEt
MSE =
ΣEt2
n
Σ|Et | Σ[ |Et | (100) ] /Dt
MAD = MAPE = n
n
Choosing a Method
Forecast Error
Absolute
Error Absolute Percent
Month, Demand, Forecast, Error, Squared, Error, Error,
t Dt Ft Et Et2 |Et| (|Et|/Dt)(100)
1 200 225 -25 625 25 12.5%
2 240 220 20 400 20 8.3
3 300 285 15 225 15 5.0
4 270 290 –20 400 20 7.4
5 230 250 –20 400 20 8.7
6 260 240 20 400 20 7.7
7 210 250 –40 1600 40 19.0
8 275 240 35 1225 35 12.7
Total –15 5275 195 81.3%
Choosing a Method
Forecast Error
Measures of Error
Absolute
CFE = – 15 Error Absolute Percent
Month, Demand, Forecast, Error, Squared, Error, Error,
– 15
E =t =D–t 1.875 Ft Et Et2 |Et| (|Et|/Dt)(100)
8
1 200 225 –25 625 25 12.5%
2 240
5275 220 20 400 20 8.3
MSE 3= 300 = 285
659.4 15 225 15 5.0
4 8 270 290 –20 400 20 7.4
5 230 250 –20 400 20 8.7
6 260 240 20 400 20 7.7
7 210 250 –40 1600 40 19.0
8 195
275 240 35 1225 35 12.7
MAD = = 24.4
8 Total –15 5275 195 81.3%
81.3%
MAPE = = 10.2%
8
Linear Trend With Seasonality
• Carpet example
• Apply linear trend model
• 1st & 2nd quarter errors positive
• 3rd & 4th quarter errors negative
• Seasonality present
• Multiplicative model
Dt = [a + bt] cs + et
a + bt = 135.7 + 12.2 t = linear trend component
cs = quarterly seasonal factor
Linear trend applied to carpet data
Dt Ft
t Yr Qtr Act. Fcst. Errors Error2
1 1 1 160 147.9 +12.1 146.4
2 1 2 170 160.1 +9.9 98.0
3 1 3 140 172.3 -32.3 1043.3
4 1 4 150 184.5 -34.5 1190.3
5 2 1 230 196.7 +33.3 1108.9
6 2 2 240 108.9 +31.1 967.2
7 2 3 180 221.1 -41.1 1689.2
8 2 4 200 233.3 -33.3 1108.9
9 3 1 310 245.5 +64.5 4160.3
10 3 2 310 257.5 +52.3 2735.3
11 3 3 230 269.9 -39.9 1592.0
12 3 4 260 282.1 -22.1 488.4
270
3 3 230 269.9 -39.9 1592
Sales
Carpe
3 4 260 282.1 -22.1 488.4 t
170
140
150
172.3
184.5
230 196.7
240 208.9
120
180 221.1
200 233.3
320 245.5
310 257.7
230
260
269.9
282.1
Time
Constructing Model
1. Compute 4-period moving averages,
e.g., average quarters 1-4, then quarters 2-5
2. Compute centered moving averages (CMA),
[avg for 1-4 + avg for 2-5]/2
3. Compute seasonal ratios
4. = Actual/CMA = Col(1)/Col(3)
5. Estimate cs = average of seasonal ratios for season s
6. Deseasonalize data = Actual/ cs
7. Estimate “a” & “b” for deseasonalized data
8. Forecast = deseasonalized forecast x cs for quarter
(1) (2) (3) (4) (5) (6)
t Yr Qtr Act. MA CMA SI cs Deseas.
1 1 1 160 1.191 134
regression Y = a + bX
equation
{ Actual
value
of Y
Value of X used
to estimate Y
X
Independent variable
Causal Methods
Linear Regression
Sales Advertising
Month (000 units) (000 $)
1 264 2.5 a = – 8.137
2 116 1.3 b = 109.23
3 165 1.4 r = 0.98
4 101 1.0
5 209 2.0
r2 = 0.96
Causal Methods
Linear Regression
300 —
Sales (thousands of units)
250 —
Sales Advertising
Month (000 units) (000 $)
200 —
1 264 2.5 a = – 8.137
2—
150 116 1.3 b = 109.23
3 165 1.4 r = 0.98
4—
100 101 1.0 r2 = 0.96
5 209
Y = – 8.137 +2.0109.23X
50 | | | |
Forecast
1.0 1.5for Month
2.0 6
2.5
Advertising (thousands of dollars)
X = $1750, Y = 183.015, or 183,015 units
Causal Methods
Linear Regression (formula)
Sales, Y Advertising, X
Month (000 units) (000 $) XY X2 Y2
1 264 2.5 660.0 6.25 69,696
2 116 1.3 150.8 1.69 13,456
3 165 1.4 231.0 1.96 27,225
4 101 1.0 101.0 1.00 10,201
5 209 2.0 418.0 4.00 43,681
Total 855 8.2 1560.8 14.90 164,259
Y = 171 X = 1.64
ΣXY – nXY
a = Y – bX b=
ΣX 2 – n(X )2
Causal Methods
Linear Regression
Sales, Y Advertising, X
Month (000 units) (000 $) XY X2 Y2
1 264 2.5 660.0 6.25 69,696
2 116 1.3 150.8 1.69 13,456
3 165 1.4 231.0 1.96 27,225
4 101 1.0 101.0 1.00 10,201
5 209 2.0 418.0 4.00 43,681
Total 855 8.2 1560.8 14.90 164,259
Y = 171 X = 1.64
1560.8 – 5(1.64)(171)
a = Y – bX b=
14.90 – 5(1.64)2
Causal Methods
Linear Regression
Sales, Y Advertising, X
Month (000 units) (000 $) XY X2 Y2
1 264 2.5 660.0 6.25 69,696
2 116 1.3 150.8 1.69 13,456
3 165 1.4 231.0 1.96 27,225
4 101 1.0 101.0 1.00 10,201
5 209 2.0 418.0 4.00 43,681
Total 855 8.2 1560.8 14.90 164,259
Y = 171 X = 1.64
nΣXY – ΣX ΣY
r=
[nΣX 2 – (ΣX) 2][nΣY 2 – (ΣY) 2]
Coefficient of Correlation (r)
• The coefficient of correlation, r, explains the relative
importance of the relationship between x and y.
• The sign of r shows the direction of the relationship.
• The absolute value of r shows the strength of the
relationship.
• The sign of r is always the same as the sign of b.
• r can take on any value between –1 and +1.
Coefficient of Correlation (r)
• Meanings of several values of r:
-1 a perfect negative relationship (as x goes up, y
goes down by one unit, and vice versa)
+1 a perfect positive relationship (as x goes up, y
goes up by one unit, and vice versa)
0 no relationship exists between x and y
+0.3 a weak positive relationship
-0.8 a strong negative relationship
Designing a Demand Forecasting System:
some considerations