Professional Documents
Culture Documents
Dr. T. T. Kachwala
Mumbai | India
IMPORTANCE OF FORECASTING
In management situations, forecasting is important because the lead time for decision
making ranges from several years (for case of capital investment) to few days (for
transportation schedules) to few hours (for production schedules).
Suppose we forecast the sales volume for a particular product for the next
quarter of the year. Production schedules, raw material purchasing plan,
inventory policies & sales quota will be affected by the quarterly forecast we
provide. Consequently, poor forecast will result in increased cost for the firm.
• Definition: The word forecast means projection of past into the future for
e.g. Demand forecasting: based on past demand, we forecast future demand
values.
TYPES OF FORECASTING TECHNIQUES
Two general types of forecasting techniques are used for demand forecasting.
1. Quantitative Method
2. Qualitative Method
1. If historical data are restricted to past values of the variable that we are
trying to forecast, the forecasting procedure is called time series method.
3. The forecast is based solely on past values of the variable that we are
trying to forecast and past forecast errors.
RANDOM FLUCTUATION IN TIME SERIES
Random fluctuations of the time series is the residual factor that includes
deviation of actual time series values from those expected due to random
variability in the time series. The irregular component is caused by the short
term, unanticipated, uncontrollable and non recurring factors that affect the time
series. Because this component accounts for random variability in the time series
it is unpredictable.
Sometimes the time series may show gradual shifts or movements to relatively
higher or lower values over a long period of time. The gradual shifting of time
series is referred as the trend in the time series.
TREND IN THE TIME SERIES
This shifting or trend is usually the result of long term factors such as
changes in population, changes in technology & customer preferences
FORECASTING METHODS OF TIME SERIES
• 1. Smoothing Methods
a) Moving Average
b) Weighted Moving Average
c) Exponential Smoothing
• 2. Causal Forecast
a) Two Variable Regression Model
b) Three Variable Regression Model
3. Trend Projection
SMOOTHING METHODS
1
f t 1 d t d t -1 d t -2 d t -3 .... n terms ...
n
f t+1 = forecast for period ‘t + 1’
Simple Average Method is not very popular because it uses distant past
data. The more popular method is the Moving Average Method
MOVING AVERAGE METHOD
This method uses the average of the most recent data values in the time series as a
forecast for the next period.
The term moving indicates that, as the new observations become available for the
time series, it replaces the oldest observation and the new average is computed. As
a result the average will move as the new observations will become available.
The first decision we have to take while using moving average is to decide the
number of periods
3 PERIOD MOVING AVERAGE
1
f t 1 d t d t -1 d t -2
3
1
Sub t 3, f 4 d 3 d 2 d1
3
1
Sub t 4, f 5 d 4 d3 d 2
3
4 PERIOD MOVING AVERAGE
1
f t 1 d t d t -1 d t -2 d t -3
4
1
Sub t 4, f 5 d 4 d 3 d 2 d1
4
1
Sub t 5, f 6 d5 d4 d3 d2
4
SELECTING THE NUMBER OF PERIODS IN MOVING AVERAGE METHOD
We want the forecast errors to be small. The MSE (Mean Squared Error) is an often used measure of
the accuracy of a forecasting method.
1 e2
MSE n t
For a particular time series, different lengths of moving averages, will affect the accuracy of the
forecast. One possible approach in moving average to choosing the number of periods to be included,
is to use trial & error to identify the number of periods that minimizes MSE.
We must forecast the next value in the time series using the number of data values that minimizes the
MSE for the historical times series
WEIGHTED MOVING AVERAGE METHOD
In moving average method, each observation in the calculation receives the same weight.
One variation known as Weighted Moving Average, involves selecting different weights for
different data values and then computing a weighted average of the most recent data.
To use the weighted moving average method, we must select the number of periods and then
choose weights for each of the periods.
In general, if we believe that the recent past is a better predictor of the future than the distant
past, larger weights should be given to the more recent periods.
WEIGHTED MOVING AVERAGE METHOD
f t 1 α 0 d t α 1 d t -1 α 2 d t -2 .............
f t+1 = forecast for period ‘t + 1’
α 0 , α1 , α 2 are the weights associated with d t , d t 1 and d t 2
respectively such that:
αi 1
If we believe what is more recent is more relevant then:
α 0 α1 α 2 ......
The only mandatory requirement in selecting the weights is that their sum must be equal
to 1. The two decisions we have to take while using weighted moving average is to
decide the number of periods & the value of weights
3 PERIOD WEIGHTED MOVING AVERAGE
f t 1 α 0 d t α1 d t - 1 α 2 d t - 2 (Assuming 3 periods)
Sub t 3, f 4 α 0 d 3 α 1 d 2 α 2 d1
Sub t 4, f 5 α 0 d 4 α1 d 3 α 2 d 2
One set of suggested values of are:
3 2 1
α0 ; α1 ; α2
6 6 6
For a particular time series, different values of weight, will affect the accuracy of the
forecast. One possible approach is to use trial & error to identify the values of weight that
minimizes MSE.
EXPONENTIAL SMOOTHING METHOD
Substitute t = 2, f3 = d2 + (1 - ) f2
Substitute t = 3, f4 = d3 + (1 - ) f3
Although any value of between 0 & 1 are acceptable, some values
will yield a better forecast than the others.
SELECTING THE VALUE OF IN EXPONENTIAL
SMOOTHING
The criterion we use to determine the desirable value for the smoothing constant
is the same as the criterion for determining the number of periods of data to
include in the moving average calculation. i.e. we choose the value of that
minimizes MSE through trial & error.
With the time series data & forecasting formulas in the spreadsheets, one can
experiment with different values of , or moving average weights or number of
periods & choose the values providing the smallest MSE.
CAUSAL METHODS OF FORECASTING
1. Forecast can also be developed using causal methods, which is based on the
assumption that the variable we are trying to forecast exhibits a cause-effect
relation with one or more other variable.
3. Note that if a time series method had been used to develop the forecast then
advertisement expenditure would not even have been considered. i.e. time series
method would base the forecast solely on past sales.
WHAT IS CORRELATION ANALYSIS?
Correlation Analysis measures the degree of linear association between two or more
variables.
If a change in one variable results in a corresponding change in the other variable either
in the same direction or in the opposite direction, we say the variables are correlated.
The popular methods to assess Correlation are Scatter Diagram & Karl Pearson’s
Correlation Coefficient
KARL PEARSON’S CORRELATION COEFFICIENT
xy
r
x 2 y 2
xX-X
yY-Y
X Y
X Y
n n
Regression analysis involving one independent variable and one dependent variable with
a straight line relationship is called simple linear regression. Regression analysis
involving two or more explanatory variables is called multiple regression analysis.
WHAT IS REGRESSION ANALYSIS?
Based on the past data, we calculate the regression model (coefficients) &
then using the regression model we estimate the average value of the
dependent variable for given or known value of the independent variable
REGRESSION ANALYSIS
Ŷi β̂1 β̂ 2 X i
Where
x i yi
β̂ 2
x i2
β̂1 Y - β̂ 2 X
Where xi Xi - X
y i Yi - Y
When we use regression analysis to relate the variable that we want to forecast to
other variables that are supposed to influence that variable, it becomes a causal
forecasting method. Using regression analysis for trend projection is not a causal
forecasting method because only past values of sales, the variable being forecast,
are used.
If we use simple linear regression to fit to a linear trend to sales time series then,
the sales isn’t actually causally related to time, instead time is a surrogate for
variables to which sales is actually related, but which are unknown or too difficult
or costly to measure.
USING TREND PROJECTION IN FORECASTING
The type of time series pattern for which the trend projection method is
applicable shows a consistent increase or decrease over time. It is not stable.
So the smoothing methods are not applicable.
The trend component does not follow each and every up and down movement.
Rather the trend component reflects the gradual shifting, for example, growth
of time series values.
TREND ANALYSIS IN TIME SERIES
USING REGRESSION FOR TREND ANALYSIS
Ŷt β̂1 β̂ 2 X t
β̂1 Y - β̂ 2 X
β̂ 2
xy ; where x X - X and y Y - Y
x 2
Problem FM5B**
Fit an appropriate (3 Variable) regression model to the following data {Y Agricultural Production;
X2 Expenditure on Fertilizer; X3 Expenditure on Irrigation Projects}
----------------------------------------------------------------------------
Y 6 10 11 19 20 25 30
----------------------------------------------------------------------------
X2 1 2 3 7 10 11 13
----------------------------------------------------------------------------
X3 20 40 40 51 52 60 60
----------------------------------------------------------------------------
R = 0.986
R2 = 0.974
β̂ 2 95% C
L
0.43 to 2.37