Vector Autoregression

Similar documents
Econometría 2: Análisis de series de Tiempo

CHAPTER III RESEARCH METHODOLOGY. trade balance performance of selected ASEAN-5 countries and exchange rate

1 Quantitative Techniques in Practice

Time series: Cointegration

APPLIED TIME SERIES ECONOMETRICS

Multivariate Time Series

EC408 Topics in Applied Econometrics. B Fingleton, Dept of Economics, Strathclyde University

Leftovers. Morris. University Farm. University Farm. Morris. yield

Time Series Forecasting: A Tool for Out - Sample Model Selection and Evaluation

Arma-Arch Modeling Of The Returns Of First Bank Of Nigeria

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8]

Solutions to Odd-Numbered End-of-Chapter Exercises: Chapter 14

Structural VAR Models and Applications

Topic 4 Unit Roots. Gerald P. Dwyer. February Clemson University

Oil price and macroeconomy in Russia. Abstract

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

Brief Sketch of Solutions: Tutorial 3. 3) unit root tests

Autoregressive distributed lag models

Nonstationary Time Series:

Forecasting: Principles and Practice. Rob J Hyndman. 12. Advanced methods OTexts.com/fpp/9/2/ OTexts.com/fpp/9/3/

07 Multivariate models: Granger causality, VAR and VECM models. Andrius Buteikis,

Econ 423 Lecture Notes: Additional Topics in Time Series 1

9) Time series econometrics

Lecture 7a: Vector Autoregression (VAR)

Vector Auto-Regressive Models

Simultaneous Equation Models Learning Objectives Introduction Introduction (2) Introduction (3) Solving the Model structural equations

VAR Models and Applications

A primer on Structural VARs

Dynamic Time Series Regression: A Panacea for Spurious Correlations

1 Teaching notes on structural VARs.

Stationarity and cointegration tests: Comparison of Engle - Granger and Johansen methodologies

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

Eco 5316 Time Series Econometrics. Lecture 16 Vector Autoregression (VAR) Models

CHAPTER 21: TIME SERIES ECONOMETRICS: SOME BASIC CONCEPTS

Lecture 7a: Vector Autoregression (VAR)

Empirical Market Microstructure Analysis (EMMA)

ARDL Cointegration Tests for Beginner

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

Stationarity and Cointegration analysis. Tinashe Bvirindi

Lecture 6a: Unit Root and ARIMA Models

Title. Description. var intro Introduction to vector autoregressive models

Introduction to Algorithmic Trading Strategies Lecture 3

On Consistency of Tests for Stationarity in Autoregressive and Moving Average Models of Different Orders

Box-Jenkins ARIMA Advanced Time Series

Time Series Methods. Sanjaya Desilva

13. Time Series Analysis: Asymptotics Weakly Dependent and Random Walk Process. Strict Exogeneity

Frequency Forecasting using Time Series ARIMA model

SOME BASICS OF TIME-SERIES ANALYSIS

Vector Autogregression and Impulse Response Functions

Author: Yesuf M. Awel 1c. Affiliation: 1 PhD, Economist-Consultant; P.O Box , Addis Ababa, Ethiopia. c.

DEPARTMENT OF ECONOMICS AND FINANCE COLLEGE OF BUSINESS AND ECONOMICS UNIVERSITY OF CANTERBURY CHRISTCHURCH, NEW ZEALAND

Financial Econometrics Review Session Notes 3

International Monetary Policy Spillovers

Testing methodology. It often the case that we try to determine the form of the model on the basis of data

Financial Econometrics

Financial Econometrics

TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA

Output correlation and EMU: evidence from European countries

BCT Lecture 3. Lukas Vacha.

1 Teaching notes on structural VARs.

TESTING FOR CO-INTEGRATION

ECON 4160, Spring term Lecture 12

Inflation Revisited: New Evidence from Modified Unit Root Tests

Austrian Inflation Rate

The Prediction of Monthly Inflation Rate in Romania 1

Econometrics of Panel Data

Financial Econometrics

Testing for Unit Roots with Cointegrated Data

Co-Integration and Causality among Borsa Istanbul City Indices and Borsa Istanbul 100 Index 1

APPLIED MACROECONOMETRICS Licenciatura Universidade Nova de Lisboa Faculdade de Economia. FINAL EXAM JUNE 3, 2004 Starts at 14:00 Ends at 16:30

Stationary and nonstationary variables

International Symposium on Mathematical Sciences & Computing Research (ismsc) 2015 (ismsc 15)

