Professional Documents
Culture Documents
The
The formula
formula for
for the
the moving
moving average
average is:
is:
FFt t == w
w11A
At-1 + w A t-2 ++ w
t-1 + w22 At-2 w33A
At-3 +...+w A t-n
t-3 +...+wnn At-n
nn
wwt ==weight
weightgiven
givento
totime
timeperiod
period“t”
t
occurrence
occurrence(weights
(weightsmust
mustadd
addto
“t”
toone)
one)
ww ==11
i=1
ii
i=1
3-2 Forecasting
F4 = 0.5(720)+0.3(678)+0.2(650)=693.4
3-4 Forecasting
Question:
Question:Given
Giventhe theweekly
weeklydemand
demandinformation
informationand
and
weights,
weights,what
whatisisthe
theweighted
weightedmoving
movingaverage
averageforecast
forecast
of
ofthe
the55thperiod
th
periodor orweek?
week?
F5 = (0.1)(755)+(0.2)(680)+(0.7)(655)= 672
3-6 Forecasting
FFtt == FFt-1
t-1
+
+ (A
(A t-1
t-1
-
- F
F )
t-1)
t-1
Where :
Ft Forcast value for the coming t time period
Ft - 1 Forecast value in 1 past time period
At - 1 Actual occurance in the past t tim e period
Alpha smoothing constant
3-7 Forecasting
900
800 Demand
Demand
700 0.1
600 0.6
500
1 2 3 4 5 6 7 8 9 10
Week
3-10 Forecasting
Question:
Question: What
What are
are the
the
Week Demand
exponential
exponential smoothing
smoothing
1 820
forecasts
forecasts for
for periods
periods 2-5
2-5
2 775 using Alpha =0.5?
using Alpha =0.5?
3 680
4 655
5 Assume
Assume FF11=D
=D11
3-11 Forecasting
Parabolic
Exponential
Growth
3-14 Forecasting
Ft
Ft = a + bt
Calculating a and b
n (ty) - t y
b =
n t 2 - ( t) 2
y - b t
a =
n
3-17 Forecasting
t y
2
W eek t S a le s ty
1 1 150 150
2 4 157 314
3 9 162 486
4 16 166 664
5 25 177 885
2
t = 15 t = 55 y = 812 ty = 2 4 9 9
2
( t) = 2 2 5
3-18 Forecasting
812 - 6.3(15)
a = = 143.5
5
y = 143.5 + 6.3t
3-19 Forecasting
Associative Forecasting
X Y Computed
7 15
relationship
2 10
6 13 50
4 15 40
14 25 30
15 27 20
16 24
10
0
12 20 0 5 10 15 20 25
14 27
20 44
15 34
7 17
A straight line is fitted to a set of sample points.
3-21 Forecasting
Forecast Accuracy
Error - difference between actual value and predicted
value
Mean Absolute Deviation (MAD)
Average absolute error
Mean Squared Error (MSE)
Average of squared error
Mean Absolute Percent Error (MAPE)
Average absolute percent error
3-22 Forecasting
aa == yy-- bx
bx
xy
xy -- n(y)(x)
n(y)(x)
bb == 22 22
xx -- n(x
n(x))
Simple Linear Regression
3-23 Forecasting
Problem Data
Question:
Question:Given
Giventhe
thedata
databelow,
below,what
whatisisthe
thesimple
simplelinear
linear
regression
regressionmodel
modelthat
thatcan
canbe
beused
usedto
topredict
predictsales
salesin
infuture
future
weeks?
weeks?
Week Sales
1 150
2 157
3 162
4 166
5 177
3-24 Forecasting 24
Answer:
Answer: First,
First, using
using the
thelinear
linear regression
regressionformulas,
formulas, we
we
can
can compute
compute“a” “a”and
and“b”
“b”
Week Week*Week Sales Week*Sales
1 1 150 150
2 4 157 314
3 9 162 486
4 16 166 664
5 25 177 885
3 55 162.4 2499
Average Sum Average Sum
bb==
xy
xy--n( n(y)(x)
y)(x) 2499
= 2499 --5(162.4)(3)
5(162.4)(3)
63
63= 6.3
= 10 = 6.3
x - n(x )
x 22
- n(x ) 22
55 5( 9
55 5(9 ) ) 10
aa== yy--bx
bx==162.4
162.4--(6.3)(3)
(6.3)(3)==143.5
143.5
3-25 Forecasting 25
180
175
170
165
160 Sales
Sales
155 Forecast
150
145
140
135
1 2 3 4 5
Period