10 Forecasting IPE 493 CSE JAN 24
10 Forecasting IPE 493 CSE JAN 24
Industrial Management
By
Dr. Prianka Binte Zaman
Associate Professor
Department of IPE, BUET
Forecasting
FORECASTING
A statement about the future value of a variable of interest.
Example: demand forecast.
Forecasts are made with reference to a specific time horizon.
Underlying basis of all business decisions
➢ Production
➢ Inventory
➢ Personnel
➢ Facilities
Types of Forecasts by Time
Horizon
Short-range forecast
◼ Up to 1 year; usually less than 3 months
◼ Job scheduling, worker assignments
Medium-range forecast
◼ 3 months to 3 years
◼ Sales & production planning, budgeting
Long-range forecast
◼ 3+ years
◼ New product planning, facility location
4-4
Uses of Forecasts
Actual
demand line
Average demand
over four years
Random
variation
The forecast for any period equals the previous period’s actual
value.
Characteristics of naive forecast:
➢Simple to use
➢Virtually no cost
➢Quick and easy to prepare
➢Data analysis is nonexistent
➢Easily understandable
➢Cannot provide high accuracy
➢Can be a standard for accuracy
Techniques for Averaging
Moving average
Weighted moving average
Exponential smoothing
Moving Averages
wi
i =1
Moving Average Example
You’re manager of a museum store that sells
historical replicas. You want to forecast sales
(000) for 2003 using a 3-period moving average.
1998 4
1999 6
2000 5
2001 3
2002 7
Moving Average Solution
Time Response Moving Moving
Yi Total Average
(n=3) (n=3)
1998 4 NA NA
1999 6 NA NA
2000 5 NA NA
2001 3 4+6+5=15 15/3 = 5
2002 7
2003 NA
Moving Average Solution
Time Response Moving Total Moving Average
Yi (n=3) (n=3)
1998 4 NA NA
1999 6 NA NA
2000 5 NA NA
2001 3 4+6+5=15 15/3 = 5
2002 7 6+5+3=14 14/3=4 2/3
2003 NA
Moving Average Solution
Time Response Moving Total Moving Average
Yi (n=3) (n=3)
1998 4 NA NA
1999 6 NA NA
2000 5 NA NA
2001 3 4+6+5=15 15/3=5.0
2002 7 6+5+3=14 14/3=4.7
2003 NA 5+3+7=15 15/3=5.0
Example of moving average and
weighted moving average
Example:
Period Demand Forecast
1 42
2 40 42
3 43
4 40
5 42
Simple moving average (4 months)
F6 = (40 + 43 + 40 + 42) / 4 = 41.25
Compute a weighted average forecast using a weight of 0.40 for the
most recent period, 0.30 for the next most recent, 0.20 for the next,
and 0.10 for the next.
Weighted moving average (4 months)
F6 = (42 * 0.4 + 40 * 0.3 + 43 * 0.2 + 40 * 0.1) = 41.4
(0.4 + 0.3 + 0.2 + 0.1)
Simple Moving Average
Actual
5-period
47
45
43
41
39
37 3-period
35
1 2 3 4 5 6 7 8 9 10 11 12
Actual Demand, Moving Average,
Weighted Moving Average
Weighted moving average
35
Actual sales
30
25
Sales Demand
20
15
10 Moving average
5
0
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Month
Exponential Smoothing
Ft = Ft-1 + (At-1 - Ft-1)
Forecasting error
3-27
Exponential Smoothing
Exponential smoothing ( = 0.1)
F3 = F2 + (A2 – F2)
= 42 + 0.1 (40 – 42) = 41.8
F4 = F3 + (A3 – F3)
= 41.8 + 0.1 (43 – 41.8) = 41.92
F5 = F4 + (A4 – F4)
= 41.92 + 0.1 (40 – 41.92)= 41.728
Example 3 - Exponential Smoothing
Actual Alpha = 0.1 Error Abs Alpha = 0.4 Error Abs
42
40 42 -2.00 2.00 42 -2 2
43 41.8 1.20 1.20 41.2 1.8 1.8
40 41.92 -1.92 1.92 41.92 -1.92 1.92
41 41.73 -0.73 0.73 41.15 -0.15 0.15
39 41.66 -2.66 2.66 41.09 -2.09 2.09
46 41.39 4.61 4.61 40.25 5.75 5.75
44 41.85 2.15 2.15 42.55 1.45 1.45
45 42.07 2.93 2.93 43.13 1.87 1.87
38 42.36 -4.36 4.36 43.88 -5.88 5.88
40 41.92 -1.92 1.92 41.53 -1.53 1.53
41.73 4.45 40.92 2.44
Picking a Smoothing Constant
Actual
50
= .4
= .1
Demand
45
40
35
1 2 3 4 5 6 7 8 9 10 11 12
Period
Example:
Example:
Associative Forecasting
Predictor variables - used to predict values of variable interest
Regression - technique for fitting a line to a set of points
Least squares line - The least squares regression method is a
mathematical technique that finds the best-fitting line or
curve for a set of data points, providing a visual demonstration
of the relationship between the data points. Each point of data
represents the relationship between a known independent variable
and an unknown dependent variable. This method is commonly
used by statisticians and traders who want to identify trading
opportunities and trends. Least squares regression is used to
predict the behavior of dependent variables.
Deviation Deviation
Deviation
Deviation Point on
regression
Deviation
line
Deviation
Yˆ = a + bx
Time
Linear Regression
No. of obs Unit Sales, x (in $ Profits, y (in $
millions) millions)
1 $7 $0.15
2 2 0.10
3 6 0.13
4 4 0.15
5 14 0.25
6 15 0.27
7 16 0.24
8 12 0.20 Computed
9
10
14
20
0.27
0.44
relationship
11 15 0.34
12 7 0.17
50
40
sample points.
20
10
0
0 5 10 15 20 25
Linear Regression
y = a + bx
n xy − x y
b=
n x − ( x )
2 2
a = y − bx
n= number of observations
Linear Regression
No. of obs Unit Sales, x (in Profits, y (in $ xy x2
$ millions) millions)
1 $7 $0.15 1.05 49
2 2 0.10 0.2 4
3 6 0.13 0.78 36
4 4 0.15 0.6 16
5 14 0.25 3.5 196
6 15 0.27 4.05 225
7 16 0.24 3.84 256
8 12 0.20 2.4 144
9 14 0.27 3.78 196
10 20 0.44 8.8 400
11 15 0.34 5.1 225
12 7 0.17 1.19 49
- ∑x= 132 ∑y= 2.71 ∑xy= 35.29 ∑x2= 1796
Linear Regression
12 * 35 .29 − 132 * 2.71
b=
12 *1796 − (132 )
2
b = 0.0159
Linear Regression
12 * 35 .29 − 132 * 2.71
b=
12 *1796 − (132 )
2
b = 0.0159
a = y − bx
2.71 132
a= − 0.0159
12 12
a = 0.0506
Linear Regression
12 * 35 .29 − 132 * 2.71
b=
12 *1796 − (132 )
2
b = 0.0159
a = y − bx
2.71 132
a= − 0.0159
12 12
a = 0.0506
y = 0.0506 + 0.0159 x
Linear Regression Assumptions
Variations around the line are random
Deviations around the line normally distributed
Predictions are being made only within the range of
observed values
For best results:
◼ Always plot the data to verify linearity
◼ Check for data being time-dependent
◼ Small correlation may imply that other variables are
important
Forecast Accuracy
Error - difference between actual value and predicted value
Mean Absolute Deviation (MAD)
➢ Average absolute error
➢ Easy to compute
➢ Weights errors linearly
Mean Squared Error (MSE)
➢ Average of squared error
➢ Squares error
➢ More weight to large errors
Mean Absolute Percent Error (MAPE)
➢ Average absolute percent error
MAD, MSE and MAPE
Actual − forecast
MAD =
n
2
( Actual − forecast)
MSE =
n- 1
MAD= 2.75
MSE= 10.86
MAPE= 1.28 %