Documente Academic
Documente Profesional
Documente Cultură
What is Forecasting?
Forecasting Horizons
Long Term
5+ years into the future
R&D, plant location, product planning
Principally judgment-based
Medium Term
1 season to 2 years
Aggregate planning, capacity planning,
sales forecasts
Mixture of quantitative methods and
judgment
Short Term
1 day to 1 year, less than 1 season
Demand forecasting, staffing levels,
purchasing, inventory levels
Forecasting Approaches
Quantitative forecasting
based on data, statistics
Qualitative forecasting
based on experience, judgement,
knowledge
Qualitative forecasting
Qualitative forecastingapproaches
Jury of executive opinion
This method takes the opinions of a
small group of high-level managers,
often in combination with statistical
models, and results in a group
estimate of demand.
Qualitative forecastingapproaches
Delphi method
This is an iterative group process. There are
three different types of participants in the
Delphi process:
1.Decision makers (experts making actual forecast)
2.Staff personnel(distributing, collecting, and summarizing
a series of questionnaires and survey results. )
3.Respondents (This group provides inputs to the decision
makers before the forecast is made. )
Qualitative forecastingapproaches
Consumer market survey
This method take input from customers or
potential customers regarding their future
purchasing plans
Nave approach
It assumes that demand in the next
period is the same as demand in the most
recent period.
9
Quantitative Methods
10
Quantitative Methods
Steps in Forecasting
13
Moving Averages
n
16
Moving Average
Include n most recent observations
Weight equally
Ignore older observations
weight
1/n
...
today
17
Example
Month
Actual Washing
machine sales,
units
January
10
February
12
March
13
April
16
May
19
June
23
July
26
August
30
September
28
October
18
November
16
Three-month
moving average
18
Example
Month
Actual Washing
machine sales,
units
January
10
February
12
March
13
April
16
May
19
June
23
July
26
August
30
September
28
October
18
November
16
Three-month
moving average
(10 + 12 + 13) / 3
= 11.67
19
Example
Month
Actual Washing
machine sales,
units
Three-month
moving average
January
10
February
12
March
13
April
16
(10 + 12 + 13) / 3
= 11.67
May
19
(12 + 13 + 16) / 3
= 13.67
June
23
July
26
August
30
September
28
October
18
November
16
20
Example
Month
Actual Washing
machine sales,
units
Three-month
moving average
January
10
February
12
March
13
April
16
(10 + 12 + 13) / 3
= 11.67
May
19
(12 + 13 + 16) / 3
= 13.67
June
23
(13 + 16 + 19) / 3
= 16
July
26
August
30
September
28
October
18
21
Example
Month
Actual Washing
machine sales,
units
Three-month
moving average
January
10
February
12
March
13
April
16
(10 + 12 + 13) / 3
= 11.67
May
19
(12 + 13 + 16) / 3
= 13.67
June
23
(13 + 16 + 19) / 3
= 16
July
26
(16 + 19 + 23) / 3
= 19.33
August
30
(19 + 23 + 26) / 3
= 22.67
September
28
(23 + 26 + 30) / 3
= 26.33
22
24
Weighted Moving
Averages
today
Example
Month
Actual Washing
machine sales,
units
January
10
February
12
March
13
April
16
May
19
June
23
July
26
August
30
September
28
October
18
November
16
Three-month
weighted moving
average
26
Example
Weighting the past three months
as follows:
Weights applied
Period
3
Last month
2
Two months ago
1
Three months ago
6
Sum of weights
27
Example
Month
Actual
Three-month weighted moving
Washing
average
machine sales,
units
January
10
February
12
March
13
April
16
May
19
June
23
July
26
August
30
Septembe 28
r
October
18
28
Example
Month
Actual
Three-month weighted moving
Washing
average
machine sales,
units
January
10
February
12
March
13
April
16
May
19
June
23
July
26
August
30
(1 x 10 + 2 x 12 + 3 x 13) / 6 =
12.16
Septembe 28
r
October
18
29
Example
Month
Actual
Three-month weighted moving
Washing
average
machine sales,
units
January
10
February
12
March
13
April
16
(1 x 10 + 2 x 12 + 3 x 13) / 6 =
12.16
May
19
(1 x 12 + 2 x 13 + 3 x 16) / 6 =
14.33
June
23
July
26
August
30
Septembe 28
r
30
Example
Month
Actual
Three-month weighted moving
Washing
average
machine sales,
units
January
10
February
12
March
13
April
16
(1 x 10 + 2 x 12 + 3 x 13) / 6 =
12.16
May
19
(1 x 12 + 2 x 13 + 3 x 16) / 6 =
14.33
June
23
(1 x 13 + 2 x 16 + 3 x 19) / 6 =
17
July
26
August
30
Septembe 28
r
31
Example
Month
Actual
Three-month weighted moving
Washing
average
machine sales,
units
January
10
February
12
March
13
April
16
(1 x 10 + 2 x 12 + 3 x 13) / 6 =
12.16
May
19
(1 x 12 + 2 x 13 + 3 x 16) / 6 =
14.33
June
23
(1 x 13 + 2 x 16 + 3 x 19) / 6 =
17
July
26
(1 x 16 + 2 x 19+3x23) / 6 =
20.5
August
30
(1x19+2x23+3x26)/6=23.83
Septembe 28
r
(1x23+2x26+3x30)/6=27.5
32
Limitations
less sensitive to real changes in
the data.
cannot pick up trends very well.
require extensive records of past
data.
33
Exponential Smoothing
Exponential Smoothing
Mathematically :
Ft = Ft-1 + (At-1 Ft-1 )
0 < = < =1
where
Ft = New forecast
F t-1 = Previous forecast
= Smoothing constant (0 <= <= 1)
At-1 = Previous periods actual demand
The smoothing constant, , is generally in
the range from .05 to .50 for business
applications.
35
Week Sales
t
(1000s of
gallons)
1
17
21
19
23
18
16
20
18
22
10
20
11
15
12
22
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast Ft
using = .5
36
Week Sales
t
(1000s of
gallons)
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast Ft
using = .5
17
17
17
21
19
23
18
16
20
18
22
10
20
11
15
12
22
37
Week Sales
t
(1000s of
gallons)
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast Ft
using = .5
17
17
17
21
17+.2(17-17)=17
17+.5(17-17)=17
19
23
18
16
20
18
22
10
20
11
15
12
22
38
Week Sales
t
(1000s of
gallons)
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast Ft
using = .5
17
17
17
21
17+.2(17-17)=17
17+.5(17-17)=17
19
19+.2(21-17)=17.8
19+.5(21-17)=19
23
18
16
20
18
22
10
20
11
15
12
22
39
Week Sales
t
(1000s of
gallons
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast
Ft using = .5
17
17
17
21
17+.2(17-17)=17
17+.5(17-17)=17
19
17+.2(21-17)=17.8
17+.5(21-17)=19
23
19 + .5(19 19) = 19
18
18.04 + .2(23
18.04) = 19.03
19 + .5(23 19) = 21
16
19.03 + .2(18
19.03) = 18.83
21 + .5(18 21) =
19.5
20
18.83 + .2(16
18.83) = 18.26
18
18.26 + .2(20
18.26) = 18.61
17.75 + .5(20
17.75) = 18.88
22
18.61 + .2(18
18.61) = 18.49
18.88 + .5(18
18.88) = 18.44
10
20
18.49 + .2(22
18.49) = 19.19
18.44 + .5(22
18.44) = 20.22
11
15
19.19 + .2(20
20.22 + .5(20
40
42
Week Sales
t
(1000s of
gallons
Exponential
smoothing forecast
Ft using = .2
Exponential
smoothing forecast
Ft using = .5
17
17
17
21
17+.2(17-17)=17
17+.5(17-17)=17
19
17+.2(21-17)=17.8
17+.5(21-17)=19
23
19 + .5(19 19) = 19
18
18.04 + .2(23
18.04) = 19.03
19 + .5(23 19) = 21
16
19.03 + .2(18
19.03) = 18.83
21 + .5(18 21) =
19.5
20
18.83 + .2(16
18.83) = 18.26
18
18.26 + .2(20
18.26) = 18.61
17.75 + .5(20
17.75) = 18.88
22
18.61 + .2(18
18.61) = 18.49
18.88 + .5(18
18.88) = 18.44
10
20
18.49 + .2(22
18.49) = 19.19
18.44 + .5(22
18.44) = 20.22
11
15
19.19 + .2(20
20.22 + .5(20
44
Week t Sales
1000s of gallons
RF with = .2
RF with = .5
17
17
17
21
17
17
19
18
19
23
18
19
18
19
21
16
19
20
20
18
18
18
19
19
22
18
18
10
20
19
20
11
15
19
20
12
22
18
21
45
Wee
k t
Sales
1000s of
gallons
RF with
= .2
Absolute
Deviation
for =.2
RF with
= .5
17
17
17
21
17
17
19
18
19
23
18
19
18
19
21
16
19
20
20
18
18
18
19
19
22
18
18
10
20
19
20
11
15
19
20
12
22
18
21
Absolute
Deviation
for =.5
46
Wee
k t
Sales
1000s of
gallons
RF with
= .2
Absolute
Deviation
for =.2
RF with
= .5
Absolute
Deviation
for =.5
17
17
17
21
17
17
19
18
19
23
18
19
18
19
21
16
19
20
20
18
18
18
19
19
22
18
18
10
20
19
20
11
15
19
20
12
22
18
4
Sum=30
21
1 Sum=28
47
For =.2
MAD=30/12=2.5
For =.5
MAD=28/12=2.33
On the basis of this analysis, a
smoothing constant of = .5 is
preferred to = .2 because its
MAD is smaller.
48
Trend Projections.
Trend Projections
Using the standard method of
Least Square
Assuming Time period as
independent variable
And actual demand as dependent
variable
50
Xi=Time periods(i=1,2,3,n)
Yi=Actual demand during period Xi
X
Y
n
X
Y
i
i
Slope b=
Xi 2 - n X2
Intercept a=Y- b X
X=Xi/n
Y=Yi/n
52
Example
The demand for electrical power
at Delhi over the period 1990
1996 is shown below, in
megawatts. Let us fit a straight
line trend to these data and
forecast
1997
Year
1990 1991
1992 demand
1993 1994 1995 1996
Electric
al
power
Deman
d
74
79
80
90
105
142
122
53
Solution
Year
Time
Period(
X)
Electrical
power
Demand(Y)
X2
XY
54
Solution
Year
Time
Period(
X)
Electrical
power
Demand(Y)
1990
74
1991
79
1992
80
1993
90
1994
105
1995
142
1996
122
X2
XY
55
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
1990
74
1991
79
1992
80
1993
90
16
1994
105
25
1995
142
36
1996
122
49
XY
56
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
57
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
X=
Y=
X2 =
XY =
58
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
X=28
Y=692
X2
=140
XY
=3063
59
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
X=28
Y=692
X2
=140
XY
=3063
X=Xi/n = 28/7=4
Y=Yi/n=692/7=98.86
60
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
X=28
Y=692
X2
=140
XY
=3063
X=Xi/n = 28/7=4
Y=Yi/n=692/7=98.86
Slope
b=
Xi Yi - n X
YX 2 - n X2
i
=295/28=1
0.54
61
Solution
Year
Time
Period(
X)
E8lectrical
power
Demand(Y)
X2
XY
1990
74
74
1991
79
158
1992
80
240
1993
90
16
360
1994
105
25
525
1995
142
36
852
1996
122
49
854
X=28
Y=692
X2
=140
XY
=3063
Demand in 1997
Y=a + b X
Y= 56.7+10.54 X
Y= 56.7+10.54 (8)
Y=141.02
Then we estimate the demand in
1997 is
141 megawatts.
63
Example
64
Example
Example
66
Example
Moving Average
Example
Monthly demand for Dans Doughnuts over the past nine months
for trays (six dozen per tray) of sugar doughnuts was
Mar 112
Apr 125
May 120
Jun
133
Jul
136
Aug 146
Sept 140
Oct 155
Nov 152
1. Plot the data to determine if a linear
trend equation is appropriate.
2.Obtain a trend equation.
3.Forecast demand for the next two
months.
Example
Solution
1.The data seem to show an upward, roughly
linear trend:
Example
Scatter Plot
Scatter Diagram
Scatter Diagram
Regression Output
Example
Example 2-4
2-4
Example
Example 2-5
2-5
The manager of a
parking lot has
computed daily
relatives for the number
of cars per day for his
lot. The computations
are repeated here
(about three weeks are
shown for illustration). A
seven-period centered
moving average is used
because there are
seven days (seasons)
per
week.
The
estimated
Friday relative is
136 + 140 + 133 +
3 + 136. Relative
for other days can
be computed in a
similar manner. For
example, the
estimated Monday
relative is 0.77 +
0.72 + 0.69/3 =
Example
Example 2-6
2-6
Explanatory Models
Simple Linear Regression
A model of two variables thought to be related.
Dependent variable: the variable to be forecasted.
Independent variable is used to explain or predict the
value of the dependent variable.
Table 22
Figure 210
Table 22
Figure 211
Table 24
Regression Assumptions
Normality
For any given value of x, there is a distribution of possible y
values that has a mean equal to the expected value (i.e., y
= a + bx) and the distribution is normal.
Homoscedasticity
The conditional distributions for all values of x have the
same dispersion.
Linearity.
The requirement of uniform scatter also means that there
should not be any patterns around the line.
Independence.
Values of y should not be correlated over time. If they are, it
may be more appropriate to use a time series model.
Figure 213
Figure 214
Table 25
Example
Example 2-7
2-7
Mean absolute
percentage error
(MAPE)
measures overall
forecast accuracy.
Example
Example 2-8
2-8
Example
Example 2-8
2-8 contd
contd
Example
Example 2-8
2-8 contd
contd
Tracking Signal
The tracking signal
Is the ratio of cumulative forecast error at any point in time to the
corresponding MAD at that point in time.
A value of a tracking signal that is beyond the action limits
suggests the need for corrective action.
Example
Example 2-9
2-9