Forecasting Problems Solved
Forecasting Problems Solved
10/8/2020 3
Simple moving
average Weighted moving
Example: compute a three-period moving average forecast given the following
demand for cars for the last five periods.
average
peirod Supply
1 70 Uses an average of a specified number of the most recent observations,
2 80 with each observation receiving a different emphasis (weight) when
3 65
there is a trend or pattern
4 90
5 85
Formula: weighted moving average = ∑[(weight for period n) (demand in period n)]
• Solution: the forecast for period 6 should be:
∑Weights
Moving average forecast = 65 + 90 + 85 = 80 cars
3
If the actual demand in period 6 turns out to be 95, the moving average forecast for the
period 7 would be:
1
08-10-2020
Weighted moving
average Weighted moving
average
• Example: compute a three- period weighted moving average forecast
given the following demand for cars the last five periods; with an
assigned weight of 1,2,3.
period demand
1 70
2 80
3 65
4 90
5 85
10/8/2020 8
Wma = 90(1)+85(2)+95(3)/(3+2+1)
At-1 = actual demand or sales for period t-1
= (90+170+85)/6
Exponential Errors
smoothing
• Example 1: A car dealer predicted a January
demand for 550 Honda v-tech cars. Actual January Sum of absolute
demand was 680 Honda v-tech cars and Deviation (SAD)
• ∝ = 0.10. Forecast the demand for January, using Exp. ∝ = 0.10. Forecast the
the exponential smoothing model. demand and calculate the error
SAD = ∑ |Et |
period demand
Solution:
Ft = ft-1 + ∝ [ at-1 – ft-1]
1 70
= 550 + 0.10 [680-550]
2 80
= 550 + 0.10 [130] | Et |= | actual – forecast |
3 65
= 550 + 13
Ft = 563
10/8/2020 11
2
08-10-2020
∑ 100|(Actual − forecast ) |
MAPE =
Actual
Q1. The monthly demand for motorcycles for last 14 months is given below. (1) Forecast for March
Month Demand Month Demand
(1000 units) (1000 units)
(1) Develop a forecast for March using a) 3 Month moving average = (2.4+1.6+1)/3=1.67
i) A 3-month and 4-months moving average
ii) A 3- month weighted moving average with weights of 0.1, 0.3, 0.6 for the earliest to latest
period. b) 4 Month moving average = (3.7+2.4+1.6+1)/4=2.175
iii) Develop an exponentially smoothed forecast with = 0.1 and 0.3
(2) Determine forecast errors, SAD, MAD, MAPE and MSE for the forecasting models used in (i)
and comment on the results
3
08-10-2020
Month Demand (1000 Forecast Error (Et) Month Demand Forecast Error (Et) Forecast
Units) (α=0.1)
(1000 units) (α=0.1) (actual- (0.3)
January 1.3 1.3 0 forecast)
February 1.1 1.3 -0.2 January 1.3 1.3 0 1.3
March 0.9 1.28 -0.38 Feb 1.1 1.3 -0.2
April 1.6 1.242 0.358 March 0.9 1.24 -0.34
May 1.5 1.28 0.22
April 1.6
June 2.1 1.30 0.8
July 2.4 1.38 1.02
Ffeb = Fjan + 0.3 (Djan – Fjan ) Fapril = Fmarch + 0.3 (Dmarch – Fmarch )
August 2.0 1.48 0.52
September 2.9 1.53 1.37 1.3+ 0.3 (1.3-1.3) = 1.3 = 1.24+ 0.3 (-0.34) = 1.138
October 3.2 1.66 1.54
November 3.7 1.81 1.89
December 2.4 1.99 0.41
January 1.6 2.03 -0.43 Fmarch = Ffeb + 0.3 (Dfeb – Ffeb )
February 1.0 1.98 -0.98
= 1.3+ 0.3 (1.1-1.3) = 1.24
4
08-10-2020
Month Deman Forecas Error (Et) |Et/Dt| Forecast (α=0.3) Error (Et)
MAPE(Mean Absolute Percent Error) d (1000 t (α=0.1) (actual-
Units) (α=0.1) forecast)
Jan 1.3 1.3 0 0 1.3 ∑ 100| (Actual − forecast ) |
0 Actual
MAPE =
Feb 1.1 1.3 -0.2 0.18 1.3 -0.2
∑ 100|(Actual − forecast ) | March 0.9 1.28 -0.38 0.42 1.24 -0.34
MAPE =
Actual
April 1.6 1.242 0.358 0.22 1.14 0.46
May 1.5 1.28 0.22 0.15 1.28 0.22
June 2.1 1.30 0.8 0.38 MAPE
1.35 (α=0.1)= 4.91/14×100=35.07
0.75
July 2.4 1.38 1.02 0.42 1.57 0.83
Aug 2.0 1.48 0.52 0.26 1.81 0.18
Sep 2.9 1.53 1.37 0.47 1.87 1.03
October 3.2 1.66 1.54 0.48 2.18 1.02
Nov 3.7 1.81 1.89 0.51 2.48 1.22
Dec 2.4 1.99 0.41 0.17 2.84 -0.44
January 1.6 2.03 -0.43 0.27 2.70 -1.1
February 1.0 1.98 -0.98 0.98 2.37 -1.37
5
08-10-2020
6
08-10-2020
7
08-10-2020
Period Month Demand Exponentil avg Trend(Tt) Forecast(FIT) Period Month Demand Exponential avg Trend(Tt) Forecast(FIT)
Fmar= Dfeb +(1- )( Ffeb+Tfeb) Fapr= Dmar +(1- )( Fmar+Tmar)
Fmar= 0.2(40) +(1- 0.2)( 41+4.7)= 44.56 Fapr= 0.2(41) +(1- 0.2)( 48.918)= 47.3344