Forecasting Techniques in Operations Management
Forecasting Techniques in Operations Management
OPERATIONS MANAGEMENT
Lecture 3 & 4:
Forecasting
16th February 2024
Dr. Muhammad Moazzam
Assistant Professor Operations and Supply Chain
NUST BUSINESS SCHOOL (NBS)
National University of Sciences & Technology, Islamabad, Pakistan
Dr. Muhammad Moazzam
Outline
● What Is Forecasting?
● Seven Steps in the Forecasting System
● Forecasting Approaches
● Time-Series Forecasting
● Associative Forecasting Methods: Regression
and Correlation Analysis
● Monitoring and Controlling Forecasts
● Forecasting in the Service Sector
Learning Objectives
What is Forecasting?
► Process of predicting a
future event
► Underlying basis
of all business decisions
► Production
??
► Inventory
► Personnel
► Facilities
Types of Forecasts
1. Economic forecasts
► Address business cycle – inflation rate, money
supply, housing starts, etc.
2. Technological forecasts
► Predict rate of technological progress
► Impacts development of new products
3. Demand forecasts
► Predict sales of existing products and services
based on POS data
● Supply-Chain Management
⌂ Good supplier relations, advantages in product
innovation, cost and speed to market
● Human Resources
⌂ Hiring, training, laying off workers
● Capacity Planning
⌂ Capacity shortages can result in undependable
delivery, loss of customers, loss of market share
Validate and
implement
results
The Realities!
Forecasting Approaches
Qualitative Methods
● Used when situation is vague and little data
exist
⌂ New products
⌂ New technology
● Involves intuition, experience
⌂ e.g., forecasting sales on Internet
Forecasting Approaches
Quantitative Methods
Qualitative Methods
Quantitative Approaches
1. Naive approach
2. Moving averages
Time-series
3. Exponential smoothing models
4. Trend projection
Associative
5. Linear regression model
Seasonal peaks
Actual demand
line
Average demand
over 4 years
Random variation
| | | |
1 2 3 4
Time (years)
Figure 4.1
14
Trend Component
► Persistent, overall upward or
downward pattern
► Changes due to population,
15
Seasonal Component
► Regular pattern of up and down
fluctuations
► Due to weather, customs, etc.
► Occurs within a single year
PERIOD LENGTH “SEASON” LENGTH NUMBER OF “SEASONS” IN PATTERN
Week Day 7
Month Week 4 – 4.5
Month Day 28 – 31
Year Quarter 4
Year Month 12
Year Week 52
16
Cyclical Component
► Repeating up and down movements
► Affected by business cycle, political,
and economic factors
► Multiple years duration
► Often causal or
associative
relationships
0 5 10 15 20
17
Random Component
► No discernible patterns
► Hard to predict
► Due to random variation or unforeseen
events
► Short duration
and nonrepeating
M T
W T 18
F
1. Naive Approach
► Assumes demand in next
period is the same as
demand in most recent period
► e.g., If January sales were 68, then
February sales will be 68
► Sometimes cost effective and
efficient
► Can be good starting point
19
2. Moving Average Method
► MA is a series of arithmetic means
► Used if little or no trend
► Used often for smoothing
► Provides overall impression of data
over time
20
Moving Average Example
Donna’s Garden Supply wants a 3-month moving-average forecast, including a
forecast for next January, for shed sales.
MONTH ACTUAL SHED SALES 3-MONTH MOVING AVERAGE
January 10
February 12
12
March 13
13
April 16 (10 + 12 + 13)/3 = 11 2/3
May 19 (12 + 13 + 16)/3 = 13 2/3
June 23 (13 + 16 + 19)/3 = 16
July 26 (16 + 19 + 23)/3 = 19 1/3
August 30
(19 + 23 + 26)/3 = 22 2/3
September 28
(23 + 26 + 30)/3 = 26 1/3
October 18
November 16 (29 + 30 + 28)/3 = 28
22
Weighted Moving Average
► Used when some trend might be
present
► Older data usually less important
► Weights based on experience and
intuition
Weighted
moving
average
23
Weighted Moving Average
Donna’s Garden Supply wants to forecast storage shed sales by weighting the past
3 months, with more weight given to recent data to make them more significant.
MONTH ACTUAL SHED SALES 3-MONTH WEIGHTED MOVING AVERAGE
January 10
February 12
12
March 13
13
April 16 [(3 x 13) + (2 x 12) + (10)]/6 = 12 1/6
May 19
June WEIGHTS
23 APPLIED PERIOD
July 26 3 Last month
August 30 2 Two months ago
September 28 1 Three months ago
October 18 6 Sum of the weights
November Forecast for
16this month =
December 3 x 14
Sales last mo. + 2 x Sales 2 mos. ago + 1 x Sales 3 mos. ago
Sum of the weights
24
Weighted Moving Average
MONTH ACTUAL SHED SALES 3-MONTH WEIGHTED MOVING AVERAGE
January 10
February 12
12
March 13
13
April 16 [(3 x 13) + (2 x 12) + (10)]/6 = 12 1/6
May 19 [(3 x 16) + (2 x 13) + (12)]/6 = 14 1/3
June 23
[(3 x 19) + (2 x 16) + (13)]/6 = 17
July 26
[(3 x 23) + (2 x 19) + (16)]/6 = 20 1/2
August 30
[(3 x 26) + (2 x 23) + (19)]/6 = 23 5/6
September 28
[(3 x 30) + (2 x 26) + (23)]/6 = 27 1/2
October 18
November 16 [(3 x 28) + (2 x 30) + (26)]/6 = 28 1/3
December 14 [(3 x 18) + (2 x 28) + (30)]/6 = 23 1/3
[(3 x 16) + (2 x 18) + (28)]/6 = 18 2/3
The forecast for January is 15 1/3. Do you see how this number is computed?
25
Potential Problems With
Moving Average
► Increasing n smooths the forecast but
makes it less sensitive to changes
► Does not forecast trends well
26
Graph of Moving Averages
Weighted moving average
30 –
25 –
Sales demand
20 –
Actual sales
15 –
Moving average
10 –
5–
| | | | | | | | | |
F M A M J J A S O N
Figure 4.2 Month
27
Exponential Smoothing
Form of weighted moving average
Weights decline exponentially
Most recent data weighted most
Requires smoothing constant ()
Ranges from 0 to 1
Subjectively chosen
Involves little record keeping of past data
28
Exponential Smoothing
New forecast = Last period’s forecast + (Last
period’s actual demand – Last
period’s forecast)
Ft = Ft – 1 + (At – 1 - Ft – 1)
29
Exponential Smoothing Example
4 - 30
Exponential Smoothing Example
4 - 31
Effect of Smoothing
Constants
o Smoothing constant generally .05 ≤ a ≤ .50
o As a increases, older values become less significant
WEIGHT ASSIGNED TO
SMOOTHI MOST 2ND MOST 3RD MOST 4th MOST 5th MOST
NG RECENT RECENT RECENT RECENT RECENT
CONSTAN PERIOD PERIOD PERIOD PERIOD PERIOD
T (a ) a(1 – a) a(1 – a)2 a(1 – a)3 a(1 – a)4
a = .1 .1 .09 .081 .073 .066
a = .5 .5 .25 .125 .063 .031
Actual demand a = .5
200 –
Demand
175 –
150 –
a = .1
| | | | | | | | |
1 2 3 4 5 6 7 8 9
Quarter
33
Impact of Different
225 –
o Chose high values of when
200 –
underlyingActual
average
demand is more a = .5
likely to change
Demand
o
175 – Choose low values of when
underlying average is stable
150 –
a = .1
| | | | | | | | |
1 2 3 4 5 6 7 8 9
Quarter
34
Activity-II
Emergency calls to Rescue 1122 Islamabad for the past 4
weeks are shown in the following table:
36
Common Measures of Error
37
Determining the MAD:
Example
During the past 8 quarters, the Port of Baltimore
has unloaded large quantities of grain from
ships. The port’s operations manager wants to
test the use of exponential smoothing to see
how well the technique works in predicting
tonnage unloaded. He guesses that the forecast
of grain unloaded in the first quarter
was 175 tons. Two values of are to be
examined: = .10 and = .50.
38
Determining the MAD
ACTUAL
TONNAGE FORECAST WITH
QUARTER UNLOADED FORECAST WITH a = .10 a = .50
1 180 175 175
39
Determining the MAD
ACTUAL FORECAST ABSOLUTE FORECAST ABSOLUTE
TONNAGE WITH DEVIATION WITH DEVIATION
QUARTER UNLOADED a = .10 FOR a = .10 a = .50 FOR a = .50
1 180 175 5.00 175 5.00
Σ|Deviations|
MAD = 10.31 12.33
n
40
Common Measures of Error
41
Determining the MSE
ACTUAL
TONNAGE FORECAST FOR
QUARTER UNLOADED a = .10 (ERROR)2
1 180 175 52 = 25
2 168 175.50 (–7.5)2 = 56.25
3 159 174.75 (–15.75)2 = 248.06
4 175 173.18 (1.82)2 = 3.31
5 190 173.36 (16.64)2 = 276.89
6 205 175.02 (29.98)2 = 898.80
7 180 178.02 (1.98)2 = 3.92
8 182 178.22 (3.78)2 = 14.29
Sum of errors squared = 1,526.52
43
Common Measures of Error
The Port of Baltimore wants to now calculate the
MAPE when = .10.
FORECAST ABSOLUTE PERCENT ERROR =
QUARTER ACTUAL = .10 100(|ERROR|/ACTUAL)
1 180 175.00 100(5/180) = 2.78%
2 168 175.50 100(7.5/168) = 4.46%
3 159 174.75 100(15.75/159) = 9.90%
4 175 173.18 100(1.82/175) = 1.05%
5 190 173.36 100(16.64/190) = 8.76%
6 205 175.02 100(29.98/205) = 14.62%
7 180 178.02 100(1.98/180) = 1.10%
8 182 178.22 100(3.78/182) = 2.08%
SUM OF % ERROR= 44.75%
45
Activity-III
▶ Apply MAD, MSE, and MAPE on the data
provided in Activity-II
46
Exponential Smoothing with Trend Dr. Muhammad Moazzam
Adjustment
Ft = (At - 1) + (1 - )(Ft - 1 + Tt - 1)
Tt = (Ft - Ft - 1) + (1 - )Tt - 1
25 –
20 –
15 –
10 –
Forecast including trend (FITt)
with = .2 and = .4
5 –
0 – | | | | | | | | |
1 2 3 4 5 6 7 8 9
Time (month)
Trend Projections
Fitting a trend line to historical data points to project into the medium
to long-range
Linear trends can be found using the least squares technique
y^ = a + bx
^ where y = computed value of the
variable to be predicted (dependent
variable)
a = y-axis intercept
b = slope of the regression line
x = the independent variable
Least Squares Method
Values of Dependent Variable
Deviation5 Deviation6
Deviation3
Deviation4
Deviation1
(error) Deviation2
Trend line, y ^= a + bx
Time period
Least Squares Method
Values of Dependent Variable
Deviation5 Deviation6
Deviation1
(error) Deviation2
Trend line, y ^= a + bx
Time period
Least Squares Method
^ = a + bx
y
Sxy - nxy
b=
Sx2 - nx2
a = y - bx
Least Squares Example
The demand for electric power at N.Y. Edison over 7 years is shown in
the table, in megawatts. The firm wants to forecast demand for years
2013 by fitting a straight-line trend to these data.
Time Electrical Power
Year Period (x) Demand (megawatt) x2 xy
2006 1 74 1 74
2007 2 79 4 158
2008 3 80 9 240
2009 4 90 16 360
2010 5 105 25 525
2011 6 142 36 852
2012 7 122 49 854
∑x = 28 ∑y = 692 ∑x2 = 140 ∑xy = 3,063
x=4 y = 98.86
130 –
120 –
110 –
100 –
90 –
80 –
70 –
60 –
50 –
| | | | | | | | |
2006 2007 2008 2009 2010 2011 2012 2013 2014
Year
Least Squares Requirements
110 –
100 –
90 –
80 –
70 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Time
Associative Forecasting Methods
y^ = a + bx
^ where y = computed value of the
variable to be predicted (dependent
variable)
a = y-axis intercept
b = slope of the regression line
x = the independent variable
though to predict the value of the
dependent variable
Associative Forecasting Example
Nodel Construction Company renovates old homes in West Bloomfield,
Michigan. Over time, the company has found that its dollar volume of
renovation work is dependent on the West Bloomfield area payroll. Management
wants to establish a mathematical relationship to help predict sales.
Sales
3.5 7
2.0 –
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll
Associative Forecasting Example
Sales, y Payroll, x x2 xy
2.0 1 1 2.0
3.0 3 9 9.0
2.5 4 16 10.0
2.0 2 4 4.0
2.0 1 1 2.0
3.5 7 49 24.5
∑y = 15.0 ∑x = 18 ∑x2 = 80 ∑xy = 51.5
nSxy - SxSy
r=
[nSx2 - (Sx)2][nSy2 - (Sy)2]
y
y Correlation Coefficient
nSxy - SxSy
r=
[nSx2 - (Sx)2][nSy2 - (Sy)2] (b) Positive x
(a) Perfect positive x correlation:
correlation: 0<r<1
r = +1
y y
a) Using this data, develop a regression equation for predicting the level of
demand of NCEC’s services.
b) Determine the coefficient of correlation and the standard error of the
estimate.
Multiple Regression Analysis
^y = a + b x + b x …
1 1 2 2
84
Forecasting in the Service
Sector
► Presents unusual challenges
► Special need for short term records i.e.
Barber shops, Banks
► Needs differ greatly as function of
industry and product i.e. flower shop
► Holidays and other calendar events
► Unusual events
85
Fast Food Restaurant Forecast
Percentage of sales by hour of day
15% –
10% –
5% –
10% –
8% –
6% –
4% –
2% –
0% – 2 4 6 8 10 12 2 4 6 8 10 12
A.M. P.M.
Hour of day
87