Lecture 8-9 Forecasting
Lecture 8-9 Forecasting
FORECASTING
1.
2.
Production
Inventory
??
3. Personnel
4. Facilities
Forecasting Time Horizons
Short-range forecast
Up to 1 year, generally less than 3 months
Purchasing, job scheduling, workforce levels, job assignments,
production levels
Medium-range forecast
3 months to 3 years
Sales and production planning, budgeting
Long-range forecast
3+ years
New product planning, facility location, research and development
Influence of Product Life Cycle
• Naive approach
• Moving averages time-series
models
• Exponential smoothing
• Trend projection associative
• Linear regression model
Time Series Forecasting
• Humidity
• Temperature
• Fuel price
• Electricity price
Time Series Components
Trend Cyclical
Seasonal Random
Components of Demand
Trend
component
Actual demand
line
Average demand
over 4 years
Random variation
| | | |
1 2 3 4
Time (years)
Trend Component
Number of
Period Length Seasons
Week Day 7
Month Week 4-4.5
Month Day 28-31
Year Quarter 4
Year Month 12
Year Week 52
Cyclical Component
• Repeating up and down movements
• Affected by business cycle, political, and economic factors
• Multiple years duration
0 5 10 15 20
Random Component
M T W T F
Naive Approach
Actual 3-Month
Month Shed Sales Moving Average
January 10
10
12
February 12
13
March 13 (10 + 12 + 13)/3 = 11 2/3
April 16
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
Graph of Moving Average
Moving
Average
30 –
28 –
Forecast
26 – Actual
24 – Sales
Shed Sales
22 –
20 –
18 –
16 –
14 –
12 –
10 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Weighted Moving Average
20 – Actual
sales
15 –
Moving
10 – average
5 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Potential Problems With
Moving Average
Ft = Ft – 1 + a(At – 1 - Ft – 1)
225 –
Actual a = .5
demand
200 –
Demand
175 –
a = .1
| | | | | | | | |
150 –
1 2 3 4 5 6 7 8 9
Quarter
Impact of Different
225 –
Actual a = .5
• of when
Choose high values demand
underlying
200 – average is likely to
Demand
change
175 – low values of when
• Choose
underlying average is stable
a = .1
| | | | | | | | |
150 –
1 2 3 4 5 6 7 8 9
Quarter
Choosing
n
∑100|Actuali - Forecasti|/Actuali
MAPE = i=1
n
Sample Example for forecasting error
∑ |deviations|
Rounded Absolute Rounded Absolute
MADActual
= Forecast Deviation Forecast Deviation
Tonnage n
with for with for
Quarter Unloaded a = .10 a = .10 a = .50 a = .50
1
For a =180
.10 175 5.00 175 5.00
2 168 = 82.45/8
175.5 = 10.31
7.50 177.50 9.50
3 159 174.75 15.75 172.75 13.75
4 For a =175
.50 173.18 1.82 165.88 9.12
5 190 173.36 16.64 170.44 19.56
6 205 = 98.62/8
175.02 = 12.33
29.98 180.22 24.78
7 180 178.02 1.98 192.61 12.61
8 182 178.22 3.78 186.30 4.30
82.45 98.62
Comparison of Forecast Error
∑ (forecast
Rounded
errors) 2
Absolute Rounded Absolute
MSE = Actual Forecast Deviation Forecast Deviation
Tonnage n
with for with for
Quarter Unloaded a = .10 a = .10 a = .50 a = .50
1
For a =180
.10 175 5.00 175 5.00
2 = 1,526.54/8
168 175.5 = 190.82
7.50 177.50 9.50
3 159 174.75 15.75 172.75 13.75
4 For a =175
.50 173.18 1.82 165.88 9.12
5 190 173.36 16.64 170.44 19.56
6 = 1,561.91/8
205 175.02 = 195.24
29.98 180.22 24.78
7 180 178.02 1.98 192.61 12.61
8 182 178.22 3.78 186.30 4.30
82.45 98.62
MAD 10.31 12.33
Comparison of Forecast Error
n
∑100|deviation
Rounded i|/actuali Rounded
Absolute Absolute
MAPE =Actual
i=1 Forecast Deviation Forecast Deviation
Tonnage with for with for
Quarter Unloaded a = .10 n a = .10 a = .50 a = .50
1
For a180
= .10 175 5.00 175 5.00
2 168 = 44.75/8
175.5 = 5.59%
7.50 177.50 9.50
3 159 174.75 15.75 172.75 13.75
4 For a175
= .50 173.18 1.82 165.88 9.12
5 190 173.36 16.64 170.44 19.56
6 205 = 54.05/8
175.02 = 6.76%
29.98 180.22 24.78
7 180 178.02 1.98 192.61 12.61
8 182 178.22 3.78 186.30 4.30
82.45 98.62
MAD 10.31 12.33
MSE 190.82 195.24
© 2011 Pearson Education, Inc. publishing as Prentice Hall
Comparison of Forecast Error
Ft = a(At - 1) + (1 - a)(Ft - 1 + Tt - 1)
Tt = b(Ft - Ft - 1) + (1 - b)Tt - 1
Step 1: Compute Ft
Step 2: Compute Tt
Step 3: Calculate the forecast FITt = Ft + Tt
Example for Exponential Smoothing with Trend
Adjustment
Forecast
Actual Smoothed Smoothed Including
Month(t) Demand (At) Forecast, Ft Trend, Tt Trend, FITt
1 12 11 2 13.00
2 17 12.80 1.92
3 20
4 19
5 24 Step 3: Calculate FIT for Month 2
6 21
7 31 FIT2 = F2 + T2
8 28
9 36
FIT2 = 12.8 + 1.92
10 = 14.72 units
Exponential Smoothing with Trend
Adjustment Example
Forecast
Actual Smoothed Smoothed Including
Month(t) Demand (At) Forecast, Ft Trend, Tt Trend, FITt
1 12 11 2 13.00
2 17 12.80 1.92 14.72
3 20 15.18 2.10 17.28
4 19 17.82 2.32 20.14
5 24 19.91 2.23 22.14
6 21 22.51 2.38 24.89
7 31 24.11 2.07 26.18
8 28 27.14 2.45 29.59
9 36 29.28 2.32 31.60
10 32.48 2.68 35.16
Exponential Smoothing with Trend
Adjustment Example
35 –
Actual demand (At)
30 –
Product demand
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
Actual observation
Values of Dependent Variable
Deviation7
(y-value)
Deviation5 Deviation6
Deviation3
Deviation4
Deviation1
(error) Deviation2
Trend line, y ^= a + bx
Time period
Least Squares Method
Actual observation
Values of Dependent Variable
Deviation7
(y-value)
Deviation5 Deviation6
Deviation1
(error) Deviation2
Trend line, y ^= a + bx
Time period
Least Squares Method
y^ = a + bx
Sxy - nxy
b=
Sx2 - nx2
a = y - bx
Least Squares Example
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
a ©=2011y Pearson
- bx Education,
= 98.86 - 10.54(4) = 56.70
Inc. publishing as Prentice Hall
Least Squares Example
Time Electrical Power
Year Period (x) Demand x2 xy
2003 1 74 1 74
2004 2 79 4 158
2005The trend3 line is 80 9 240
2006 4 90 16 360
2007 y^ =5 56.70 + 10.54x
105 25 525
2008 6 142 36 852
2009 7 122 49 854
∑x = 28 ∑y = 692 ∑x2 = 140 ∑xy = 3,063
x=4 y = 98.86
a ©=2011y Pearson
- bx Education,
= 98.86 - 10.54(4) = 56.70
Inc. publishing as Prentice Hall
Least Squares Example
Trend line,
160 –
150 –
y^ = 56.70 + 10.54x
140 –
Power demand
130 –
120 –
110 –
100 –
90 –
80 –
70 –
60 –
50 –
| | | | | | | | |
2006 2007 2008 2009 2010 2011 2012 2013 2014
YearHall
© 2011 Pearson Education, Inc. publishing as Prentice
Least Squares Requirements
110 –
100 –
90 –
80 –
70 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Time
Associative Forecasting
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
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
Nodel’s sales
Sales = 1.75 + .25(6) 2.0 –
Sales = $3,250,000
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll
Standard Error of the Estimate
• A forecast is just a point estimate of a future value
• This point is actually the mean of a probability distribution
4.0 –
3.25
Nodel’s sales 3.0 –
2.0 –
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll
Standard Error of the Estimate
Nodel’s sales
The standard error of
the estimate is 2.0 –
$306,000 in sales
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll
Prediction Intervals
(tα/2=0.025) ) =2.78
Prediction Intervals
nSxy - SxSy
r=
[nSx2 - (Sx)2][nSy2 - (Sy)2]
y Correlation Coefficient
y
nSxy - SxSy
r=
(a) Perfect positive [nSx
x
2
- (Sx)2][nSy(b)
2
-Positive
(Sy)2] x
correlation: correlation:
r = +1 0<r<1
y y
^y = a + b x + b x …
1 1 2 2
∑(Actual demand in
period i -
Forecast demand
Tracking in period i)
signal =
(∑|Actual - Forecast|/n)
Tracking Signal
Acceptable
0 MADs range
Time
Tracking Signal Example
Cumulative
Absolute Absolute
Actual Forecast Cumm Forecast Forecast
Qtr Demand Demand Error Error Error Error MAD
1 90-10/10
100= -1 -10 -10 10 10 10.0
2 95-15/7.5
100= -2 -5 -15 5 15 7.5
3 115 0/10100
= 0 +15 0 15 30 10.0
4 100-10/10
110= -1 -10 -10 10 40 10.0
5 125
+5/11110
= +0.5+15 +5 15 55 11.0
6 140
+35/14.2
110= +2.5
+30 +35 30 85 14.2
The variation of the tracking signal between -2.0 and +2.5 is within
acceptable limits
One Company’s Rules for Changing the Smoothing
Constant (α )
0 - 2.4
2.5 - 2.9
3.0 - 3.9
Over 4
Forecasting in the Service Sector