Forecasting the Prices of Indian Natural Rubber using ARIMA Model

Vector autoregressions, VAR

Univariate linear models

Week 5 Quantitative Analysis of Financial Markets Characterizing Cycles

ECON3327: Financial Econometrics, Spring 2016

FINANCIAL ECONOMETRICS AND EMPIRICAL FINANCE -MODULE2 Midterm Exam Solutions - March 2015

A Non-Parametric Approach of Heteroskedasticity Robust Estimation of Vector-Autoregressive (VAR) Models

Intervention Analysis and Transfer Function Models

Romanian Economic and Business Review Vol. 3, No. 3 THE EVOLUTION OF SNP PETROM STOCK LIST - STUDY THROUGH AUTOREGRESSIVE MODELS

Lecture 8a: Spurious Regression

THE LONG-RUN DETERMINANTS OF MONEY DEMAND IN SLOVAKIA MARTIN LUKÁČIK - ADRIANA LUKÁČIKOVÁ - KAROL SZOMOLÁNYI

MODELLING TIME SERIES WITH CONDITIONAL HETEROSCEDASTICITY

İlk Dönem Ocak 2008 ve Aralık 2009 arasındak borsa kapanış fiyatlarının logaritmik farklarının 100 ile çarpılması ile elde edilmiştir.

Advanced Econometrics

Econometrics Honor s Exam Review Session. Spring 2012 Eunice Han

Questions and Answers on Unit Roots, Cointegration, VARs and VECMs

10) Time series econometrics

7 Introduction to Time Series Time Series vs. Cross-Sectional Data Detrending Time Series... 15

FE570 Financial Markets and Trading. Stevens Institute of Technology

Testing for non-stationarity

Trends and Unit Roots in Greek Real Money Supply, Real GDP and Nominal Interest Rate

MULTIPLE TIME SERIES MODELS

Decision 411: Class 9. HW#3 issues

Lecture 5: Unit Roots, Cointegration and Error Correction Models The Spurious Regression Problem

Introduction to Regression Analysis. Dr. Devlina Chatterjee 11 th August, 2017

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

Autoregressive Integrated Moving Average Model to Predict Graduate Unemployment in Indonesia

Problem Set 2: Box-Jenkins methodology

Transcription:

Vector Autoregression Prabakar Rajasekaran December 13, 212 1 Introduction Vector autoregression (VAR) is an econometric model used to capture the evolution and the interdependencies between multiple time series models. The VAR approach was made popular by Sims (198). This approach has many advantages over the traditional structural modeling approach. VAR treats all variables in the model as endogenous. It considers the lagged terms of all endogenous variables as exogenous, where each of the dependent variable at time t depends on different combinations of all independent variables at time t n with error term. Since there is no contemporaneous exogenous variable, each equation can be estimated using a simple regression procedure. The four variable VAR model has been used to illustrate the model procedures and to build impulse response function, where the variables being used are stocks trading in NYSE like F AS, USO, UUP and V IX. 2 Stationarity Test Before building a VAR model, it is necessary to check the stationarity of the data, for which we use augmented Dickey-Fuller (ADF) test. A stationary process is a stochastic process whose joint probability distribution does not change when shifted in time or space. Consequently, parameters such as the mean and variance, if they exist, also do not change over time or position. Stationarity is used as a tool in time series analysis, where the raw data are often transformed to become stationary. The ADF test results for the variables are given below: > # Loading the packages vars and tseries > library(vars) > library(tseries) > # ADF Test for FAS > adf.test(fas) Augmented Dickey-Fuller Test data: FAS Dickey-Fuller = -3.827, Lag order = 1, p-value =.1886 alternative hypothesis: stationary > # ADF Test for USO > adf.test(uso) Augmented Dickey-Fuller Test data: USO Dickey-Fuller = -2.473, Lag order = 1, p-value =.3792 alternative hypothesis: stationary > # ADF Test for UUP > adf.test(uup) 1

2 STATIONARITY TEST Augmented Dickey-Fuller Test data: UUP Dickey-Fuller = -2.285, Lag order = 1, p-value =.4577 alternative hypothesis: stationary > # ADF Test for VIX > adf.test(vix) Augmented Dickey-Fuller Test data: VIX Dickey-Fuller = -2.9432, Lag order = 1, p-value =.1791 alternative hypothesis: stationary The results show the probability value (p-value) for which the null hypothesis is nonstationary. For most variables, the p-values are greater than.5, which means we accept the null hypothesis and reject the alternative hypothesis of stationary. The stationarity can also be viewed by the time series plot of these variables shown in Figure 1. Since all variables are non stationary, to make it stationary the first difference of the variables can be performed. 13. 32.4 12.8 32.2 FAS USO 12.6 32. 12.4 3 6 9 31.8 3 6 9 2.97 44 2.96 43 UUP 2.95 VIX 2.94 42 2.93 3 6 9 41 3 6 9 Figure 1: series plots of the data December 13, 212 2

