Time Series Analysis Forecasting
Time Series Analysis Forecasting
Forecasting
Forecasting using time series
• ARIMA
methodology:univariate/multivariate,
single/multiple equation(s)
• Vector Auto Regression: Multivariate,
multiple equations model
– Granger causality
• ARCH/GARCH:univariate forecasting of
volatility/variance
Atheoretic model, past data predicts future
Univariate single equation models
• AR A R (1 ) : y t 1 y t1 e t
A R ( 2 ) : y t 1 y t1 2 y t 2 e t
A R ( p ) : y t 1 y t 1 2 y t 2 . . . p y t p e t
• MA M A (1 ) y t 0 e t 1e t1
M A ( 2 ) y t 0 e t 1e t1 2 e t 2
M A ( q ) y t 0 e t 1 e t 1 2 e t 2 . . . q e t q
• ARMA A R M A ( 1 ,1 ) y t 1 y t1 0 e t 1 e t 1
A R M A ( 2 ,1 ) y t 1 y t1 2 y t 2 0 e t 1 e t 1
A R M A (1 , 2 ) y t 1 y t1 0 e t 1 e t 1 2 e t 2
ARIMA(p,d,q)
• p indicates the no. of autoregressive lags
• d indicates the order of integration of variable
• q indicates no. of moving moving average
lags
• ARIMA(2,0,1)
• ARIMA(2,1,2
• Box-Jenkins methodology helps us decide p
and q.
Box Jenkins methodology
• Identification of p, d and q
– Correlogram
– Partial correlogram
• Estimation
• Diagnostic checking
– Accept model if residuals are stationary, if not
try another model
• Forecasting
Identification using ACF& PCF
• The ACF plots the correlations between yt and yt-k
against the lag k = 1, 2, 3, …: identifies possible MA
terms
• The PACF plots the coefficients in a regression of yt on
yt-1, yt-2, …yt-k against k = 1, 2, 3, …: identifies
possible AR terms
Type of Typical patttern of ACF Typical patttern of
model PACF
AR(p) Decays exponentially Significant spikes
through lags p
MA(q) Significant spikes through
lags p Decays exponentially
jt ' s c a lle d im p u ls e s o r in n o v a t io n s .
• Most critical part is to decide the no. of lags
– Too many lags leads to low df and multicollinearity
– Too few leads to specification errors
• AIC/SIC criterion may be used
• Since OLS is used interpretation same as CLRM
• However bcos of possibility of multicollinearity, t-test
should be less relied on. Rather consider F for joint
significance of the variables
VAR:Impulse response function & ECM
• IRF traces out the response of the dependent variable in
the VAR system to shocks in the error terms, such as u1,
u2 and u3.
• Logic being that suppose u1 in Y1 equation increases by a
value of 1 SD, such a shock will change Y1 in current and
future periods. Since Y1 enters the X and R equations,
change in u1 affects X and R too.
• IRF traces out this impact of such shocks for several
periods in the future.
• Impulse response functions are responses of all variables
in the model to a 1 unit structural shock to 1 variable in
the model.
• VECM estimates the short run impact just as in standard
ECM models.
VAR Limitations
• VAR model is a-theoretic.
• Less suited for policy analysis since emphasis is
forecasting.
• Problem of selecting lag length.
• In theory variables should be stationary, but many
use levels for interpretation.
• Quite often look at impulse response function
(IRF).
Bivariate Granger causality
• Determines direction of relationship of two variables (Ms and
GDP).
• Theoretically its very difficult to establish direction of
causation. Makes use of dictum that time does not run
backwards. Past lag can only affect present Present cannot
change past.
• Regress each variable with past lags of the itself and other
variable
• System of equation like simultaneous equations regressions.
• Unlike simultanoeus equation there are no exogenous
variables in the system
• More atheoretic compared to simultaneous eqn method
• Both variables are endogenous
• Both variables have to be tested first for cointegration
n n
GDPt i M t i j GDPt j u1t
i 1 j 1
n n
M t i M t i j GDPt j u 2t
i 1 j 1
w h e r e Y t d a i l y ` p r i c e `o f ` s t o c k ` A
Y t
*
lo g Y t
dY t
*
Yt* Y *
t1
_
X t dY t
*
d Y t
*
w h e r e t 2 0 1 u t2 1 2 u 2
t 2 . . k u t2 p