Demand Forecasting Slides
Demand Forecasting Slides
Learning Objectives
Defining and understanding different types of
forecasting
Clarifying features common of forecasting
Understanding and able to apply quantitative and
qualitative approaches for demand forecasting
Analyzing forecast accuracy
“GIANT” WAL-MART
WAL-MART’S DATA WAREHOUSE
500 terabytes: One of the world’s largest data
warehouses
The systems track:
- Point-of-sale data at each store,
- Inventory levels by store,
- Products in transit,
- Market statistics,
- Customer demographics,
- Finance,
- Product returns,
- Supplier performance, etc...
WAL-MART’S DATA WAREHOUSE
The data are used Data mining: demand-
for decision forecasting application
support:
- Analyzing trend,
- Managing Seasonal sales profile of
inventory, 100,000 products
- Understanding
customers. Market-basket analysis:
Relationship and
patterns in customer
purchases
Forecast
Forecast – a statement about the future value of a
variable of interest
We make forecasts about such things as weather,
demand, and resource availability
Forecasts are important to making informed
decisions
Forecast is familiar with the management science
(facts or conditions) and an art (past experiences...)
Demand forecasting is one of the earliest and most
popular in OM
Two Important Aspects of Forecasts
Expected level of demand
The level of demand may
be a function of some
structural variation such ??
as trend or seasonal
variation
Accuracy
Related to the potential
size of forecast error
Forecast Uses
Plan the system
Generally involves long-range plans related to:
Types of products and services to offer
Facility and equipment levels
Facility location
Plan the use of the system
Generally involves short- and medium-range plans related to:
Inventory management
Workforce levels
Purchasing
Production
Budgeting
Scheduling
Features Common to all Forecasts
Forecasting techniques assume that the same
underlying causal system that existed in the past will
continue to exist in the future.
3 months to 3 years
3+ years
• Quantitative methods
Approaches to Forecasting
Qualitative methods
Executive opinions
Consumer survey
Delphi method
Executive Opinions
Involves small group of high-
level experts and managers
Group estimates demand by
working together
Combines managerial
experience with statistical
models
Relatively quick
‘Group-think’
disadvantage
Sales Force Opinions
Each salesperson projects his or her sales
Changing income
Seasonality
Short-term, fairly regular variations related to the
calendar or time of day
Restaurants, service call centers, and theaters all
experience seasonal demand
Cycles and Variations
Cycle
Wavelike variations lasting more than one year
These are often related to a variety of economic, political, or
even agricultural conditions
Irregular variation
Due to unusual circumstances that do not reflect typical
behavior
Labor strike
Weather event
Random Variation
Residual variation that remains after all other behaviors have
been accounted for
Time-Series Forecasting
Naive Method
Assumes demand in next period is the same as demand
in most recent period
Ft = Dt-1
Ft : Demand forecasted at time t
Dt-1: Actual demand at time t-1
e.g., If January sales were 5000 products, then
February sales will be 5000 products
Can be used with
A stable time series
Seasonal variations
Trend
Naive Method
Advantages
Sometimes cost effective and efficient
Can be good starting point
Suitable for demand forecasting with trend
Disadvantages:
Naïve and not precise
Not suitable for demand forecasting with
seasonal component => big error!
Time-Series Forecasting - Averaging
These techniques work best when a series tends to vary
about an average
Averaging techniques smooth variations in the data
They can handle step changes or gradual changes in
the level of a series
Techniques
1. Moving average
2. Weighted moving average
3. Exponential smoothing
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
n
D t −i
Ft = i =1
n
1. n →
2. n is finite number
Moving Average Method
As new data become available, the forecast is updated
by adding the newest value and dropping the oldest
and then re-computing the average
The number of data points included in the average
determines the model’s sensitivity
Fewer data points used—more responsive
More data points used—less responsive
Moving Average Example
Making forecast for the following months:
Month Actual Demand
(100 units)
1 98
2 102
3 103
4 97
5 95
6
With n =3, making forecast for the next coming
months:
= Dt - Ft
Example: Making forecast for following months with
= 0.8 and it is assumed that D1 = F1
y t = β 0 + β1x + ε
Linear Trend
Consider the time series data as bivariate
The procedure for conducting the method
- Step 1: Take the physical time points as values of
the independent variable x (coded as 1, 2, 3, etc).
- Step 2: Take the data values themselves as values
of the dependent variable y
- Step 3: Calculate the regression line of y on x, y=
a+bx
- Step 4: Translate the regression line as t=a+bx,
where any given value of time point x will yield a
corresponding value of the trend, t.
Formulas
n n n
n xiyi − xi yi
n n n n
yi − xi xiyi
xi
2
a= i =1
n
i =1 i =1
n
i =1
b= i =1
n
i =1
n
i =1
n xi − ( xi )
2 2
n xi 2 − ( xi ) 2
i =1 i =1
i =1 i =1
or
xy − x y
b= a = y − bx
( x ) − ( x)
2 2
Example
Estimate a trend line using regression analysis
Year Time Σx = 21
Period (x) Sales (y)
Σy = 275
Σxy = 1130
2015 1 20
2016 2 40 = 91
x 2
2017 3 30
2018 4 50
2019 5 70
2020 6 65
Example
xy − x . y 188.333 − 3.5 45.833
b= = = 9.5714
x2
15.167 − (3.5) 2
t = 12.333 + 9.5714 x
Sales trend
80
70
60
50
sales
40
30
20
10
0
0 1 2 3 4 5 6 7
Year
Trend-Based Forecasting
Forecast for time period 7:
Time y= 12.333+9.5714(7)
Year Period (t) Sales
(y)
=79.33
2015 1 20
2016 2 40
2017 3 30
2018 4 50
2019 5 70
2020 6 65
2021 7 ??
Associative Forecasting
Sometimes called as Causal relationship
Used when changes in one or more independent
variables can be used to predict the changes in the
dependent variable.
Most common technique is linear regression
analysis
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
Past data:
y1 y2 y3 ... yn
x1 x2 x3 ... xn
n: number of observations
Associative Forecasting
Y
y10
y8
y7
y9
Estimated
y6
y5
regression
y4 line
y3
y2
y1
0 1 1x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 X
Formulas
n n n
n xiyi − xi yi
n n n n
yi − xi xiyi
xi
2
a= i =1
n
i =1 i =1
n
i =1
b= i =1
n
i =1
n
i =1
n xi − ( xi )
2 2
n xi 2 − ( xi ) 2
i =1 i =1
i =1 i =1
or
xy − x y
b= a = y − bx
( x ) − ( x)
2 2
Example
The data below Cost of No of products
relates cost of advertisement sold
advertising (VND (VND m) (1000 units)
m)to number of 1 2
products sold (1000 3 8
units). 4 9
Prepare the 5 15
regression model and 6 15
make a conclusion 7 20
about this relation. 9 23
12 25
Forecast the number 14 22
of products sold if 15 36
cost of ads is 20 m.
VND
Correlation Analysis
Correlation is a technique used to measure the
strength of the relationship between two variables.
n xy − x y
r=
n x − ( x) n y − ( y )
2 2 2 2
Correlation Coefficient (r)
-1 r 1
MAD =
Actual t − Forecast t
n
(Actual − Forecast t )
2
MSE = t
n −1
MSE weights errors according to their squared values
The smaller MAD and MSE are, the better they are.
Forecast Accuracy
Actualt − Forecast t
Actual t
100
MAPE =
n
MAPE weights errors according to relative error
Forecast Error Calculation
Actual Forecast (A-F)
Period
(A) (F) Error |Error| Error2 [|Error|/Actual]x100
1 107 110 -3 3 9 2.80%
Sum 13 39 11.23%
1 217 215
2 213 216
3 216 215
4 210 214
5 213 211
6 219 214
7 216 217
8 212 216
Exercise 1
UK outward passenger movements by sea
(millions):
Period 1 2 3 4 5 6 7 8 9 10
Unemployment 1.3 2.0 1.7 1.5 1.6 1.2 1.6 1.4 1.0 1.1
rate, %
Number of10 6 5 12 10 15 5 12 17 20
products sold
(1000 units)