Lecture 2 - Forecasting
Lecture 2 - Forecasting
Lecture 2 - Forecasting
• What Is Forecasting?
• The Strategic Importance of Forecasting
• Seven Steps in the Forecasting System
• Forecasting Approaches
• Time-Series Forecasting
• Associative Forecasting Methods: Regression and Correlation Analysis
• Monitoring and Controlling Forecasts
• Forecasting in the Service Sector
LEARNING OBJECTIVES
1. Understand the three time horizons and which models apply for each use
2. Explain when to use each of the four qualitative models
3. Apply the naive, moving average, exponential smoothing, and trend methods
4. Compute three measures of forecast accuracy
5. Develop seasonal indices
6. Conduct a regression and correlation analysis
7. Use a tracking signal
WHAT IS FORECASTING?
• Human Resources
- Hiring
- Training
- Laying off workers
• Capacity planning
- Capacity shortages can result in undependable delivery, loss of
customers, loss of market share
FACTORS INFLUENCING FORECAST
• Product
- Life cycle: Introduction and growth require longer forecasts than maturity
and decline
- Product family and aggregated forecasts are more accurate than individual
product forecasts
FACTORS INFLUENCING FORECAST
• Internal factors: Most forecasting techniques are based on assumption that
the production system is stable in:
- Manpower (numbers, qualification, knowledge and skills)
• Forecasting unit
- Forecasting Methods (time-series, associative, regression, survey)
• Technological forecasts
- Predict rate of technological progress
• Demand forecasts
- Predict sales of existing products and services
SEVEN STEPS IN FORECASTING
• Quantitative methods
- Used when situation is ‘stable’ and historical data exist
► Existing products
► Current technology
- Involves mathematical techniques
► e.g., forecasting sales of color televisions
OVERVIEW OF QUALITATIVE METHODS
• Jury of executive opinion
- Pool opinions of high-level experts, sometimes augment by statistical
models
• Delphi method
- Panel of experts, queried iteratively
• Market Survey
- Ask the customer
OVERVIEW OF QUALITATIVE METHODS
• Jury of executive opinion
- Pool opinions of high-level experts, sometimes augment by statistical models
- Relatively quick
- ‘Group-think’ disadvantage
OVERVIEW OF QUALITATIVE METHODS
• Delphi method
- Panel of experts, queried iteratively
➢ Staff
➢ Respondents Staff
(Administering survey)
Respondents
(People who can make
valuable judgments)
OVERVIEW OF QUALITATIVE METHODS
• Sales force composite
- Estimates from individual salespersons are reviewed for reasonableness,
then aggregated
1. Naive approach
2. Moving averages
Time-series models
3. Exponential smoothing
4. Trend projection
Trend
component
Actual demand
line
Average demand
over 4 years
Random variation
| | | |
1 2 3 4
Time (years)
TREND COMPONENT
0 5 10 15 20
RANDOM COMPONENT
M T W T F
NAIVE APPROACH
• Assumes demand in next period is the same as demand in most recent
period
► e.g., If January sales were 68, then February sales will be 68
Moving average =
å demand in previous n periods
n
MOVING AVERAGE EXAMPLE
Please using this method to make a forecast for the remaining months
MOVING AVERAGE EXAMPLE
Please using this method to make a forecast for the remaining months
WEIGHTED MOVING AVERAGE
Sales demand 25 –
20 –
15 – Actual sales
10 – Moving average
5–
| | | | | | | | | | | |
J F M A M J J A S O N D
Month
Ft = Ft – 1 + a (At – 1 - Ft – 1)
225 –
a = .5
Actual demand
200 –
Demand
175 –
a = .1
150 – | | | | | | | | |
1 2 3 4 5 6 7 8 9
Quarter
IMPACT OF DIFFERENT a
a = .5
Actual demand
200 –
Demand
175 –
a = .1
150 – | | | | | | | | |
1 2 3 4 5 6 7 8 9
Quarter
CHOOSING a
σ𝒏𝒕=𝟏 𝑨𝒕 − 𝑭𝒕
𝑴𝑨𝑫 = 10.31 12.33
𝒏
COMMON MEASURES OF ERROR
Where:
MSE – Mean Squared Error
𝑨𝒕 - Actual value
𝑭𝒕 - Forecast value
𝒏 – Number of values in the data set
DETERMINING THE MSE
ACTUAL
TONNAGE FORECAST FOR
QUARTER UNLOADED a = .10 (ERROR)2
1 180 175 52 = 25
2 168 175.50 (–7.5)2 = 56.25
3 159 174.75 (–15.75)2 = 248.06
4 175 173.18 (1.82)2 = 3.31
5 190 173.36 (16.64)2 = 276.89
6 205 175.02 (29.98)2 = 898.80
7 180 178.02 (1.98)2 = 3.92
8 182 178.22 (3.78)2 = 14.29
Sum of errors squared = 1,526.52
å (Forecast errors)
2
ACTUAL
TONNAGE FORECAST FOR ABSOLUTE PERCENT ERROR
QUARTER UNLOADED a = .10 100(ERROR/ACTUAL)
1 180 175.00 100(5/180) = 2.78%
2 168 175.50 100(7.5/168) = 4.46%
3 159 174.75 100(15.75/159) = 9.90%
4 175 173.18 100(1.82/175) = 1.05%
5 190 173.36 100(16.64/190) = 8.76%
6 205 175.02 100(29.98/205) = 14.62%
7 180 178.02 100(1.98/180) = 1.10%
8 182 178.22 100(3.78/182) = 2.08%
Sum of % errors = 44.75%
MAPE =
å absolute percent error 44.75%
= = 5.59%
n 8
COMPARISON OF FORECAST ERROR
σ𝒏𝒕=𝟏 𝑨𝒕 − 𝑭𝒕Rounded
𝟐 Absolute Rounded Absolute
𝑴𝑺𝑬 = Actual Forecast Deviation Forecast Deviation
𝒏
Tonnage with for with for
Quarter Unloaded a = .10 a = .10 a = .50 a = .50
For1a = .10180 175 5.00 175 5.00
2 168
= 1,526.54/8 =175.5
190.82 7.50 177.50 9.50
3 159 174.75 15.75 172.75 13.75
For4a = .50175 173.18 1.82 165.88 9.12
5 190 173.36 16.64 170.44 19.56
6 205
= 1,561.91/8 =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
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
MONTH (t) ACTUAL DEMAND (At) MONTH (t) ACTUAL DEMAND (At)
1 12 6 21
2 17 7 31
3 20 8 28
4 19 9 36
5 24 10 ?
a = .2 b = .4
EXPONENTIAL SMOOTHING WITH TREND ADJUSTMENT
EXAMPLE
40 –
35 – Actual demand (At)
30 –
Product demand
25 –
20 –
15 –
10 – Forecast including trend (FITt)
5 – with a = .2 and b = .4
0 –
| | | | | | | | |
1 2 3 4 5 6 7 8 9
Time (months)
TREND PROJECTIONS
• Fitting a trend line to historical data points to project into the medium to long-range
y^= a + bx
Deviation5 Deviation6
Deviation3
Least squares method minimizes the
sum ofDeviation
the squared
4
errors (deviations)
Deviation1
(error) Deviation2
Trend line, ^y = a + bx
| | | | | | |
1 2 3 4 5 6 7
Time period
© 2014 Pearson Education, Inc. 4 - 66
LEAST SQUARES METHOD
ŷ = a + bx
b=
å xy - nxy
å x - nx
2 2
a = y - bx
© 2014 Pearson Education, Inc. 4 - 67
LEAST SQUARES EXAMPLE
ELECTRICAL ELECTRICAL
YEAR POWER DEMAND YEAR POWER DEMAND
1 74 5 105
2 79 6 142
3 80 7 122
4 90
LEAST SQUARES EXAMPLE
ELECTRICAL POWER
YEAR (x) DEMAND (y) x2 xy
1 74 1 74
2 79 4 158
3 80 9 240
4 90 16 360
5 105 25 525
6 142 36 852
7 122 49 854
Σx = 28 Σy = 692 Σx2 = 140 Σxy = 3,063
x=
å x 28
= =4 y=
å y 692
= = 98.86
n 7 n 7
LEAST SQUARES EXAMPLE
åx 140 - (7) ( 4 )
74 1 74
2
- nx 2 2
28
2 79 4 158
3 80 9 240
a4 = y - bx = 98.86 -10.54
90 4 = 56.70 () 16 360
5 105 25 525
6 142
ŷ = 56.70 +10.54x
36 852
Thus,
7 122 49 854
Σx = 28 Σy = 692 Σx2 = 140 Σxy = 3,063
x=
å
Demandx in
= =4 y=
å
28year 8 = 56.70y + 692
=
10.54(8)
= 98.86
n 7 = 141.02,
n or
7 141 megawatts
LEAST SQUARES EXAMPLE
Trend line,
160 – y^ = 56.70 + 10.54x
–
Power demand (megawatts)
150
140 –
130 –
120 –
110 –
100 –
90 –
80 –
70 –
60 –
50 –
| | | | | | | | |
1 2 3 4 5 6 7 8 9
Year
LEAST SQUARES REQUIREMENTS
DEMAND
AVERAGE AVERAGE
YEARLY MONTHLY SEASONAL
MONTH YEAR 1 YEAR 2 YEAR 3 DEMAND DEMAND INDEX
Jan 80 85 105 90
Feb 70 85 85 80
Mar 80 93 82 85
Apr 90 95 115 100
May 113 125 131 123
June 110 115 120 115
July 100 102 113 105
Aug 88 102 110 100
Sept 85 90 95 90
Oct 77 78 85 80
Nov 75 82 83 80
Dec 82 78 80 80
Total average annual demand = 1,128
SEASONAL INDEX EXAMPLE
DEMAND
AVERAGE AVERAGE
YEARLY MONTHLY SEASONAL
MONTH YEAR 1 YEAR 2 YEAR 3 DEMAND DEMAND INDEX
Jan 80 85 105 90 94
Feb 70 85 85 80 94
Mar 80 93 82 85 94
Apr 90 95 115 100 94
May 113 125 131 123 94 Average 1,128
June 110 115 120 115 94 monthly = = 94
July 100 102 113 105 94 12 months
demand
Aug 88 102 110 100 94
Sept 85 90 95 90 94
Oct 77 78 85 80 94
Nov 75 82 83 80 94
Dec 82 78 80 80 94
Total average annual demand = 1,128
SEASONAL INDEX EXAMPLE
DEMAND
AVERAGE AVERAGE
YEARLY MONTHLY SEASONAL
MONTH YEAR 1 YEAR 2 YEAR 3 DEMAND DEMAND INDEX
Jan 80 85 105 90 94 .957( = 90/94)
Feb 70 85 85 80 94
Mar 80 93 82 85 94
Apr 90 95 115 100 94
May 113 125 131 123 94
June 110 115 120 115 94
July 100 102 113 105 94
Aug 88 102 110 100 94
Sept 85 90 95 90 94
Oct 77 78 85 80 94
Nov 75 82 83 80 94
Dec 82 78 80 80 94
Total average annual demand = 1,128
Year 4 Forecast
140 – Year 3 Demand
130 – Year 2 Demand
Year 1 Demand
120 –
Demand
110 –
100 –
90 –
80 –
70 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Time
ASSOCIATIVE FORECASTING
^
y = a + bx
4.0 –
Nodel’s sales
(in$ millions)
3.0 –
2.0 –
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll (in $ billions)
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
x=
å x 18
= =3 y=
å y 15
= = 2.5
6 6 6 6
b=
å xy - nxy 51.5 - (6)(3)(2.5)
= = .25 a = y - bx = 2.5 - (.25)(3) = 1.75
å x - nx
2 2
80 - (6)(3 ) 2
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
x=
å x = 18 = 3 y=
å y = 15 = 2.5
6 6 6 6
b=
å xy - nxy 51.5 - (6)(3)(2.5)
= = .25 a = y - bx = 2.5 - (.25)(3) = 1.75
å x - nx
2
80 - (6)(3 )
2 2
ŷ = 1.75 + .25x
Sales = 1.75 + .25(payroll)
ASSOCIATIVE FORECASTING EXAMPLE
SALES, y PAYROLL, x x2 xy
2.0 1 1 2.0
4.0 –
Nodel’s sales
(in$ millions)
3.0 3 9 9.0
3.0 – 2.5 4 16 10.0
2.0 2 4 4.0
2.0 –
2.0 1 1 2.0
| | |3.5 | | | | 7 49 24.5
1.0 –0 1 2 3 4 5 67
Σy payroll
Area Σx = 18
= 15.0(in $ billions) Σx2 = 80 Σxy = 51.5
x=
å x 18
= =3 y=
å y 15
= = 2.5
6 6 6 6
b=
å xy - nxy 51.5 - (6)(3)(2.5)
= = .25 a = y - bx = 2.5 - (.25)(3) = 1.75
å x - nx2
80 - 2
(6)(3 ) 2
ŷ = 1.75 + .25x
Sales = 1.75 + .25(payroll)
ASSOCIATIVE FORECASTING EXAMPLE
4.0 –
3.25
Nodel’s sales
(in$ millions)
3.0 –
2.0 –
Sales (in$ millions) = 1.75 + .25(6)
1.0 –
= 1.75 + 1.5 = 3.25
| | | | | | |
0 1 2 3 4 5 6 7
Sales = $3,250,000
Area payroll (in $ billions)
STANDARD ERROR OF THE ESTIMATE
4.0 –
3.25
Nodel’s sales
(in$ millions)
3.0 – Regression line,
ŷ =1.75+.25x
2.0 –
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll (in $ billions)
STANDARD ERROR OF THE ESTIMATE
S y,x =
å ( y - y c
) 2
n-2
S y,x =
å - aå y - bå xy
y 2
n-2
• We use the standard error to set up prediction intervals around the
point estimate
STANDARD ERROR OF THE ESTIMATE
S y,x =
å - aå y - bå xy
y 2
=
39.5 -1.75(15.0) - .25(51.5)
n-2 6-2
= .09375
= .306 (in $ millions)
Nodel’s sales
3.0 –
(in$ millions)
2.0 –
1.0 –
| | | | | | |
0 1 2 3 4 5 6 7
Area payroll (in $ billions)
MULTIPLE-REGRESSION ANALYSIS
ŷ = a + b1x1 + b2 x2
• In the Nodel example, including interest rates in the model gives the
new equation:
nå xy - å xå y
r=
é ùé ù
êënå x - ( )
å x úûêënå y - ( )
å y úû
2 2
2 2
CORRELATION COEFFICIENT
y y
x x
(a) Perfect negative (e) Perfect positive
correlation y y correlation
y
x x
(b) Negative (d) Positive correlation
correlation
x
(c) No correlation
–1.0 –0.8 –0.6 –0.4 –0.2 0 0.2 0.4 0.6 0.8 1.0
Correlation coefficient values
CORRELATION COEFFICIENT
y x x2 xy y2
2.0 1 1 2.0 4.0
3.0 3 9 9.0 9.0
2.5 4 16 10.0 6.25
2.0 2 4 4.0 4.0
2.0 1 1 2.0 4.0
3.5 7 49 24.5 12.25
Σy = 15.0 Σx = 18 Σx2 = 80 Σxy = 51.5 Σy2 = 39.5
(6)(51.5) – (18)(15.0)
r=
é(6)(80) – (18)2 ùé(16)(39.5) – (15.0)2 ù
ë ûë û
309 - 270 39 39
= = = = .901
(156)(12) 1,872 43.3
CORRELATION
• Tracking Signal
► Measures how well the forecast is predicting actual values
σ𝒏𝒕=𝟏 𝑨𝒕 − 𝑭𝒕 σ𝒏𝒕=𝟏 𝑨𝒕 − 𝑭𝒕
𝑻𝑹𝑨𝑪𝑲𝑰𝑵𝑮 𝑺𝑰𝑮𝑵𝑨𝑳 = = 𝒏
𝑴𝑨𝑫 σ𝒕=𝟏 𝑨𝒕 − 𝑭𝒕
𝒏
Where:
𝑨𝒕 - Actual demand
𝑭𝒕 - Forecast demand
𝑴𝑨𝑫 – Mean absolute deviation
𝒏 – Numbers of data in the data set
MONITORING AND CONTROLLING FORECASTS
• Tracking signal
0 MADs Acceptable
range
–
Lower control limit
Time
MONITORING AND CONTROLLING FORECASTS
• Forecasting model with the lowest error used to forecast the next demand
FORECASTING IN THE SERVICE SECTOR
15% –
10% –
5% –
12% –
10% –
8% –
6% –
4% –
2% –
0% –
2 4 6 8 10 12 2 4 6 8 10 12
A.M. P.M.
Hour of day