Professional Documents
Culture Documents
UNIT 1: FORECASTING
INTRODUCTION
Forecasting is an estimation of the demand for the goods and services of a firm. It
drives the production systems, their capacity and planning, and serves as input for
the finance, marketing and human resources planning.
• Human resources: Hiring, training and firing workers will depend on estimated
demand.
• Capacity: Insufficient capacity may translate into failure to fulfill delivery orders,
• Supply chain: Trustworthy relations with suppliers and price discounts for
INTRODUCTION
4. Gather together any data that may be necessary for the forecasting.
INTRODUCTION
success of virtually any firm decision will depend on the estimations of future
events.
INTRODUCTION
numerical data.
• Causal models: they estimate a future value according to other factors. For instance,
• Time series: they estimate the future value of a variable based on past data of the same
variable.
INTRODUCTION
3. The further into the future, the less reliable the forecast.
40%
20%
+10%
-10%
Start
of 16 weeks
season
26 weeks
9
TIME SERIES
Historical Data Forecast
MOVING AVERAGE
• The latest m observations are equally weighted (we will always average the m
t
i t m 1
A(i )
F (t )
m
f (t ) F (t ), 1, 2, ...
12
MOVING AVERAGE
Month Demand Forecast (m =3) Forecast (m =5) • We should wait m periods of
t A (t ) f (t ) f (t )
1 10 - - time before conducting the first
2 12 - -
3 12 - -
4 11 11.33 -
estimation.
5 15 11.67 -
6 14 12.67 12.0 • The greater the value of m, the
7 18 13.33 12.8
8 22 15.67 14.0 more stable the forecasting,
9 18 18.00 16.0
10 28 19.33 17.4 but the slower the reaction
11 33 22.67 20.0
12 31 26.33 23.8
13 31 30.67 26.4
time.
14 37 31.67 28.2
15 40 33.00 32.0
16 33 36.00 34.4
17 50 36.67 34.4
18 45 41.00 38.2
19 55 42.67 41.0
20 60 50.00 44.6
13
MOVING AVERAGE
70 • If there is a positive
50 underestimate the
40
estimation. Otherwise,
Demand
A(t)
m=3
m=5
the method will yield
30
EXPONENTIAL SMOOTHING
• We average the current observation, A(t), together with the most recent smoothed
estimate, F(t-1).
F (t ) A(t ) (1 ) F (t 1)
f (t ) F (t ), 1, 2, ...
15
EXPONENTIAL SMOOTHING
Month Demand Forecast ( =0.2) Forecast ( =0.6)
t A (t ) f (t ) f (t ) • α takes values between 0 and 1.
1 10 - -
2 12 10,00 10,00 • The easiest way to start is to set
3 12 10,40 11,20
4 11 10,72 11,68 F(1) = A(1) = 10. An estimation for
5 15 10,78 11,27
6 14 11,62 13,51 the first period could be
7 18 12,10 13,80
8 22 13,28 16,32 conducted iff previous data are
9 18 15,02 19,73
10 28 15,62 18,69 available.
11 33 18,09 24,28
12 31 21,08 29,51
13 31 23,06 30,40
• The forecast for period 3: f(3), is
14 37 24,65 30,76
15 40 27,12 34,50 equal to the smoothing estimate
16 33 29,69 37,80
17 50 30,36 34,92 calculated from period 2: F(2).
18 45 34,28 43,97
19 55 36,43 44,59
20 60 40,14 50,83
16
EXPONENTIAL SMOOTHING
• The lower the value of α, the
• It is assumed that a linear trend takes place. The smoothed trend is added to the
exponential way:
F (t ) A(t ) (1 )( F (t 1) T (t 1))
T (t ) ( F (t ) F (t 1)) (1 )T (t 1)
f (t ) F (t ) T (t ) 1, 2, ...
18
• When computing the smoothing estimate F(t), we take the previous forecast,
• Concerning the smoothed trend T(t), we choose the difference between the
60
40
improve the tracking to a
Demand
increasing or decreasing
30
demand pattern.
20
A(t)
10 f(t)
0
0 4 8 12 16 20
Period (t)
21
WINTERS METHOD
• Many items show a seasonal demand, because of the peaks and troughs of the
demand pattern depending on the period of the year. Hence seasonal factors c(t)
are added to prevent peaks and troughs from distorting the prediction. A year will
be composed of N periods of time (usually N = 12).
WINTERS METHOD
• When computing the smoothed estimate F(t), the observation A(t) is divided by the
corresponding factor c(t-N), so that we can get a standardized value, i.e. without
seasonality.
• To update the component c(t), we use the quotient between the true demand and
the smoothed estimated, A(t)/F(t), as an estimate for the current value of the
factor.
• In order to compute the forecast f(t+τ), the resulting prediction from an exponential
WINTERS METHOD
• Historical data of the previous year should be available in order to conduct the
• Factors c(t) point out the proportion in which the demand of a period exceed or fall
• Therefore, factors c(t) are computed as the ratio between the monthly demand and
12
WINTERS METHOD
T im e A c tu a l B ase Seasonal P r e d ic te d
Year M o n th P e r io d Dem and Level T re n d F a c to r D em and
1997 Jan 1 4 --- --- 0 .4 8 0
Feb 2 2 --- --- 0 .2 4 0
M ar 3 5 --- --- 0 .6 0 0
Apr 4 8 --- --- 0 .9 6 0
M ay 5 11 --- --- 1 .3 2 0
Jun 6 13 --- --- 1 .5 6 0 F (13) ( A(13) / c(13 12) (1 )( F (12) T (12))
Jul 7 18 --- --- 2 .1 6 0
Aug 8 15 --- --- 1 .8 0 0 0.1(5 / 0.480) (1 0.1)(8.33 0) 8.54
Sep 9 9 --- --- 1 .0 8 0
O ct 10 6 --- --- 0 .7 2 0
N ov 11 5 --- --- 0 .6 0 0 T (13) ( F (13) F (12)) (1 )T (12)
D ec 12 4 8 .3 3 0 .0 0 0 .4 8 0
1998 Jan 13 5 8 .5 4 0 .0 2 0 .4 9 1 4 .0 0
0.1(8.54 8.33) (1 0.1)(0) 0.02
Feb 14 4 9 .3 7 0 .1 0 0 .2 5 9 2 .0 6
M ar
Apr
15
16
7
7
9 .6 9
9 .5 7
0 .1 2
0 .1 0
0 .6 1 2
0 .9 3 7
5 .6 8
9 .4 3
c(13) ( A(13) / F (13)) (1 )c(1)
M ay 17 15 9 .8 3 0 .1 2 1 .3 4 1 1 2 .7 6 0.1((5 / 8.54) (1 0.1)(0.48) 0.491
Jun 18 17 1 0 .0 4 0 .1 3 1 .5 7 3 1 5 .5 2
Jul 19 24 1 0 .2 6 0 .1 3 2 .1 7 8 2 1 .9 7
Aug 20 18 1 0 .3 6 0 .1 3 1 .7 9 4 1 8 .7 2
Sep 21 12 1 0 .5 5 0 .1 4 1 .0 8 6 1 1 .3 3
O ct 22 7 1 0 .5 9 0 .1 3 0 .7 1 4 7 .6 9
N ov 23 8 1 0 .9 8 0 .1 5 0 .6 1 3 6 .4 3
D ec 24 6 1 1 .2 7 0 .1 7 0 .4 8 5 5 .3 4
a lp h a 0 .1 0 0 MSD 2 .3 4
b e ta l 0 .1 0 0
gam m a 0 .1 0 0
25
WINTERS METHOD
MEASURES OF ERROR
PARAMETER ADJUSTMENT
• To establish the best value for the parameters, e.g. α , β , etc., of the time-series models,
we can make a comparison of the error measures for several combinations of parameters
over an historical dataset.
• We will obtain the values of α , β and γ that yield the best (minimum) measures of error
• Another option is to set out a (no linear) optimization model, whose solution provides the
values of the parameters that minimize the measures MAD, MSD, or the Bias.
29
PARAMETER ADJUSTMENT
• The combination = 0.3, = 0.5 works well to reduce MAD and MSD, whereas the combination = 0.6,