Professional Documents
Culture Documents
1
Forecasting
FORECASTING
Definition
Goals
Characteristics
The longer the forecast horizon, the less accurate the forecast will be
IMPORTANCE OF FORECASTING
Several factors affect the future success of a firm. What are some of these
factors that require planning decisions?
Forecasting is responsible for the most valuable input to planning decisions.
Types of organization decisions may be affected by different forecasts
based on the planning period of interest.
Examples of Organization Decisions
Organization Decisions
Long-Term (months/years)
Intermediate-term
(weeks/months)
DECISIONS
1. Data
2. Time
3. Expertise
4. Funds
1.Internal
Subjective
Survey
2. Environmental Data
Economic
Social
Technological
1.
2.
3.
4.
2.
Selection of method
FORECATING METHODS
Historical
INPUTS
1.
Accuracy
Simplicity of computation
Flexibility to adjust the rate of response
objectivity
1.Subjective (Qualitative)
2.Objective (Quantitative)
a. Moving Averages
b. Exponential Smoothing
c. Causal Forecasting
d. Growth Analysis
- Holts Method
e. Seasonal Forecasting
- Winters Methods
FORECASTER
(Performance Criteria)
Expected Demand
OUTPUTS
Forecast error
CONSTRAINTS
The time available to prepare a forecast
The lack of relevant data from internal and external sources
The quality of available data
The expertise within the organization
The available computing facilities
Forecasting Process
FORECASTING METHODS
1.
Historical Analogies
Stationary Models
(A) Moving Averages
(1) Simple Moving Average
(2) Weighted Moving Average
(B) Simple Exponential Smoothing (One-step-ahead forecast)
Trend Models
(A) Regression-Based Forecasting
Trend refers to the long term growth or decline in the average level of demand.
Seasonal Models
(A) Stationary model
(B) Triple Exponential Smoothing (Multi-step-ahead forecast - WINTERS Method)
(t )
e
(
t
)
Y
(
t
)
Y
Where
Y(t) = actual value
Y (t ) = forecast value
2. Running sum of the forecast errors (RSFE)
RSFE
[Y (t ) Y (t )]
t 1
e(t ) 0
model)
Y (t ) Y (t )
t 1
(Sum
of absolute errors)/(Number
of periods)
MAD
Y (t ) Y (t )
N
MSE
Best suited for systems for which the cost of being in error (i.e.. The cost of
surplus or shortage of inventory or capacity) increase rapidly with the size of
the error.
100 N Y (t ) Y (t )
MAP
the
Evaluates
goodness of the forecast.
N t 1
Y (t )
RSFE N [Y (t ) Y (t )]
TS
MAD
Y (t ) Y (t )
MOVING AVERAGES
1. Simple n-moving average.
Mathematically, we have
Xt
i 1
t i
Where
X t = forecasted demand for period t.
X t i = actual demand for ith period preceding t.
n = number of time period to include in the moving average
2. Weighted moving average
Xt
cX
i 1
t i
Where
c = n
i 1
1.
2.
X ( X X )
X
t
t 1
t 1
t 1
error)
3. Implications of
Small
Large
Comparison of Exponential
Smoothing and Moving Average
SIMILARITIES
Comparison of Exponential
Smoothing and Moving Average
DIFFERENCES
Therefore, 1
=>
=>
N 1
2
2
N 1
2
1
is given by
Y (t ) a
Linear
Y (t ) a bt
Quadratic
Y (t ) a bt ct 2
Exponential
Y (t ) aebt
Polynomial
Y (t ) a bt ct 2 .......... w t n1 zt n
1.
Y (t ) a
Linear:
Y (t ) a bX (t )
Quadratic:
Y (t ) a bX (t ) cX 2 (t )
Exponential
Y (t ) ae bX (t )
Y (t ) a bX 1 (t ) cX 2 (t ) ..........zX n (t )
Childrens Clothing
Home Appliances
Construction materials
Machine tools
( [Y (t ) Y (t )] 2 )
t 1
An Example of a Regression
Line
REGRESSION-BASED METHOD
(By Differential Calculus)
Constant Model:
(i)
d [ e 2 (t )
t 1
da
2 [Y (t ) a ] 0
t 1
Y (t )
a
(ii)
t 1
Linear Model:
N
(t )
t 1
[Y (t ) a bt ]
t 1
d [ e 2 (t )
t 1
da
2 [Y (t ) a bt ] 0
t 1
REGRESSION-BASED METHOD
(By Differential Calculus)
N
t 1
t 1
Y (t ) Na b t
(1)
d [ e 2 (t )
t 1
db
From (1)
2 [Y (t ) a bt ] 0
t 1
t 1
t 1
tY (t ) a t b t
.(2)
Y (t ) b t
a
N
INTERCEPT
Y (t ) b t
Substituting a in (2), we have
2
t b t
tY (t )
N
N tY (t ) Y (t ) b( t ) 2 bN t 2
REGRESSION-BASED METHOD
(By Differential Calculus)
b[ N t 2 ( t ) 2 ] N tY (t ) Y (t ) t
N tY (t ) Y (t ) t
SLOPE
N t 2 ( t ) 2
Equations (1) and (2) are called NORMAL EQUATIONS a set of simultaneous
linear equations. Alternatively,
Sxy
b
Sxx
Sxy
i Di
i 1
2
S xx
__
n ( n 1)
( n 1)( 2 n 1)
6
b ( n 1)
2
Di
i 1
n ( n 1)
REGRESSION-BASED METHOD
(Accuracy of Regression Line)
ryx
n xy x y
[n X 2 ( X ) 2 ][ Y 2 ( Y ) 2 ]
r r 2r yx ryz rzx
yx
yz
is calculated
R yxzas follows:
1 rxz2
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
19
18
15
31
22
27
39
38
44
30
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
19
18
15
31
22
27
39
38
44
31
SOLUTION TO EXAMPLE
2.1
Month
Y(t)
t2
tY(t)
JAN
FEB
19
38
MAR
18
54
APR
15
16
60
MAY
31
25
155
JUN
22
36
132
JUL
27
49
189
AUG
39
64
312
SEP
38
81
342
OCT
44
10
100
440
SUM =>
258
55
385
1727
32
REGRESSION-BASED METHOD
(By Matrix Approach)
SSR
SSE
1
SSTO
SSTO
1
Y 11 Y
n
SSE Y Y b X Y
SSR b X Y
1
Y 11Y
n
SSTO Y Y
b = (XX)-1(XY)
REGRESSION-BASED METHOD
(By Matrix Approach)
y1
y
2
y n
1 x12
1 x
22
X
1 xn2
x1m
x 2 m
x nm
b0
b
1
b
bm
REGRESSION-BASED MODEL
(Class Example 2.2 Problem Causal Forecasting)
Problem Statement:
The demand for new furniture is suspected to have a relationship
with either or both of two factors, the number of marriage
licenses issued in the previous year and the number of building
permits issued for houses in the previous year. The data for these
factors are given in the following table :
Year
Millions of marriage
licenses in previous
year
112
2.5
9.0
145
3.5
12.0
105
3.5
10.0
180
5.0
13.0
95
4.0
5.0
80
3.0
6.0
200
4.0
15.0
210
5.0
14.0
150
2.0
13.0
10
160
3.0
12.0
REGRESSION-BASED MODEL
(Class Example Problem Causal Forecasting)
Using spreadsheet (Excel), answer the following questions:
Questions :
(a)
(b)
(c)
(d)
Repeat (c) using purely the matrix approach from scratch (with builtin regression tools in Excel)
REGRESSION-BASED MODEL
Class Example Problem
(Determining the Needed Correlation Coefficients)
REGRESSION-BASED MODEL
Class Example Problem
(Row Reduction Matrix Solution for Simultaneous
Equations)
b)
EQUATIONS
b
35.5
134.75
394.5
c
109
394.5
1289
Rt
1437
5305
16903
1
35.5
109
3.55
134.75
394.5
10.9
394.5
1289
143.7
5305
16903
1
0
0
3.55
8.725
7.55
10.9
7.55
100.9
143.7
203.65
1239.7
1
0
0
3.55
1
7.55
10.9
0.86533
100.9
143.7
23.340974
1239.7
BASIC
a
1
0
0
b
0
1
0
c
7.82808
0.86533
94.3668
Rt
60.84
23.34
1063
1
0
0
0
1
0
7.82808
0.86533
1
60.84
23.34
11.27
1
0
0
0
1
0
0
0
1
-27.38
13.59
11.27
FORECAST
PERIOD
11
MARRIAGE LICENCES
4
PERMITS
10
FORECAST
$ 139.67 million
REGRESSION-BASED MODEL
Class Example Problem
(Using Matrix Solution Approach from Scratch)
c)
EQUATIONS
b =(x'x)^-1 (x'y)
x
x'
y'
1'
R =SSR / SSTO
1
1
1
1
1
1
1
1
1
1
2.50
3.50
3.50
5.00
4.00
3.00
4.00
5.00
2.00
3.00
9
12
10
13
5
6
15
14
13
12
112
145
105
180
95
80
200
210
150
160
1
1
2.5
9
2
1
3.5
12
3
1
3.5
10
112
145
1
1
1
1
1
1
1
1
1
1
4
1
5
13
5
1
4
5
6
1
3
6
7
1
4
15
8
1
5
14
9
1
2
13
10
1
3
12
105
180
95
80
200
210
150
160
REGRESSION-BASED MODEL
Class Example Problem
(Using Matrix Solution Approach from Scratch)
1 x'x
2
3
1
2
3
10.00
35.50
35.50 134.75
109.00 394.50
x'y
1 b
2
3
109.00
394.50
1289.00
compared to
SSR =b'x'y-(1/n)y'*1*1' y
R = SSR/SSTO
b'x'y
SSR=
R=
inv
2.19 -0.34
-0.34 0.12
-0.08 -0.01
-0.08
-0.01
0.01
1437
5305
16903
-27.38
13.59
11.27
b'
1
2
3
13.59
11.27
223235
y'1
1437
0.9236
-27.38
16738
a =
b =
c=
1'y
SSTO =
18122
1437
y'y 224619
1.
2.
St Dt (1 )( St 1 Gt 1 )
3.
Ft ,t St Gt
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
19
18
15
31
22
27
39
38
44
42
SEASONAL FORECASTING
2.
3.
180,000
150,000
130,000
169,000
183,000
155,000
128,000
170,000
190,000
160,000
140,000
165,000
191,000
162,000
135,000
160,000
195,000
155,000
143,000
168,000
200,000
189,833
170,000
158,667
150,000
137,667
165,000
166,167
7
Use the simple moving-average to determine the forecast for
each quarter of next year (i.e. year 7).
45
Assumptions:
The length of the season is exactly N
periods
The seasonal factors (indices) are the same
each season and the property
47
Yt
(1 )(St 1 Gt 1 )
St
ct N
Gt [ St St 1 ] (1 )Gt 1
Y
ct t (1 )ct N
St
Ft ,t x ( St xGt )ct x N
48
Initialization
for Winterss Method
Initialization
for Winterss Method
Contd
Initialization
for Winterss Method
Contd
Initialization
for Winterss Method
Contd
52
INITIALIZATION OF THE
WINTERS METHOD
53
Alternative Initialization
Procedure for Winters Method
54