Chap05 Forecasting
Chap05 Forecasting
Forecasting
LEARNING OBJECTIVES
After completing this chapter, students will be able to:
5–2
CHAPTER OUTLINE
5.1 Introduction
5.2 Types of Forecasting Models
5.3 Components of a Time Series
5.4 Measures of Forecast Accuracy
5.5 Forecasting Models – Random Variations Only
5.6 Forecasting Models – Trend and Random
Variations
5.7 Adjusting for Seasonal Variations
5.8 Forecasting Models – Trend, Seasonal, and
Random Variations
5.9 Monitoring and Controlling Forecasts
5–3
Introduction
• Main purpose of forecasting
– Reduce uncertainty and make better
estimates of what will happen in the future
• Subjective methods
– Seat-of-the pants methods, intuition,
experience
• More formal quantitative and qualitative
techniques
5–4
Forecasting Models
FIGURE 5.1
Forecasting
Techniques
Consumer
Market Survey Decomposition
5–5
Qualitative Models
• Incorporate judgmental or subjective
factors
– Useful when subjective factors are
important or accurate quantitative data is
difficult to obtain
• Common qualitative techniques
1. Delphi method
2. Jury of executive opinion
3. Sales force composite
4. Consumer market surveys
5–6
Qualitative Models
• Delphi Method
– Iterative group process
– Respondents provide input to decision
makers
– Repeated until consensus is reached
• Jury of Executive Opinion
– Collects opinions of a small group of high-
level managers
– May use statistical models for analysis
5–7
Qualitative Models
• Sales Force Composite
– Allows individual salespersons estimates
– Reviewed for reasonableness
– Data is compiled at a district or national
level
• Consumer Market Survey
– Information on purchasing plans solicited
from customers or potential customers
– Used in forecasting, product design, new
product planning
5–8
Time-Series Models
• Predict the future based on the past
• Uses only historical data on one variable
• Extrapolations of past values of a series
• Ignores factors such as
– Economy
– Competition
– Selling price
5–9
Components of a Time Series
• Sequence of values recorded at
successive intervals of time
• Four possible components
– Trend (T)
– Seasonal (S)
– Cyclical (C)
– Random (R)
5 – 10
Components of a Time Series
FIGURE 5.2 – Series 4: Trend, Seasonal and Random Variations
Scatter Diagram
for Four Time
Series of Quarterly
Data
Series 3: Trend and Random Variations
Sales
| | | | | | | | | |
0 2 4 6 8 10 12 14 16 18
Time Period (Years)
5 – 12
Time-Series Models
• Two basic forms
– Multiplicative
Demand = T x S x C x R
– Additive
Demand = T + S + C + R
5 – 13
Measures of Forecast Accuracy
• Compare forecasted values with actual values
– See how well one model works
– To compare models
Forecast error = Actual value – Forecast value
• Measure of accuracy
– Mean absolute deviation (MAD):
MAD =
å forecast error
n
5 – 14
Measures of Forecast Accuracy
TABLE 5.1 – Computing the Mean Absolute Deviation (MAD)
ACTUAL
SALES OF ABSOLUTE VALUE OF
WIRELESS FORECAST ERRORS (DEVIATION),
YEAR SPEAKERS SALES (ACTUAL – FORECAST)
1 110 —
2 100 110
3 120 100
4 140 120
5 170 140
6 150 170
7 160 150
8 190 160
9 200 190
10 190 200
11 — 190
5 – 15
Measures of Forecast Accuracy
TABLE 5.1 – Computing the Mean Absolute Deviation (MAD)
ACTUAL
SALES OF
WIRELESS FORECAST
• ABSOLUTE
Forecast based
VALUE OF
ERRORS (DEVIATION),
on
YEAR SPEAKERS SALES naïve– FORECAST)
(ACTUAL model
1 110 —
2 100 110
• No attempt to adjust
3 120 100 for time series
4 140 120 components
5 170 140
6 150 170
7 160 150
8 190 160
9 200 190
10 190 200
11 — 190
5 – 16
Measures
MAD =
å forecastof Forecast
error
=
160
=17.8
Accuracy
n 9
TABLE 5.1 – Computing the Mean Absolute Deviation (MAD)
ACTUAL
SALES OF ABSOLUTE VALUE OF
WIRELESS FORECAST ERRORS (DEVIATION),
YEAR SPEAKERS SALES (ACTUAL – FORECAST)
1 110 — —
2 100 110 |100 – 110| = 10
3 120 100 |120 – 110| = 20
4 140 120 |140 – 120| = 20
5 170 140 |170 – 140| = 30
6 150 170 |150 – 170| = 20
7 160 150 |160 – 150| = 10
8 190 160 |190 – 160| = 30
9 200 190 |200 – 190| = 10
10 190 200
|190 – 200| = 10
11 — 190
—
Sum of |errors| = 160
MAD = 160/9 = 17.8
5 – 17
Measures of Forecast Accuracy
• Other common measures
– Mean squared error (MSE)
MSE =
å (error) 2
n
– Mean absolute percent error (MAPE)
error
å actual
MAPE = 100%
n
5 – 19
Moving Averages
• Used when demand is relatively steady
over time
– The next forecast is the average of the
most recent n data values from the time
series
– Smooths out short-term irregularities in the
data series
Sum of demands in
previous n periods
Moving average forecast =
n
5 – 20
Moving Averages
• Mathematically
Y t +Y t- 1 +... +Y t- n+1
Ft+1 =
n
ere
Ft+1 = forecast for time period t + 1
Yt = actual value in time period t
n = number of periods to average
5 – 21
Wallace Garden Supply
• Wallace Garden Supply wants to
forecast demand for its Storage Shed
– Collected data for the past year
– Use a three-month moving average (n = 3)
5 – 22
Wallace Garden Supply
TABLE 5.2
5 – 23
Weighted Moving Averages
• Weighted moving averages use weights to put
more emphasis on previous periods
– Often used when a trend or other pattern is
emerging
Ft+1 =
å (Weight in period i)(Actual value in period)
å (Weights)
– Mathematically
w1Y t + w2Y t- 1 +... + wnY t- n+1
Ft+1 =
w1 + w2 +... + wn
where
wi = weight for the ith observation
5 – 24
Wallace Garden Supply
• Use a 3-month weighted moving average
model to forecast demand
– Weighting scheme
5 – 25
Wallace Garden Supply
TABLE 5.3
3-MONTH WEIGHTED
MONTH ACTUAL SHED SALES MOVING AVERAGE
January 10
February 12
March 13
April 16 [(3 X 13) + (2 X 12) + (10)]/6 = 12.17
May 19 [(3 X 16) + (2 X 13) + (12)]/6 = 14.33
June 23 [(3 X 19) + (2 X 16) + (13)]/6 = 17.00
July 26 [(3 X 23) + (2 X 19) + (16)]/6 = 20.50
August 30 [(3 X 26) + (2 X 23) + (19)]/6 = 23.83
September 28 [(3 X 30) + (2 X 26) + (23)]/6 = 27.50
October 18 [(3 X 28) + (2 X 30) + (26)]/6 = 28.33
November 16 [(3 X 18) + (2 X 28) + (30)]/6 = 23.33
December 14 [(3 X 16) + (2 X 18) + (28)]/6 = 18.67
January — [(3 X 14) + (2 X 16) + (18)]/6 = 15.33
5 – 26
Exponential Smoothing
• Exponential smoothing
– A type of moving average
– Easy to use
– Requires little record keeping of data
Ft+1 =Ft + a (Y t - Ft )
where
Ft+1 = new forecast (for time period t + 1)
Ft = pervious forecast (for time period t)
= smoothing constant (0 ≤ ≤ 1)
Yt = pervious period’s actual demand
5 – 29
Selecting the Smoothing Constant
• Selecting the appropriate value for is key to
obtaining a good forecast
• The objective is always to generate an
accurate forecast
• The general approach is to develop trial
forecasts with different values of and select
the that results in the lowest MAD
• Chose high values of when underlying
average is likely to change
• Choose low values of when underlying
average is stable
5 – 30
Port of Baltimore Example
TABLE 5.4 – Exponential Smoothing Forecast for = 0.1 and = 0.5
ACTUAL FORECAST
TONNAGE FORECAST USING
QUARTER UNLOADED USING = 0.10 = 0.50
1 180 175 175
2 168 175.5 = 175.00 + 0.10(180 – 175) 177.5
3 159 174.75 = 175.50 + 0.10(168 – 175.50) 172.75
4 175 173.18 = 174.75 + 0.10(159 – 174.75) 165.88
5 190 173.36 = 173.18 + 0.10(175 – 173.18) 170.44
6 205 175.02 = 173.36 + 0.10(190 – 173.36) 180.22
7 180 178.02 = 175.02 + 0.10(205 – 175.02) 192.61
8 182 178.22 = 178.02 + 0.10(180 – 178.02) 186.30
9 ? 178.60 = 178.22 + 0.10(182 – 178.22) 184.15
5 – 31
Port of Baltimore Example
TABLE 5.5 – Absolute Deviations and MADs
ABSOLUTE
ACTUAL FORECAST DEVIATIONS ABSOLUTE
TONNAGE WITH = FOR = FORECAST DEVIATIONS
QUARTER UNLOADED 0.10 0.10 WITH = 0.50 FOR = 0.50
5 – 33
Using Software
PROGRAM 5.1B – Initializing Excel QM
5 – 34
Using Software
PROGRAM 5.1C – Excel QM Output
5 – 35
Using Software
PROGRAM 5.2A – Selecting Time-Series Analysis in QM for Windows
5 – 36
Using Software
PROGRAM 5.2B – Entering Data
5 – 37
Using Software
PROGRAM 5.2C – Selecting the Model and Entering Data
5 – 38
Using Software
PROGRAM 5.2D – Output for Port of Baltimore Example
5 – 39
Forecasting – Trend and Random
• Exponential smoothing does not respond to
trends
• A more complex model can be used
• The basic approach
– Develop an exponential smoothing forecast
– Adjust it for the trend
5 – 40
Exponential Smoothing
with Trend
• The equation for the trend correction uses a
new smoothing constant
• Ft and Tt must be given or estimated
• Three steps in developing FITt
5 – 41
Exponential Smoothing
with Trend
Step 2: Update the trend (Tt +1) using
Smoothed Previous forecast b(Error or
= +
forecast including trend excess in trend)
5 – 43
Midwestern Manufacturing
• Demand for electrical generators from 2007 – 2013
– Midwest assumes F1 is perfect, T1 = 0, a = 0.3, b = 0.4
5 – 44
Midwestern Manufacturing
For 2008 (time period 2)
Step 1: Compute Ft+1
F2 = FIT1 + a(Y1 – FIT1)
= 74 + 0.3(74 – 74) = 74
Step 2: Update the trend
T2 = T1 + b(F2 – FIT1)
= 0 + .4(74 – 74) = 0
5 – 45
Midwestern Manufacturing
Step 3: Calculate the trend-adjusted
exponential smoothing forecast (Ft+1) using
FIT2 = F2 + T2
= 74 + 0 = 74
5 – 46
Midwestern Manufacturing
For 2009 (time period 3)
Step 1: F3 = FIT2 + a(Y2 – FIT2)
= 74 + 0.3(79 – 74) = 75.5
Step 2: T3 = T2 + .4(F3 – FIT2)
= 0 + .4(75.5 – 74) = 0.6
Step 3: FIT3 = F3 + T3
= 75.5 + 0.6 = 76.1
5 – 47
Midwestern Manufacturing
TABLE 5.7 – Exponential Smoothing with Trend Forecasts
TIME DEMAND
(t) (Yt) Ft+1 = FITt + 0.3(Yt – FITt) Tt+1 = Tt + 0.4(Ft+1 – FITt) FITt+1 = Ft+1 + Tt+1
1 74 74 0 74
2 79 74 0 74
= 74 + 0.3(74 – 74) = 0 + 0.4(74 – 74) = 74 + 0
5 – 48
Exponential Smoothing with
Trend Adjustment(Other Ex.)
Ft = (At - 1) + (1 - )(Ft - 1 + Tt - 1)
Tt = (Ft - Ft - 1) + (1 - )Tt - 1
Step 1: Compute Ft
Step 2: Compute Tt
Step 3: Calculate the forecast FITt = Ft + Tt
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
3 20
4 19
5 24
6 21
7 31
8 28
9 36
10
Table 4.1
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
3 20
4 19
Step 1: Forecast for Month 2
5 24
6 21
F2 = A1 + (1 - )(F1 + T1)
7 31
8 28 F2 = (.2)(12) + (1 - .2)(11 + 2)
9 36 = 2.4 + 10.4 = 12.8 units
10
Table 4.1
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
3 20
4 19
Step 2: Trend for Month 2
5 24
6 21
T2 = (F2 - F1) + (1 - )T1
7 31
8 28 T2 = (.4)(12.8 - 11) + (1 - .4)(2)
9 36 = .72 + 1.2 = 1.92 units
10
Table 4.1
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
3 20
4 19
Step 3: Calculate FIT for Month 2
5 24
6 21
FIT2 = F2 + T2
7 31
8 28 FIT2 = 12.8 + 1.92
9 36 = 14.72 units
10
Table 4.1
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
Table 4.1
Midwestern Manufacturing
PROGRAM 5.3 – Output from Excel QM Trend-Adjusted Exponential Smoothing
5 – 55
Trend Projections
• Fits a trend line to a series of historical
data points
• Projected into the future for medium- to
long-range forecasts
• Trend equations can be developed
based on exponential or quadratic
models
• Linear model developed using
regression analysis is simplest
5 – 56
Trend Projections
• Mathematical formula
Yˆ =b0 + b1 X
where
Yˆ
= predicted value
b0 = intercept
b1 = slope of the line
X = time period (i.e., X = 1, 2, 3, …, n)
5 – 57
Midwestern Manufacturing
• Based on least squares regression, the
forecast equation is
Yˆ =56.71+10.54X
• Year 2014 is coded as X = 8
(sales in 2014) = 56.71 + 10.54(8)
= 141.03, or 141 generators
• For X = 9
(sales in 2015) = 56.71 + 10.54(9)
= 151.57, or 152 generators
5 – 58
Midwestern Manufacturing
PROGRAM 5.4 – Output from Excel QM for Trend Line
5 – 59
Midwestern Manufacturing
PROGRAM 5.5 – Output from QM for Trend Line
5 – 60
Midwestern Manufacturing
FIGURE 5.4 – Generator Demand Based on Trend Line
180 –
Trend Line
160 – Yˆ =56.71+10.54X x
x
140 – x
Generator Demand
60 –
40 –
20 –
| | | | | | | | | | | |
0–
0 1 2 3 4 5 6 7 8 9 10 11
Time Period
5 – 61