Professional Documents
Culture Documents
06 Forecasting Methods
06 Forecasting Methods
Components of a Time Series
Smoothing Methods
Trend Projection
Classical Decomposition Method
Causal Forecasting Methods
Qualitative Forecasting Methods
2
Sasadhar Bera, IIM Ranchi
What is Forecasting
Forecasting is simply a prediction what happen in the
future.
3
Sasadhar Bera, IIM Ranchi
Importance of Forecasting
The long‐run success of an organization depends on how well
management is able to anticipate the future and develop an
appropriate strategies. Forecasts are vital input for almost all
planning process.
5
Sasadhar Bera, IIM Ranchi
An Overview of Forecasting Methods
Forecasting Methods
8
Sasadhar Bera, IIM Ranchi
Time Series Methods (Contd.)
Deterministic Models:
1) Moving Average
2) Exponential Smoothing
3) Trend Projection
4) Decomposition
Probabilistic Models:
1) ARIMA: Autoregressive Integrated Moving Average
2) GARCH: Generalized Autoregressive Conditional
Heteroscadastic
3) State Space Model
We will focus only on Deterministic Models
9
Sasadhar Bera, IIM Ranchi
Component of a Time Series
Time series data are usually affected by four
components:
10
Sasadhar Bera, IIM Ranchi
Component of a Time Series (Contd.)
Trend component (Tt): The trend component accounts for
the gradual shifting (increases or decreases) over a long
period of time.
11
Sasadhar Bera, IIM Ranchi
Component of a Time Series (Contd.)
Seasonal component (St): A seasonal component is a
pattern that is repeated throughout a time series and has
a recurrence period of at most one year.
Possible Causes: Weather, social and religious, customs…
Duration: Repeats every year (4 seasons, 12 months, or 52
weeks depending on Periods being analyzed) – systematic.
Example: Sales of woolen cloth, umbrella, lawn movers,
suntan lotions.
12
Sasadhar Bera, IIM Ranchi
Component of a Time Series (Contd.)
Cyclical component (Ct): Repetitive fluctuations usually
occur in more than one year and varying both in length
and intensity in the long‐term.
13
Sasadhar Bera, IIM Ranchi
Component of a Time Series (Contd.)
Random component (It): Unpredictable, short term,
non‐recurring random variations in the time‐series data.
One unable to predict its impact on the time series in
advance.
Possible Causes: Unforeseen events such as catastrophes,
strikes, etc.
Duration: Short, non‐repeating – Unsystematic, random.
Example: loss of customers of an airline due to a strike.
14
Sasadhar Bera, IIM Ranchi
Time Series Model
Multiplicative Model: A time series model is called a
multiplicative model if we define the time series as the product
of its components i. e. Yt = Tt St Ct It
Tt = Trend component, St = Seasonal component, Ct = Cyclical
component, It = random component
In case of multiplicative model, the magnitude of the seasonal
pattern increases as the series goes up, and decreases as the
series goes down. Amplitude is proportional to the average level
(mean) of the series. Most of the time series exhibit such type of
pattern.
Additive Model: A time series model is called an additive model
if we define the time series as the sum of its components i. e.
Yt = Tt + St + Ct + It
In case of additive model, the magnitude of the seasonal pattern
does not depend on the average level (mean) of the series.
15
Sasadhar Bera, IIM Ranchi
Time Series Model: Multiplicative
16
Sasadhar Bera, IIM Ranchi
Time Series Model: Additive
17
Sasadhar Bera, IIM Ranchi
What is Seasonality
Seasonal variation in time series data shows repetitive
upward and downward movements in time series plot.
The repetition of pattern is observed in a fixed interval of
time (daily, weekly or quarterly or monthly or yearly etc.).
20
Sasadhar Bera, IIM Ranchi
Measures of Forecasting Accuracy
There are different measures of forecast accuracy. The
following three are commonly use in practice.
Yt = Actual value at time period t
Ft = Forecast value at time period t
n = number of observations used to measure accuracy
Mean Square Error (MSE): MSE =
n Yt Ft 2
t 1 n
Root Mean Square Error (RMSE): RMSE MSE
n Yt Ft
Mean Absolute Deviation(MAD): MAD =
t 1 n
100 n Yt Ft
Mean Absolute Percentage Error (MAPE): MAPE =
n t 1 Yt
21
Sasadhar Bera, IIM Ranchi
Moving Average (MA) Model
Moving average (MA) model is generally selected when
data does not show any trend component. There are
three types of moving average models:
22
Sasadhar Bera, IIM Ranchi
Simple Moving Average Model
The Simple moving average method consists of computing an
average of the most recent w numbers of data values for the
series and using this average for forecasting the value of the
time series for the next period.
Yt Yt -1 . . . Yt - w +1
Mt
w
M t = Smooth value at time t
Forecasted value at time (t+1) = Ft+1 = M t
23
Sasadhar Bera, IIM Ranchi
Simple Moving Average: Example
24
Sasadhar Bera, IIM Ranchi
Centered Moving Average (CMA) Model
25
Sasadhar Bera, IIM Ranchi
Centered Moving Average (CMA) Model (Contd.)
26
Sasadhar Bera, IIM Ranchi
Centered Moving Average (CMA) Model: Example
27
Sasadhar Bera, IIM Ranchi
Weighted Moving Average (WMA) Model
In simple moving average technique assigns equal weight
to all previous observations. The weighted moving average
technique allows for different weights to be assigned to
previous observations. Hence, we have to know span
length (w) and weights (vi).
M t v1Yt v 2 Yt -1 v k Yt - w -1
where weight ( v i ) value lies between 0 and 1 and v i 1
Forecasted value at time (t+1) = Ft+1 = M t
28
Sasadhar Bera, IIM Ranchi
Determining Moving Average Span Length
There is no general method exists to determine the
moving average span length (w). The following can be
used
Non‐Seasonal time series: It is common to use short span.
Seasonal time series: Span length is equal to seasonality.
29
Sasadhar Bera, IIM Ranchi
Trend Projection
If a time series exhibits a linear trend, the method of least
squares may be used to determine future forecasts by
extrapolating (projection) the fitted trend line.
30
Sasadhar Bera, IIM Ranchi
Different Types of Trends
Linear: A linear trend is any long‐term increase or decrease in a
time series in which the rate of change is relatively constant.
Ft = a + bt, where Ft is forecasted value at time t, b represent
average change from one period to the next.
32
Sasadhar Bera, IIM Ranchi
Trend Projection: Example
Note: The intercept term is 54.9 and it is called Level
component. The slope is 1.7 and it is called Trend component.
33
Sasadhar Bera, IIM Ranchi
Trend Projection: Example (Contd.)
34
Sasadhar Bera, IIM Ranchi
Trend Projection: Example (Contd.)
35
Sasadhar Bera, IIM Ranchi
Exponential Smoothing Model
Exponential smoothing model provides larger weight to
the most recent observation and exponentially smaller
weights to the older observations. This model is most
suitable for short term forecast. There are three types of
smoothing models:
36
Sasadhar Bera, IIM Ranchi
Single Exponential Smoothing Model
Using single exponential smoothing, the forecasted value at
(t+1) period is equal to the forecasted value at period t plus a
proportion (α) of the forecast error in the period t.
Exponential form: Zt = Yt + (1–) Zt–1
Zt = Smooth value at time t
= Smoothing Constant and 0 < <1
Yt = Observation at time t
Refer pdf file for details derivation of Ft+1
37
Sasadhar Bera, IIM Ranchi
Determination of Best Fitting Smoothing
Constant
Thumb rule for choosing smoothing constant (α) is: α =
2/(N‐1), where N is total number of observations. α value
lies between zero and one. Two factors which control α
are:
1) Noise or randomness in data: Greater noise select
smaller value of α.
2) Stability of mean of a time series: If mean is relatively
constant, keep α small. If mean of a time series is
changing, keep α value large
39
Sasadhar Bera, IIM Ranchi
Double Exponential Smoothing Or Holt’s Method
Double exponential smoothing method has two smoothing
parameters to update the two components (Level, and Trend) at
each period. It is called two parameters linear exponential
smoothing method. It provides short‐term forecast when a trend
is present. Trend and Level component are denoted by Lt and Tt
40
Sasadhar Bera, IIM Ranchi
Double Exponential Smoothing (Contd.)
The initial estimate of level (L0)and trend (T0) components
are given below:
1) Fits a linear regression model to time series data
(y variable) versus time (x variable).
2) The constant from this regression is the initial estimate
of the level component (L0); the slope coefficient is the
initial estimate of the trend component (T0).
41
Sasadhar Bera, IIM Ranchi
Double Exponential Smoothing : Example
One illustrative example is given in pdf file
42
Sasadhar Bera, IIM Ranchi
Triple Exponential Smoothing or Winter’s
Method
Triple exponential smoothing model estimates for three
components: level, trend and seasonal. It uses three
smoothing parameters to update the components at each
period.
43
Sasadhar Bera, IIM Ranchi
Classical Decomposition Model
This method separates time series into linear trend and seasonal
component. There are two types of decomposition models:
Additive Model: Yt = Tt + St
In case of additive model, the magnitude of the seasonal pattern
does not depends on the average level (mean) of the series.
44
Sasadhar Bera, IIM Ranchi
Decomposition Model: Seasonal Indices
Step1: Do time series plot of the data (Yt) and find out
seasonality. Check model type additive or multiplicative.
Step2: Fit a linear trend equation (Tt).
Step3: De‐trended (Dt) the original series:
Multiplicative model: Dt = Yt /Tt
Additive model: Dt = Yt – Tt
Step6: Find out the median value for each seasonal period
from the raw seasonal data.
46
Sasadhar Bera, IIM Ranchi
Decomposition Model: Seasonal Indices (Contd.)
Step7: De‐seasonalized the data:
Multiplicative model: Ds = Yt /St
Additive model: Ds = Yt – St
Step8: Seasonalized the forecast to get final forecast
47
Sasadhar Bera, IIM Ranchi
Decomposition Model: Seasonal Indices (Contd.)
One illustrative example is given in pdf file
48
Sasadhar Bera, IIM Ranchi
Causal Forecasting Method
Causal forecasting methods are based on the assumption
that forecast exhibit cause‐effect relationship with one or
more variables. Regression model is used as causal
forecasting method.
49
Sasadhar Bera, IIM Ranchi
Causal Forecasting using Trend and Seasonal Component
Step1: Do scatter plot (or time series plot). Find out the
trend type increasing or decreasing. Check whether seasonal
pattern exist or not. If seasonal pattern exists, find out the
seasonality.
Step3: Code the data set as per matrix format for dummy
variable regression.
Example
Refer Excel sheet Causal1_Data
51
Sasadhar Bera, IIM Ranchi
Monitoring and Controlling Forecast
In order to control a forecast, it is necessary to monitor the
forecast errors over a period of time. The purpose of such
monitoring is to attempt to distinguish between random errors
and nonrandom errors.
Random error are inherent and can not be eliminated.
Nonrandom error can be eliminated by adding new data set or
modifying forecasting method.
Forecasting error at time t: et = Yt – Ft
If error term (et) is negative the forecasting method
over‐estimate the sales or demand. Similarly, error term zero or
positive indicates that no error or under‐estimate, respectively.
Bias at time t: Bt = |et|= |Yt – Ft|
n Yt Ft n et
Mean Absolute Deviation(MAD): MAD =
t 1 n t 1 n
52
Sasadhar Bera, IIM Ranchi
Tracking Signal
Tracking signal is an approach for monitoring bias in forecast error.
This is a ratio of cumulative forecast error at any point of time to the
corresponding mean absolute deviation (MAD) at that point of time.
A value of a tracking signal that is beyond the action limits suggests
the need for corrective action.
t
53
Sasadhar Bera, IIM Ranchi
Tracking Signal (Contd.)
54
Sasadhar Bera, IIM Ranchi
Qualitative Approaches to Forecasting
Delphi Approach
55
Sasadhar Bera, IIM Ranchi
Qualitative Approaches to Forecasting (Contd.)
Expert Judgment
56
Sasadhar Bera, IIM Ranchi
Qualitative Approaches to Forecasting (Contd.)
Consumer market Survey
57
Sasadhar Bera, IIM Ranchi
Forecasting Steps
The forecasting steps are given below:
1) Determine the purpose of the forecast.
2) Select the items or quantities to be forecasted.
3) Determine the time horizon (ahead of time periods)of the forecasts.
4) Select the forecasting model or models.
5) Identify the necessary data, and gather it, if necessary.
6) Make Forecasts.
7) Validate the model: Monitor forecast errors in order to determine if
the forecast is performing adequately. If it is not, take appropriate
corrective action or check with other type of model.
8) Implement the model and monitor the tracking signal.
58
Sasadhar Bera, IIM Ranchi