Lect 4
Lect 4
Operation Research
Lecture Four
- Forecast
2- Forecasting Methods
Forecasting methods are divided into two categories:
1- Qualitative forecasting.
2- Quantitative forecasting.
3- Time-series Forecasting
The time-series forecasting methods are based on the analysis of historical data.
Time series may be defined as a set of observations measured at successive times or
over successive periods. In the time-series methods, the assumption is that the past
patterns in the data can be used to forecast future data points. Here, future data point
means the points on the projection of the line using extrapolation.
1
The following methods are for time-series forecasting:
Ft+1= ( ) ( )
Example 1
Using the data shown in Table below forecast the demand for the periods using the
exponential smoothing method (α = 0.3).
month 1 2 3 4 5 6
demand 600 628 670 735 809 750
Solution:
Demand Forecast( )
Month
Ft+1 ( )
(xt) ( )
1 600 600
2 628 600 + 0.3(600 – 600) = 600
3 670 600 + 0.3(628 – 600) = 608.4
4 735 608.4 + 0.3(670 – 608.4) = 626.8
5 809 626.8 + 0.3(735 – 626.8) = 659.3
6 750 659.3+0.3(809-659.3)= 704.2
2
Example 2
It is currently the end of month (2) , at the end of month (1) the manufacturing of an
established brand of child milk forecasted that demand for the milk during month (2)
would be (67)(thousand tins) , whereas the actual demand in month (2) was (76)
(thousand tins) . Calculate an exponential forecast of the demand in month (3), using
(α = 0.2).
Solution:
y2 =76 F2 =67
Ft+1 ( )
F3 ( )
= 67+0.2(76-67)
= 68.8
At the end of month (2), the forecast of demand in month (3), is (68.8) (thousand tins)
Ft+1= ∑
Where (D) indicates the demand and (F) indicates the forecast, (t) is the
time period, (n) is the number of the averaging period.
3
Example 3
The monthly demands for office furniture (in units) are given in table below:
Month(x) 1 2 3 4 5 6 7 8 9 10 11 12
Demand(y) 600 628 670 735 809 870 800 708 842 870 739 -
Forecast the demand using (3-period) and (5-period) SMA for the (12th) month.
Solution:
Ft+1 = ∑
For 3 period
F4 = ( )= ( ) =~ 632
F5 = ( ) = 678
F6 = ( ) = 738
…… F12 = ( ) = 817
For 5 period
F6 = ( )= ( )
=~689
F7 = ( )=
F8 = ( ) = 777
F12 = ( ) = 777
4
month demand 3 period 5 period
1 600 …. …..
2 628 …. …..
3 670 …. …..
4 735 633 …..
5 809 678 …..
6 870 738 689
7 800 805 743
8 708 827 777
9 842 793 785
10 870 784 806
11 739 708 818
12 ….. 817 792
a = ̅-b̅
∑ (̅)(̅)
b= ∑ (̅)
5
Example 4
The weekly demands of a motorcycle by a retailer are shown in the table
below forecast and estimate the demand for the (14th) week.
Week 1 2 3 4 5 6 7 8 9 10 11 12
demand 420 450 460 420 500 550 480 520 610 570 600 590
Solution:
week(x) demand(y) Xy x2 yt
1 420 420 1 419.4
2 450 900 4 436.63
3 460 1380 9 453.8
4 420 1680 16 471.09
5 500 2500 25 488.3
6 550 3300 36 505.5
7 480 3360 49 522.7
8 520 4160 64 540.01
9 610 5490 81 557.24
10 570 5700 100 574.4
11 600 6600 121 591.17
12 950 7080 144 608.93
2
Σx = 78 Σy = 6170 Σxy = 42,570 Σx = 650
∑ ( ̅)( ̅ ) ( )( )
b= ∑
= = 17.23
( ̅) ( )
a = ̅-b ̅
= 514.1667 – 17.23(6.5)
= 402.17
y =402.17-17.23x
x=1
y1= 402.17 – 17.23(1)
= 419.4
∑ | |
Example 5
Forecast for the following data using exponential forecast using (α = 0.2)
and find MSE & MAE.
month(xt) 1 2 3 4 5 6 7
demand(yt) 67 76 83 78 68 59 69
Solution:
xt yt Ft et = | |
1 67 67 or …. …. …. ….
2 76 67 9 81 9
3 83 68.8 14.20 201.64 14.20
4 78 71.64 6.36 40.45 6.36
5 68 72.91 -4.91 24.1 4.91
6 59 71.93 -12.93 176.1 12.93
7 69 69.34 0.34 0.115 0.34
∑ =200.31 ∑| |
7
Ft+1 ( )
F2 = 67+0.2(76-67) = 68.8
F3 = 68.8 +0.2(83-68.8) = 71.64
F4= 71.64+0.2(78-71.64) = 72.91
∑
= = 25.03
∑ | |
MAE = =
Example 6
Week (xt) 1 2 3 4 5 6 7 8 9 10 11 12
Demand (yt) 420 450 460 420 500 550 480 520 610 570 600 590
Solution:
∑
= = 867.46
∑ | |
MAE = =