Forecast
Forecast
Forecast
Forecasting
1
Forecast
• OM is mostly proactive not reactive
2
Uses of Forecasts
3
REMARKS
• Assume a causal system
– Future resembles the past
• Forecasts rarely perfect because of randomness
• Forecasts more accurate for groups vs. individuals.
– Forecasting errors among items in a group usually have a canceling
effect.
– Extremes in a group cancel each other
• Ex. I can forecast the class average from the midterm better than
Mrs. X’s individual grade.
– Sample variance of {-1,1,-1,1} is 1.
– Sample variance of {(-1+1)/2, {(-1+1)/2} is 0.
• Forecast accuracy decreases as time horizon for forecasts increases
• Ex. I can forecast this year’s class average better than next year’s
class average
4
Elements of a Good Forecast
Timely
Reliable Accurate
l se
f u u
ng Written to
n i y
a s
M
e Ea
5
Steps in the Forecasting Process
“The forecast”
6
Types of Forecasts
7
Judgmental Forecasts
8
Associative Forecasting
10
Linear Regression (cont.)
y = a + bx
Where
y = predicted (dependent) variable
x = predictor (independent) variable
b = slope of the line
a = value of y when x = 0 (the height of line
at the y intercept)
11
Computing a and b
Given n data points, find the intercept a and the slope b to
Minimize the sum of squared errors
Minimize the sum of deviations from the line
n
Minimize ( y t a bxt ) 2
t 1
n n n
n xt yt xt yt
n n
y t x t
b t 1 t 1 t 1
2 a t 1
b t 1
n
n
n n
n xt xt
2
t 1 t 1
12
Linear Model Seems Reasonable
X Y Computed
7 15 50
relationship
2 10
40
6 13
4 15 30
14 25
15 27 20
16 24
10
12 20
14 27 0
20 44 0 5 10 15 20 25
15 34
7 17
13
Another Linear Regression Example
Variables: Weeks and Sales
t y
2
W eek t S a le s ty
1 1 150 150
2 4 157 314
3 9 162 486
4 16 166 664
5 25 177 885
2
t = 15 t = 55 y = 812 ty = 2 4 9 9
2
( t) = 2 2 5
14
Linear Trend Calculation
812 - 6.3(15)
a = = 143.5
5
y = 143.5 + 6.3 t
Sales in week t = 143.5 + 6.3 t
15
Linear Trend Calculation
y = 143.5 + 6.3t
When t = 0, the value of y is 143.45 and the
slope of the line is 6.3. meaning that the
value of of y will increase by 6.3 units for
each time period. If t = 10, the forecast is
143.5 + 6.3(10) = 206.5
Excel example
regression.xls
16
Linear Regression
Remember from Statistics
• Correlation (r) between variables: The strength and
direction of relationships between two variables
– 1.00 means changes in one variable are always matched
by changes in the other, vice versa.
– A correlation close to zero means little linear relationship
– The square of the correlation coefficient provides a
measure of the percentage of variability in the values of y
that is explained by the independent variable.(80% or
more: the independent variable is a good predictor of the
values of dependent variable)
17
Time series
18
Forecast Variations
Irregular
variation
Figure 3-1
Trend
Cyclical
Cycles
Year 01
00
99
Seasonal variations
19
Naïve Forecasts
• Uses a single previous value of a time series as the basis
of a forecast.
• Virtually no cost
• Data analysis is nonexistent
• Easily understandable
• Cannot provide high accuracy
– If it were true, future will always be the same as the past
22
Naïve (Cont.)
• Check if the resulting accuracy is acceptable
• The higher the accuracy, often the higher the cost.
• Do we really need our forecast that accurate? Is it
worth the additional resources?
– Why do you need forecasts for? How critical they are
for operations?
23
Time Series Models: Variations
What is random and what is not?
• Historical data contain random variations or noise
• Random variations are caused by relatively
unimportant factors.
– What is random? Can we not study everything to negligible
detail? “God does not roll dices” –A.E.
• The objective is to remove all randomness and have
real variations.
• Minor variations are random and large ones are real.
24
Techniques for Averaging
• Exponential smoothing
25
Simple Moving Average
Note the sensitivity of forecasts
Averaging (over time) techniques are used to smooth variations in the data.
Actual
MA(t,5)
47
45
43
41
39
37
MA(t,3)
35
1 2 3 4 5 6 7 8 9 10 11 12
t 1
A i
Ft MAt ,n i t n
,
n
MAt ,n : MA forecast made in period t - 1 using n actual observations
26
Ex: Three period moving average forecast
Month Demand
1 42 MA(6,3) = (43 + 40 + 41) / 3
2 40 = 41.33.
3 43 If A(6) = 39, then
4 40 MA(7,3) = (40 + 41 + 39) / 3
5 41 = 40.00
6 39
27
Weighted average
Moving Average
• Advantage=Easy to compute and easy to
understand
• Disadvantage=All values in the average are
weighted equally
29
Exponential Smoothing
Ft Ft 1 ( At 1 Ft 1 )
Forecast today=Forecast yesterday+(alpha)*(Forecast error yesterday)
Each new forecast is equal to the previous forecast plus a percentage of
the previous error.
Today’s forecast
Depends on yesterday’s (time-wise dependence, strong memory)
But it has to be corrected by forecast error
Ft At 1 (1 ) Ft 1
Idea--The most recent observations might have the
highest predictive value along with the most recent
forecast errors. Let us balance them:
Ft
At 1 (1 ) Ft 1
31
Example of Exponential Smoothing
Forecasts made in a period and the period has the same color
Period Actual Forecast withAlpha
Error with
= 0.1
Forecast withError with
1 42 Alpha=0.1 Alpha=0.1 Alpha=0.4 Alpha=0.4
2 40 42 -2.00 42 -2
3 43 41.8 1.20 41.2 1.8
4 40 41.92 -1.92 41.92 -1.92
5 41 41.73 -0.73 41.15 -0.15
6 39 41.66 -2.66 41.09 -2.09
7 46 41.39 4.61 40.25 5.75
8 44 41.85 2.15 42.55 1.45
9 45 42.07 2.93 43.13 1.87
10 38 42.36 -4.36 43.88 -5.88
11 40 41.92 -1.92 41.53 -1.53
12 41.73 40.92
Ft At 1 (1 ) Ft 1 32
Picking a Smoothing Constant:
Responsiveness vs. Smoothing
• The quickness of forecast adjustment to error is determined by the
smoothing constant.
• The closer the alpha is to zero, the slower the forecast will be to
adjust to forecast errors.
• Conversely, the closer the value of alpha is to 1.00, the greater the
responsiveness to the actual observations and the less the
smoothing
• Select a smoothing constant that balances the benefits of
responding to real changes if and when they occur.
Ft Ft 1 ( At 1 Ft 1 ) At 1 (1 ) Ft 1
33
Picking a Smoothing Constant
Sensitivity of Forecasts
Actual
50
45 .1
Demand
40
.4
35
1 2 3 4 5 6 7 8 9 10 11 12
Period
Excel example
exponential-smoothing.xls
34
Techniques for trend
Figure 3-5
Parabolic
Exponential
Growth
36
Adjusting for Trend with Double
Exponential Smoothing
• Simple exponential smoothing with no trend
Ft 1 At 1 Ft Tt
• Add forecasted trend Tt
Tt ( Ft Ft 1 ) 1 Tt 1
• This time trend is also smoothed, note that
previous trend (of t-1) and current trend (of t)
appear in the smoothing formula: Tt 1 and Ft Ft 1
• See Table 3-2 for an exercise
37
Techniques for seasonality
38
Different models of seasonality
39
Use Seasonality Indices
to Deseasonalize and Seasonalize
Inputs Analyze Output
t t t
41
Forecast Accuracy
42
MAD & MSE
| A F |
t t
MAD t 1
n
n n
( At Ft ) 2
t t
( A F ) 2
MSE t 1
t 1
n 1 n
n
A F t t
Tracking Signal t 1
MAD
Estimate of (forecast error) standard deviation s MSE
Statistics says : MSE is the unbiased estimator for the variance of forecast error.
43
Use for MAD & MSE
44
Controlling the quality of forecast
• Necessary to monitor forecast to ensure that the
forecast is performing adequately
• This is accomplished by comparing forecast errors to
predetermined values
• Errors that fall within the limits are considered
acceptable
• Errors outside either limit indicates that corrective
action is needed.
• Tracking signal values are compared to predetermined limits (+4,-4) based
on judgment and experience
• Upper and lower limits for individual forecast errors are calculated using
control chart techniques. We will learn about control charts in quality
chapters.
45
Choosing a forecasting technique
No single technique works best in every situation
47
Summary
• We studied the steps of forecasting
• We examined three forecasting techniques:
– Judgmental
– Associative
– Time Series
• We learned about seasonality, trend, cyclical
data
• Discussed monitoring forecast accuracy
48