Documente Academic
Documente Profesional
Documente Cultură
Overview
Why Forecast?
An Overview of Forecasting Techniques
The Basic Steps in a Forecasting Task
Forecasting Methods
Why Forecast?
To take appropriate actions and planning
Is an integral part of the decision making process
The accuracy of the forecasting depends on the
uncontrollable external events and controllable internal
events
Regression
Applying the linear regression techniques with a set of
explanatory variables to estimate the constant and
slope coefficients of the model
Next, use the regression equation to forecast future
value
Modify some or all of the explanatory variables and try
again if the regression model does not give good
summary statistics (R2, MSEetc.),
Smoothing
To eliminate or reduce consistent short-term fluctuations
such as seasonal fluctuations.
Useful to analyse the trends and variable behaviour
removes only the seasonal (pattern) fluctuations but not
irregular fluctuations
ARIMA
Normally, we use linear regression equations to forecast
the dependent variable by plugging values of independent
variables into the estimated equations and calculate the
predicted value of Y
ARIMA completely ignores dependent variables in making
forecasts
ARIMA uses current and past values of the dependent
variable to produce forecasted values
increasing popular especially for forecasts in stock market
prices based entirely on past patterns of movement of the
stock prices
Data Preparation
EXAMINING TIME SERIES DATA
Autocorrelation (r)
Example, r(2) indicates how y values two period apart relate to each
other, and so on.
(y
rk =
)(
y ytk y
t = k +1
2
(y
t =1
Data Preparation
EXAMINING TIME SERIES DATA
Partial autocorrelation coefficient
Data Preparation
Data Preparation
EXAMINING TIME SERIES DATA
Stationary
ACF for a stationary series: different from zero for the first
few lags (k<5). The ACF for all lags equal to zero
Data Preparation
GDP
12,000
10,000
8,000
6,000
4,000
2,000
0
50
55
60
65
70
75
80
85
90
95
00
05
D GD P
200
160
120
80
40
0
-4 0
-8 0
-1 2 0
50
55
60
65
70
75
80
85
90
95
00
05
Data Preparation
EXAMINING TIME SERIES DATA
Test for Stationary - Dickey-Fuller Test
Using the OLS to run the regression on the following forms and check
whether =1, or =0 is statistically significant.
Testing regressions:
Level
(With constant)
Yt = + Yt-1 + et
First-difference
Yt = Yt-1 + et
Yt = + Yt-1 + et
Yt = + T + Yt-1 + e
Data Preparation
EXAMINING TIME SERIES DATA
Test for Stationary - Dickey-Fuller Test
Decision rule:
If t < tau, H0 is rejected, it means the Yt is stationary.
If t > tau, H0 is not rejected, it means the Yt is nonstationary.
Data Preparation
EXAMINING TIME SERIES DATA
Removing Non-Stationarity in a Time Series
yt = yt - yt-1
AR(p)
Decays exponentially or
with damped sine
wave pattern or both
MA(q)
Significant spikes
through lags q
Declines exponentially
ARMA(p,q)
Exponential decay
Exponential decay
Expected patterns
ARMA
AR and MA models can be combined to form
ARMA model.
For example, Yt = c + 1Yt-1 + t - 1t -1
combines AR(1) and MA(1) to form ARMA(1,1)
or ARIMA (1,0,1).
A ARMA model with higher order terms is
written as:
Yt = c + 1Yt-1 + 2Yt-2 + + pYt-p +t -1t -1-
2t -2- - qt -q
ARMA
ARIMA
If non-stationarity is added to ARMA model,
then we obtain ARIMA(p,d,q) model.