Beruflich Dokumente
Kultur Dokumente
Forecasting Techniques
Introduction
Forecasting is a very difficult task, both in the
short run and in the long run.
Analysts search for patterns or relationships in
historical data and then make forecasts.
There are two problems with this approach:
It is not always easy to undercover historical patterns or
relationships.
It is often difficult to separate the noise, or random behavior,
from the underlying patterns.
Some forecasts may attribute importance to patterns that are in
fact random variations and are unlikely to repeat themselves.
There are no guarantees that past patterns will continue in
the future.
Principles of Forecasting
Many types of forecasting models that differ in
complexity and amount of data & way they
generate forecasts:
1. Forecasts are rarely perfect
2. Forecasts are more accurate for grouped
data than for individual items
3. Forecast are more accurate for shorter than
longer time periods
Types of Forecasting Methods
Decide what needs to be forecast
Level of detail, units of analysis & time horizon required
Evaluate and analyze appropriate data
Identify needed data & whether its available
Select and test the forecasting model
Cost, ease of use & accuracy
Generate the forecast
Monitor forecast accuracy over time
Forecasting Methods:
An Overview
There are many forecasting methods available,
and there is little agreement as to the best
forecasting method.
The methods can be divided into three groups:
1. Judgmental methods
2. Extrapolation (or time series) methods
3. Econometric (or causal) methods
The first method is basically nonquantitative; the
last two are quantitative.
Extrapolation Models
Extrapolation models are quantitative models that use past data of
a time series variable to forecast future values of the variable.
Many extrapolation models are available:
Trend-based regression
Autoregression
Moving averages
Exponential smoothing
All of these methods look for patterns in the historical series and
then extrapolate these patterns into the future.
Complex models are not always better than simpler models.
Simpler models track only the most basic underlying patterns and can
be more flexible and accurate in forecasting the future.
Quantitative Methods
Time Series Models
Assumes information needed to generate a forecast is contained
in a time series of data
Assumes the future will follow same patterns as the past
Causal Models or Associative Models
Explores cause-and-effect relationships
Uses leading indicators to predict the future
Housing starts and appliance sales
Time Series Models
Forecaster looks for data patterns as
Data = historic pattern + random variation
Historic pattern to be forecasted:
Level (long-term average) data fluctuates around a constant
mean
Trend data exhibits an increasing or decreasing pattern
Seasonality any pattern that regularly repeats itself and is of a
constant length
Cycle patterns created by economic fluctuations
Random Variation cannot be predicted
Time Series Models
Naive: Ft +1 = At
The forecast is equal to the actual value observed during
the last period good for level patterns
Simple Mean: Ft +1 = A t / n
The average of all available data - good for level patterns
Moving Average:
Ft +1 = A t / n
The average value over a set time period
(e.g.: the last four weeks)
Each new forecast drops the oldest data point & adds a
new observation
More responsive to a trend but still lags behind actual
data
Time Series Models cont
1 300
2 315
3 290
4 345
5 320
6 360
Y = a + bx
Linear Regression
b=
XY n XY
2
X nX
2
a = Y bX
Develop your equation for the
trend line
Y=a + bX
Correlation Coefficient
How Good is the Fit?
Correlation coefficient (r) measures the direction and strength of the
linear relationship between two variables. The closer the r value is to
1.0 the better the regression line fits the data points.
n( XY ) ( X )( Y )
r=
( )
n X ( X ) * n Y (Y ) ( )
2 2
2 2
4(28,202 ) 189(589 )
r= = .982
4(9253) - (189) * 4(87,165 ) (589 )
2 2
r 2 = (.982 ) = .964
2
r2
18
Linear Trend Line
Basic forecasting models for trends compensate for the lagging that
would otherwise occur
One model, trend-adjusted exponential smoothing uses a three step
process
Step 1 - Smoothing the level of the series
S t = A t + (1 )(S t 1 + Tt 1 )
Step 2 Smoothing the trend
Tt = (S t S t 1 ) + (1 )Tt 1
Forecast including the trend
FITt +1 = S t + Tt
Forecasting Seasonality
The fitted value is the part calculated from past data and any
other available information.
The residual is the forecast error.
The fitted value should include all components of the original
series that can possibly be forecast, and the leftover residuals
should be unpredictable noise.
The simplest way to determine whether a time series of
residuals is random noise is to examine time series graphs
of residuals visuallyalthough this is not always reliable.
Testing for Randomness
Some common nonrandom patterns are shown below.
The Runs Test
The runs test is a quantitative method of testing
for randomness. It is a formal test of the null
hypothesis of randomness.
First, choose a base value, which could be the average
value of the series, the median value, or even some
other value.
Then a run is defined as a consecutive series of
observations that remain on one side of this base
level.
If there are too many or too few runs in the series, the null
hypothesis of randomness can be rejected.
Autocorrelation
Another way to check for randomness of a time series of residuals
is to examine the autocorrelations of the residuals.
An autocorrelation is a type of correlation used to measure whether
values of a time series are related to their own past values.
In positive autocorrelation, large observations tend to follow large
observations, and small observations tend to follow small observations.
The autocorrelation of lag k is essentially the correlation between the
original series and the lag k version of the series.
Lags are previous observations, removed by a certain number of periods from
the present time.
To lag a time series in a spreadsheet by one month, push down the series
by one row, as shown below.
Regression-Based Trend Models
Many time series follow a long-term trend
except for random variation.
This trend can be upward or downward.
A straightforward way to model this trend is to
estimate a regression equation for Yt, using time t
as the single explanatory variable.
The two most frequently used trend models are
the linear trend and the exponential trend.
Linear Trend
A linear trend means that the time series variable
changes by a constant amount each time period.
The equation for the linear trend model is:
The interpretation of b is that it represents the expected
change in the series from one period to the next.
If b is positive, the trend is upward.
If b is negative, the trend is downward.
The intercept term a is less important: It literally
represents the expected value of the series at time t = 0.
A graph of the time series indicates whether a linear
trend is likely to provide a good fit.
Exponential Trend
An exponential trend is appropriate when the time series changes
by a constant percentage (as opposed to a constant dollar amount)
each period.
The appropriate regression equation contains a multiplicative error
term ut:
This equation is not useful for estimation; for that, a linear equation
is required.
You can achieve linearity by taking natural logarithms of both sides of
the equation, as shown below, where a = ln(c) and et = ln(ut).
The second equation says that the k-period-ahead forecast, Ft+k, made
of Yt+k in period t is essentially the most recently estimated level, Lt.
Measuring Forecast Error
(actual - forecast )2
Method A Method B
Month Actual Fcast Error Cum. Tracking Fcast Error Cum. Tracking
sales Signal Error Signal
Error
Jan. 30 28 2 2 2 27 2 2 1
Feb. 26 25 1 3 3 25 1 3 1.5
March 32 32 0 3 3 29 3 6 3
April 29 30 -1 2 2 27 2 8 4
May 31 30 1 3 3 29 2 10 5
MAD 1 2
MSE 1.4 4.4
Forecasting Software
Spreadsheets
Microsoft Excel, Quattro Pro, Lotus 1-2-3
Limited statistical analysis of forecast data
Statistical packages
SPSS, SAS, NCSS, Minitab
Forecasting plus statistical and graphics
Specialty forecasting packages
Forecast Master, Forecast Pro, Autobox, SCA