Beruflich Dokumente
Kultur Dokumente
Narendran
MODULE 3
Forecasting
• Forecast: an educated guess for the future based on objective analysis (to
the extent possible)
• Type of Forecast
• Demand
• (Common)
• Environmental
• Users
• Index
• Averages
• Statistical
• Combination
• Market Survey
Subjective Opinion
• Advantage
• Disadvantage
Averages
• Moving average
So take
Combination
e.g.:
Impact of advertisement,
New competition,
Obsolescence's,
Market Survey
• Draw demand Vs time
Forecaster Could Be
Constant (Random Fluctuation only)
Linear (Trend)
Cyclic (combination)
Forecasting (constant)
Least Squares Fit
Year X Y XY X2
1967 -5 2 -10 25
1968 -4 3 -12 16
1969 -3 6 -18 9
1970 -2 10 -20 4
1971 -1 8 -8 1
1972 0 7 0 0
1973 1 12 12 1
1974 2 14 28 4
1975 3 14 42 9
1976 4 18 72 16
1977 5 19 95 25
∑ X=0 ∑ Y=113 ∑ XY=181 ∑ X2=110
a =
∑ Y
=
113
= 1 0 .3
n 11
b =
∑ XY
=
181
= 1 .6
∑ X 2
110
2π 2π
Y = a + u cos X + v sin X
N N
Plotting the real data Forecasting (Cyclic)
Cyclic Forecaster
Cyclic Trend
2π 2π
a + b + u cos X + v sin X
N N
Moving Average
1967 -5 -
1968 -4 3.7
1969 -3 6.3
1970 -2 10
1971 -1 8.0
1972 0 8.3
1973 1 9.0
1974 2 11.0
1975 3 13.314
1976 4 15.3
1977 5 17.0
• Smoothens curve
• Independent of Y to X relationship
• Lags in trend
∑ (W t ) X
∑ (W t )
Y ' = a+bX
ei =Yi −Y'i
ei =Yi −a−bXi
∂E
=0
∂a
∂E
= −2 ∑ (Yi − a − b X i ) = 0
∂a
or ∑ Yi − n a − b ∑ X i = 0
or
∑ Y = n a + b ∑ X ...........(1)
i i
∂E
=0
∂b
n
∂E
= − 2 ∑ (Yi − a − b X i ) X i = 0
∂b i =1
∑ X Y =a∑ X
i i i + b ∑ X i2 .......................(2)
∑ Y = n a + b ∑ X ...........(1)
i i
∑ X Y =a∑ X
i i i + b ∑ X i2 .......................(2)
∑ X Y = a ∑ X + b ∑ X .......................(2)
i i i i
2
= a ∑ X + ∑ X (∑Y − n a)
i i i
= a ∑ X + ∑ X ∑Y − n a ∑ X
i i i i
= ∑ X ∑ Y + a ( ∑ X − n∑ X )
i i i i
∴a =
∑ X Y − ∑ X ∑Y i i i i
∑ X −n∑ X i i
b=
∑ XY − n X Y ;
∑ X −n X 2 2
a =Y − b X
∑X i =0
b=
∑ XY
∑X 2
a=
∑Y
n
Problem No.1
Sales data for a certain item is given below for last 11 years.
Problem No.1
Year Demand
1994 2
1995 3
1996 6
1997 10
1998 8
1999 7
2000 12
2001 14
2002 14
2003 18
2004 19
Question
Fit regression line and make a forecast for the year 2009?
Forecasting (Constant)
a=
∑ Y = 113 = 10.3
n 11
b=
∑ XY = 181 = 1.6
∑ X 110
2
• Forecasting equation is Y= a + b X
Correlation Coefficient
n ∑ X iYi − ∑ X i ∑ Yi
r=
n X 2 − n Y 2 − ( Y )2
∑ ∑ ∑ i ∑ i
2
i ( X i )
Forecasting (Cyclic)
Cyclic Forecaster
2π 2π
Y =a+ucos X+vsin X
N N
Cyclic Trend
2π 2π
a+b+ucos X +vsin X
N N
Exponential Smoothing
Yt1+1 = (1 − α ) Yt + (1 − α ) α Yt −1 + (1 − α ) α 2 Yt − 2
+ .......................... + (1 − α ) α n Yt − n
Yt1+1 = (1 − α ) Yt + α Yt1
Example
• A hospital has used a nine month moving average forecast method to
predict drug and surgical dressing inventory requirements. The actual
demand for one such item is shown in the below given Table. Using the
previous moving average data, convert to exponential smoothing.
Month 24 25 26 27 28 29 30 31 32
Solution
M.A. =
∑X 78 + 65 + .........+ 73
= = 78.
noof periods 9
2 2
α= = = 0.2
n +1 9 +1
Yt1+1 = (1 − α ) Yt + α Yt1
Example-2
Month Actual Demand Old forecast
43 105 100
44 106 100.50
45 110 101.05
46 110 101.95
47 114 102.46
48 121 103.61
49 130 105.35
50 128 107.82
51 137 109.84
52
Moving Average
Year Demand 3 Year Moving Average
1997 -5 -
1998 -4 3.7
1999 -3 6.3
2000 -2 10
2001 -1 8.0
2002 0 8.3
2003 1 9.0
2004 2 11.0
2005 3 13.314
2006 4 15.3
2007 5 17.0
• Smoothens curve
• Independent of Y to X relationship
• Lags in trend
∑ (W t ) X
∑ (W t )
Forecast Errors
Use
• To set safety stocks or safety capacity and thereby ensure a desired level
of protection against stock out.
Notations
∑t =1
et 2
M SE =
n
∑e
t =1
t
MAD =
n
MADt = α Dt − Ft + (1 − α ) MADt −1
n
et
∑D
t =1
100
t
MAPE =
n
(expressed as a percentage)
TS = CFE / MADt
Best ‘fit’ is not necessarily best ‘predictor’ do it in 2 days – first fit various
models, then predict and choose the one with the least error.
Filename: CHAPTER 3
Directory: C:\Documents and Settings\User 1\Desktop\5
Template: C:\Documents and Settings\User 1\Application
Data\Microsoft\Templates\Normal.dot
Title: FORECASTING
Subject:
Author: User 1
Keywords:
Comments:
Creation Date: 6/29/2006 9:31:00 AM
Change Number: 14
Last Saved On: 7/21/2006 12:41:00 PM
Last Saved By: User 1
Total Editing Time: 216 Minutes
Last Printed On: 9/21/2006 11:54:00 AM
As of Last Complete Printing
Number of Pages: 19
Number of Words: 975 (approx.)
Number of Characters: 5,561 (approx.)