4 MODELLING 3 VAR Model Before going into the standard VAR model, let s consider the following simultaneous equation model: BX t = A(L)X t n + Ce t (1) where X t is the vector of endogenous variable, e t is the vector of white noise error term, B is the coefficients of the contemporaneous variables matrix and A(L) is the coefficients of lagged variables matrix. Now, the standard VAR model can be represented from equation (1) by: The above equation can be transformed to the generalized form below: X t = B 1 A(L)X t n + B 1 Ce t (2) where, D(L) = B 1 A (L) and u t = B 1 C e t X t = D(L)X t n + u t (3) Equation (3) is called the standard VAR framework, where u t is the reduced form error from the standard VAR framework. The reduced form error (u t ) is represented as a function of the uncorrelated shocks (e t ) and e t is serially uncorrelated with the shocks of other variables. 4 Modelling The variables are made stationary by taking the first difference. Before building the VAR model, it is necessary to calculate the optimal lag used in the model, which is estimated using information criteria like AIC or BIC. The information criteria results are given below: > # Calculating the optimal lag > ic <- VARselect(data[1:95,, lag.max=6) > ic $selection AIC(n) HQ(n) SC(n) FPE(n) 1 1 1 1 $criteria 1 2 3 4 5 AIC(n) -3.92532e+1-3.977e+1-3.889271e+1-3.864766e+1-3.898587e+1 HQ(n) -3.897991e+1-3.86195e+1-3.83663e+1-3.788124e+1-3.83913e+1 SC(n) -3.86468e+1-3.816e+1-3.743867e+1-3.674623e+1-3.66375e+1 FPE(n) 9.49166e-18 1.149153e-17 1.296488e-17 1.674128e-17 1.214488e-17 6 AIC(n) -3.88333e+1 HQ(n) -3.77596e+1 SC(n) -3.63681e+1 FPE(n) 1.4526e-17 From the above results, the optimal lag to be chosen is 1 and it is selected based on the minimum value of the information criteria results, which is shown in Figure 2, where the AIC and HQ values are minimum at lag 1. In R, the VAR function gives only the coefficients of the equations as the output. If we need to know the detailed result of the December 13, 212 3

4 MODELLING 38.8 38. AIC Plot HQ Plot 39. 38.5 39.2 39. 2 4 6 2 4 6 Figure 2: Plot of the Information Criteria results VAR estimation, we can use the summary command. > # Building the VAR model > var<-var(data[1:95,,p=1,type="const") > summary(var$varresult$fas) Call: lm(formula = y ~ -1 +., data = datamat) Residuals: Min 1Q Median 3Q Max -.294829 -.51496 -.6495.47322.24962 Coefficients: Estimate Std. Error t value Pr(> t ) FAS.l1.722.6694 1.786 < 2e-16 *** USO.l1.2629.6914 3.765.299 *** UUP.l1 -.8397.32481 -.259.796595 VIX.l1 -.1886.929-2.3.4532 * const -2.22531 6.1837 -.36.719772 --- Signif. codes: ***.1 **.1 *.5..1 1 Residual standard error:.8352 on 89 degrees of freedom Multiple R-squared:.9855, Adjusted R-squared:.9849 F-statistic: 1513 on 4 and 89 DF, p-value: < 2.2e-16 The VAR results would show four equations (for convenience the result of FAS equation alone is shown above), where the first equation shows the value of FAS at time t as the dependent variable regressed with respect to the lag of all the other variables and the second equation would show USO as the dependent variable regressed with respect to the lag of all the variables and so on. December 13, 212 4

