Forecasting: I See That You Will Get An A From This Course
Forecasting: I See That You Will Get An A From This Course
Forecasting: I See That You Will Get An A From This Course
There are many types of forecasting models. They differ in their degree
of complexity, the amount of data they use, and the way they generate
the forecast: However, some features are common to all forecasting
models. They include the following
Long-range forecast
> 2 years
Design
New product planning
of system
Qualitative
Methods
Steps of Forecasting
11
Forecasting Techniques
Qualitative Methods
Used when situation is vague and little data exist.
New products
New technology
Innovative products
Involves intuition, experience.
Forecasts generated subjectively by the forecaster.
Educated guesses.
12
Forecasting Techniques
Quantitative Methods
Used when situation is ‘stable’ and historical data exist.
Existing products
Current technology
Involves mathematical techniques or mathematical modeling.
Example
Forecasting sales of color televisions.
Commodity products that are sold every day.
13
Qualitative Approaches to
Forecasting
Delphi Approach
A panel of experts, each of whom is physically
separated from the others and is anonymous, is asked
to respond to a sequential series of questionnaires.
Requires one person to administer and coordinate the
process and poll the team members (respondents)
through a series of sequential questionnaires.
After each questionnaire, the responses are tabulated
and the information and opinions of the entire group are
made known to each of the other panel members so
that they may revise their previous forecast response.
The process continues until some degree of consensus
is achieved.
Conti…
Typically, the procedure consists of the following steps:
Each expert in the group makes his/her own forecasts
in form of statements
The coordinator collects all group statements and
summarizes them
The coordinator provides this summary and gives
another set of questions to each
group member including feedback as to the input of
other experts.
The above steps are repeated until a consensus is
reached.
Qualitative Approaches (continued)
Executive Opinions/Group Consensus:
The subjective views of executives or experts from sales, production,
finance, purchasing, and administration are averaged to generate a
forecast about future sales.
Consumer Surveys:
Surveys regarding specific consumer purchases.
Surveys may consist of telephone contacts, personal interviews, or
questionnaires as a means of obtaining data.
Sales force composite:
Estimates from individual salespersons are reviewed for
reasonableness, then aggregated.
Quantitative Approaches to
Forecasting
Quantitative methods are based on an analysis of historical
data concerning one or more time series.
A time series is a set of observations measured at successive
points in time or over successive periods of time.
If the historical data used are restricted to past values of the
series that we are trying to forecast, the procedure is called a
time series method.
If the historical data used involve other time series that are
believed to be related to the time series that we are trying to
forecast, the procedure is called a causal method.
Quantitative approaches are generally preferred. In this chapter
we will focus on quantitative approaches to forecasting.
Quantitative Forecasting Methods
Quantitative
Forecasting
2. Moving 3. Exponential
1. Naive
Average Smoothing
a) simple a) level
b) weighted b) trend
c) seasonality
Time Series Patterns
Seasonal Composite
Product Demand over Time
Demand for product or service
Actual demand
Random line
variation
Year Year Year Year
1 2 3 4
Now let’s look at some time series approaches to forecasting…
Time Series Models
Naïve or Projection
Exponential Smoothing
1. Naive Approach
FFtt11 == w
w11A
Att ++ w
w22A
Att-1-1 ++w
w33A
Att--22 ++...
...++w
wnnA
Att--nn11
Weights
decrease for older data
sum to 1.0 Simple
Simple moving
moving
average
average models
models
weight
weight all
all
the most recent data is the most relevant.
previous
previous
periods
periods equally
equally
FFt t 11 ==ww11AAt t ++ww22AAt -t1-1++ww33AAt -t2-2++......++wwnnAAt -tn-n11
2b. Weighted Moving Average: 3/6, 2/6, 1/6
35
3a. Exponential Smoothing – Example 1
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai
Week Demand
1 820 Given
Given the
the weekly
weekly demand
demand
2 775 data
data what
what are
are the
the exponential
exponential
3 680 smoothing
smoothing forecasts
forecasts for
for
4 655 periods
periods 2-10 using =0.10?
2-10 using =0.10?
5 750
6 802 Assume
Assume FF11=D
=D11
7 798
8 689
9 775
10
3a. Exponential Smoothing – Example 1
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Week Demand = 0.1 0.6
1 820 820.00 820.00
2 775 820.00 820.00
3 680 F2815.50
= F1+ (A793.00
1–F1) =820+(820–820)
4 655 801.95 725.20=820
5 750 787.26 683.08
6 802 783.53 723.23
7 798 785.38 770.49
8 689 786.64 787.00
9 775 776.88 728.20
10 776.69 756.28
3a. Exponential Smoothing – Example 1
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Week Demand = 0.1 0.6
1 820 820.00 820.00
2 775 820.00 820.00
3 680 815.50 793.00
F3 = F2+ (A2–F2) =820+(775–820)
4 655 801.95 725.20
5 750 787.26 683.08=815.5
6 802 783.53 723.23
7 798 785.38 770.49
8 689 786.64 787.00
9 775 776.88 728.20
10 776.69 756.28
3a. Exponential Smoothing – Example 1
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Week Demand = 0.1 0.6
1 820 820.00 820.00
2 775 820.00 820.00
3 680 815.50 793.00
4 655 801.95 725.20
5 750 787.26 683.08
6 802 783.53 723.23This process
7 798 785.38 770.49 continues
8 689 786.64 787.00
through week 10
9 775 776.88 728.20
10 776.69 756.28
3a. Exponential Smoothing – Example 1
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Week Demand = 0.1 = 0.6
1 820 820.00 820.00
2 775 820.00 820.00
3 680 815.50 793.00
4 655 801.95 725.20
5 750 787.26 683.08 What if the
6 802 783.53 723.23 constant
7 798 785.38 770.49 equals 0.6
8 689 786.64 787.00
9 775 776.88 728.20
10 776.69 756.28
3a. Exponential Smoothing – Example 2
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Month Demand = 0.3 = 0.6
January 120 100.00 100.00
February 90 106.00 112.00
March 101 101.20 98.80
April 91 101.14 100.12
May 115 98.10 94.65 What if the
June 83 103.17 106.86 constant
July 97.12 92.54 equals 0.6
August
September
3a. Exponential Smoothing – Example 3
Company
Company A, A, aa personal
personal computer
computer producer
producer
purchases
purchases generic
generic parts
parts and
and assembles
assembles themthem toto
final
final product.
product. Even
Even though
though mostmost ofof the
the orders
orders
require
require customization,
customization, they
they have
have many
many common
common
components.
components. Thus,
Thus, managers
managers of of Company
Company A A need
need
aa good
good forecast
forecast ofof demand
demand so so that
that they
they can
can
purchase
purchase computer
computer parts
parts accordingly
accordingly to to minimize
minimize
inventory
inventory cost
cost while
while meeting
meeting acceptable
acceptable service
service
level.
level. Demand
Demand datadata for
for its
its computers
computers for for the
the past
past 55
months
months isis given
given in
in the
the following table..
following table
3a. Exponential Smoothing – Example 3
FFt+1
t+1
=
= F
Ftt
+
+ (A
(Att
-
- F
Ft )
t)
i Ai Fi
Month Demand = 0.3 = 0.5
January 80 84.00 84.00
February 84 82.80 82.00
March 82 83.16 83.00
April 85 82.81 82.50
May 89 83.47 83.75 What if the
June 85.13 86.38 constant
July ?? ?? equals 0.5
Forecast Effects of
Smoothing Constant
Ft+1 = Ft + (At - Ft)
or Ft+1 = At + (1- ) At - 1 + (1- )2At - 2 + ...
w1 w2 w3
Weights
= Prior Period 2 periods ago 3 periods ago
(1 - ) (1 - )2
= 0.10
10% 9% 8.1%
t=
t =11
MSE =
MSE =
Penalizes larger errors nn
d. RMSE = Root Mean Squared Error RMSE
RMSE == MSE
MSE
Ideal values =0 (i.e., no forecasting error)
nn
MAD Example
AA --FF
t=1
tt tt = 40 =10
MAD
MAD== t=1 4
nn
What
What isis the
the MAD
MAD value
value given
given the
the
forecast
forecast values
values in
in the
the table
table below?
below?
At Ft
Month Sales Forecast |At – Ft|
1 220 n/a
2 250 255 5
3 210 205 5
4 300 320 20
5 325 315 10
= 40
nn
A - F
At t - Ft t
22
= 550 =137.5
MSE/RMSE Example MSE =
MSE =
t =t =11
nn 4
What
What isis the
the MSE
MSE value?
value? RMSE = √137.5
=11.73
At Ft
Month Sales Forecast |At – Ft| (At – Ft)2
1 220 n/a
2 250 255 5 25
3 210 205 5 25
4 300 320 20 400
5 325 315 10 100
= 550
Measures of Error
e t
84
Jan 120 100 20 20 400 MAD 1 = 14
n
6
Feb 90 106 -16 16 256
2a. Mean Squared Error
Mar 101 102 -1 1 1 (MSE)
n
MSE 1 1,446
May 115 98 17 17 289 n = 241
6
June 83 103 -20 20 400
2b. Root Mean Squared Error
(RMSE)
-10 84 1,446
An accurate forecasting system will have small MAD, MSE and RMSE MSE
RMSE; ideally equal to zero. A large error may indicate that either
the forecasting method used or the parameters such as α used in = SQRT(241)
the method are wrong.
Note: In the above, n is the number of periods, which is 6 in our
=15.52
Measuring Accuracy: Tracking signal
Example:
Weighted (n=3,
Simple t-1=0.45, Exponential Exponential Exponential
No Actual Naïve
(n=3) t-2=0.35, (α=0.1) (α=0.5) (α=0.8)
t-3=0.2)
1 110 105 105 105
2 100
3 120
4 140
5 170
6 150
7 160
8 190
9 200
10 190
11
MAD
CFE
RMSE
TS
Measuring Forecast Accuracy and Error
Regression Analysis as a Method for
Forecasting
Regression analysis takes advantage of the relationship between two
variables.
Demand is then forecasted based on the knowledge of this relationship and
for the given value of the related variable.
Ex: Sale of Tires (Y), Sale of Autos (X) are obviously related
If we analyze the past data of these two variables and establish a relationship
between them, we may use that relationship to forecast the sales of tires
given the sales of automobiles.
The simplest form of the relationship is, of course, linear, hence it is referred to as
a regression line.
where,
where,
x
xy n x y
y
b
x nx 2 2
x
y
a y bx
Regression – Example: find F(July)
xy n x y a y bx
yy == aa++ bb X
X b
x nx
2 2
MonthAdvertising Sales X 2 XY
January 3 1 9.00 3.00
February 4 2 16.00 8.00
March 2 1 4.00 2.00
April 5 3 25.00 15.00
May 4 2 16.00 8.00
June 2 1 4.00 2.00
July
TOTAL 20 10 74 38
y= a + bx
Solution ( Demand forecast for Jul)
2 Sales Demand
Month x y xy x^2 y^2
JAN 3 1 3 9 1
FEB 4 2 8 16 4
MAR 2 1 2 4 1
APR 5 3 15 25 9
MAY 4 2 8 16 4
JUN 2 1 2 4 1
sum 20 10 38 74 20
JUL 6 ????
xbar ybar
b = 0. 64 3.333 1.8
a = - 0. 46 y= a + bx
y= - 0.46 + 0.64 x
y (Jul) = 3.38
Thank you!!!