5 FORECASTING 5 Forecasting The forecasting generally works by keeping the calculated coefficients from the above model fixed and adding the new present values into the equation to get the n step ahead forecasted value. Since in the above example, we used the contemporaneos matrix (B matrix) as an identity matrix (ie for a FAS as dependent variable equation, FAS at time t is not influenced by any other variable at time t). So the dependent variables are equated only on the lagged independent variables. From equation (1) B X t = 1 1 1 1 FAS t USO t UUP t VIX t So the forecast for each equation happens separately, the results shows five period ahead forecast for FAS alone. > # Forecasting based on the VAR model > predicted<-predict(var,n.ahead = 5, ci =.95) > predicted$fcst$fas fcst lower upper CI [1, 12.6113 12.59493 12.62767.163718 [2, 12.6538 12.58327 12.6275.221138 [3, 12.6119 12.5745 12.62787.266848 [4, 12.5987 12.56727 12.62887.379727 [5, 12.59564 12.5612 12.6325.346164 where var is the name given to our VAR model, n.ahead is the period ahead predictions required and ci is the confidence interval and fcst is the forecasted value of FAS. The predicted vs actual value is shown in Figure 3. 12.62 12.615 12.61 12.65 X2 FAS_Actual FAS_Predicted 12.6 12.595 1 2 3 4 5 Figure 3: FAS Actual vs Predicted Graph December 13, 212 5

6 IMPULSE RESPONSE FUNCTION (IRF) 6 Impulse Response Function (IRF) Impulse response trace out the responsivenes of the dependent variables in the VAR model to shocks to each of the other variables. So, for each variable from each equation separately, a unit shock applied to the error term for the particular equation affects upon the VAR system over time. Thus, if there are g variables in a system, a total of g 2 impulse responses could be generated. This is achieved in practice by expressing the VAR model as a VMA that is, the vector autoregressive model is written as a vector moving average (in the same way as done for univariate autoregressive models). Provided that the system is stable, the shock should gradually die away. The IRF can be explained through an example given below: consider the equation Y t = AY t 1 + u t (4) where A = [.5.3.2 Consider the effect of shock at time t = which effects the other variable at time t = 1, Y = [ u1 u 2 = [ 1 Y 1 = A*Y = [.5.3.2 [ 1 = [.5 Y 2 = A*Y 1 = [.5.3.2 [.5 = [.25 Although it is fairly easy to see what the effects of shocks to the variables will be in such a simple VAR, the same principles can be applied in the context of VARs containing more equations or more lags, where it is much more difficult to see the interactions between the equations. The impulse response graph for above model is shown in Figure 4, where the graph shows how a unit shock at time for FAS affects the future values of all other variables. The graph also shows that the shocks get diminished as time progress. December 13, 212 6

8 REFERENCES.8.7.4 FAS.6 USO.35.5.3.4 3 6 9 3 6 9 e+. UUP 1e 4 VIX.5 2e 4.1 3 6 9 3 6 9 Figure 4: Impulse Response Graph 7 Summary and Future work The vector autoregression (VAR) model is a structure of equations, where the check for stationarity is performed before building a model, if the variables are stationary then the next process is to find the optimal lag using the information criteria s like AIC or BIC. The optimal lag is used to build the VAR model. The VAR model can be used for forecasting and building the impulse response function model. Another interesting approach would be to use an extension of the VAR model known as structural VAR. In this method, we introduce independent variables at time t in addition to the auto regressive terms. For example, in the above VAR model, FAS at time t is influenced by the lagged values of all the other variable. In the structural VAR method, we can have other variables like USO or UUP at time t in the FAS equation as well. 8 References Chris Brooks, (28). Introductory Econometrics for Finance,Second Edition, Cambridge University Press. Hamilton, James D. (1994). Series Analysis, Princeton University Press. (p. 293) Frank Smets Gert Peersman, 21. The monetary transmission mechanism in the Euro area: more evidence from VAR analysis (MTN conference paper), Working Paper Series 91, European Central Bank December 13, 212 7

Mu Sigma is a leading provider of decision sciences and analytics solutions, helping companies institutionalize data-driven decision making. We work with market-leading companies across multiple verticals, solving high impact business problems in the areas of Marketing, Supply Chain and Risk analytics. For these clients we have built an integrated decision support ecosystem of people, processes, methodologies & proprietary IP and technology assets that serve as a platform for cross-pollination and innovation. Mu Sigma has driven disruptive innovation in the analytics industry by integrating the disciplines of business, math, and technology in a sustainable model. With over 75 Fortune 5 clients and over 2 decision science professionals we are one of the largest pure-play decision sciences and analytics companies. Learn more at http://www.mu-sigma.com/contact.html us for further information: Mu Sigma Inc., 34 Dundee Rd, Suite 16, Northbrook, IL 662 www.mu-sigma.com Copyright 212-213 Mu Sigma Inc. No part of this document may be reproduced or transmitted in any form or by any means electronic or mechanical, for any purpose without the express written permission of Mu Sigma Inc. Information in this document is subject to change without prior notice.