Vector autoregression
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (February 2012) 
Vector autoregression (VAR) is an econometric model used to capture the linear interdependencies among multiple time series. VAR models generalize the univariate autoregression (AR) models by allowing for more than one evolving variable. All variables in a VAR are treated symmetrically in a structural sense (although the estimated quantitative response coefficients will not in general be the same); each variable has an equation explaining its evolution based on its own lags and the lags of the other model variables. VAR modeling does not require as much knowledge about the forces influencing a variable as do structural models with simultaneous equations: The only prior knowledge required is a list of variables which can be hypothesized to affect each other intertemporally.
Contents
Specification
This section includes a list of references, related reading or external links, but the sources of this section remain unclear because it lacks inline citations. (February 2012) 
Definition
A VAR model describes the evolution of a set of k variables (called endogenous variables) over the same sample period (t = 1, ..., T) as a linear function of only their past values. The variables are collected in a k × 1 vector y_{t}, which has as the i ^{th} element, y_{i,t}, the time t observation of the i ^{th} variable. For example, if the i ^{th} variable is GDP, then y_{i,t} is the value of GDP at time t.
A pth order VAR, denoted VAR(p), is
where the lperiods back observation y_{t−l} is called the lth lag of y, c is a k × 1 vector of constants (intercepts), A_{i} is a timeinvariant k × k matrix and e_{t} is a k × 1 vector of error terms satisfying
 — every error term has mean zero;
 — the contemporaneous covariance matrix of error terms is Ω (a k × k positivesemidefinite matrix);
 for any nonzero k — there is no correlation across time; in particular, no serial correlation in individual error terms. See HatemiJ (2004) for multivariate tests for autocorrelation in the VAR models.
A pthorder VAR is also called a VAR with p lags. The process of choosing the maximum lag p in the VAR model requires special attention because inference is dependent on correctness of the selected lag order.^{1}^{2}
Order of integration of the variables
Note that all variables have to be of the same order of integration. The following cases are distinct:
 All the variables are I(0) (stationary): one is in the standard case, i.e. a VAR in level
 All the variables are I(d) (nonstationary) with d > 0:^{citation needed}
 The variables are cointegrated: the error correction term has to be included in the VAR. The model becomes a Vector error correction model (VECM) which can be seen as a restricted VAR.
 The variables are not cointegrated: the variables have first to be differenced d times and one has a VAR in difference.
Concise matrix notation
One can stack the vectors in order to write a VAR(p) with a concise matrix notation:
Details of the matrices are in a separate page.
Example
For a general example of a VAR(p) with k variables, see General matrix notation of a VAR(p).
A VAR(1) in two variables can be written in matrix form (more compact notation) as
(in which only a single A matrix appears because this example has a maximum lag p equal to 1), or, equivalently, as the following system of two equations
Each variable in the model has one equation. The current (time t) observation of each variable depends on its own lagged values as well as on the lagged values of each other variable in the VAR.
Writing VAR(p) as VAR(1)
A VAR with p lags can always be equivalently rewritten as a VAR with only one lag by appropriately redefining the dependent variable. The transformation amounts to stacking the lags of the VAR(p) variable in the new VAR(1) dependent variable and appending identities to complete the number of equations.
For example, the VAR(2) model
can be recast as the VAR(1) model
where I is the identity matrix.
The equivalent VAR(1) form is more convenient for analytical derivations and allows more compact statements.
Structural vs. reduced form
Structural VAR
A structural VAR with p lags (sometimes abbreviated SVAR) is
where c_{0} is a k × 1 vector of constants, B_{i} is a k × k matrix (for every i = 0, ..., p) and ε_{t} is a k × 1 vector of error terms. The main diagonal terms of the B_{0} matrix (the coefficients on the i^{th} variable in the i^{th} equation) are scaled to 1.
The error terms ε_{t} (structural shocks) satisfy the conditions (1)  (3) in the definition above, with the particularity that all the elements off the main diagonal of the covariance matrix are zero. That is, the structural shocks are uncorrelated.
For example, a two variable structural VAR(1) is:
where
that is, the variances of the structural shocks are denoted (i = 1, 2) and the covariance is .
Writing the first equation explicitly and passing y_{2,t} to the right hand side one obtains
Note that y_{2,t} can have a contemporaneous effect on y_{1,t} if B_{0;1,2} is not zero. This is different from the case when B_{0} is the identity matrix (all offdiagonal elements are zero — the case in the initial definition), when y_{2,t} can impact directly y_{1,t+1} and subsequent future values, but not y_{1,t}.
Because of the parameter identification problem, ordinary least squares estimation of the structural VAR would yield inconsistent parameter estimates. This problem can be overcome by rewriting the VAR in reduced form.
From an economic point of view, if the joint dynamics of a set of variables can be represented by a VAR model, then the structural form is a depiction of the underlying, "structural", economic relationships. Two features of the structural form make it the preferred candidate to represent the underlying relations:
 1. Error terms are not correlated. The structural, economic shocks which drive the dynamics of the economic variables are assumed to be independent, which implies zero correlation between error terms as a desired property. This is helpful for separating out the effects of economically unrelated influences in the VAR. For instance, there is no reason why an oil price shock (as an example of a supply shock) should be related to a shift in consumers' preferences towards a style of clothing (as an example of a demand shock); therefore one would expect these factors to be statistically independent.
 2. Variables can have a contemporaneous impact on other variables. This is a desirable feature especially when using low frequency data. For example, an indirect tax rate increase would not affect tax revenues the day the decision is announced, but one could find an effect in that quarter's data.
Reducedform VAR
By premultiplying the structural VAR with the inverse of B_{0}
and denoting
one obtains the pth order reduced VAR
Note that in the reduced form all right hand side variables are predetermined at time t. As there are no time t endogenous variables on the right hand side, no variable has a direct contemporaneous effect on other variables in the model.
However, the error terms in the reduced VAR are composites of the structural shocks e_{t} = B_{0}^{−1}ε_{t}. Thus, the occurrence of one structural shock ε_{i,t} can potentially lead to the occurrence of shocks in all error terms e_{j,t}, thus creating contemporaneous movement in all endogenous variables. Consequently, the covariance matrix of the reduced VAR
can have nonzero offdiagonal elements, thus allowing nonzero correlation between error terms.
Estimation
Estimation of the regression parameters
Starting from the concise matrix notation (for details see this annex):
 The multivariate least squares (MLS) for B yields:
It can be written alternatively as:
Where denotes the Kronecker product and Vec the vectorization of the matrix Y.
This estimator is consistent and asymptotically efficient. It is furthermore equal to the conditional maximum likelihood estimator.^{3}
 As the explanatory variables are the same in each equation, the multivariate least squares estimator is equivalent to the ordinary least squares estimator applied to each equation separately.^{4}
Estimation of the covariance matrix of the errors
As in the standard case, the maximum likelihood estimator (MLE) of the covariance matrix differs from the ordinary least squares (OLS) estimator.
MLE estimator:^{citation needed}
OLS estimator:^{citation needed} for a model with a constant, k variables and p lags.
In a matrix notation, this gives:
Estimation of the estimator's covariance matrix
The covariance matrix of the parameters can be estimated as^{citation needed}
Interpretation of estimated model
Properties of the VAR model are usually summarized using structural analysis using Granger causality, Impulse responses, and forecast error variance decompositions.
Forecasting using an estimated VAR model
An estimated VAR model can be used for forecasting, and the quality of the forecasts can be judged, in ways that are completely analogous to the methods used in univariate autoregressive modelling.
Applications
Christopher Sims advocated VAR models, criticizing the claims and performance of earlier modeling in macroeconomic econometrics.^{5} He recommended VAR models, which had previously appeared in time series statistics and in system identification, a statistical specialty in control theory. Sims advocated VAR models as providing a theoryfree method to estimate economic relationships, thus being an alternative to the "incredible identification restrictions" in structural models.^{5}
Software
 R: there is a package called vars which deals with VAR models.^{6}
 SAS: VARMAX
 STATA: "var"
 EViews: "VAR"
 Gretl: "var"
 Regression analysis of time series
 Statistical Software Components
See also
Notes
 ^ Hacker & HatemiJ 2008.
 ^ HatemiJ & Hacker 2009.
 ^ Hamilton, James D. (1994) Time Series Analysis. Princeton University Press. (p. 293)
 ^ Zellner, Arnold (1962). "An Efficient Method of Estimating Seemingly Unrelated Regressions and Tests for Aggregation Bias". Journal of the American Statistical Association 57 (298): 348–368.
 ^ ^{a} ^{b} Sims, Christopher (1980). "Macroeconomics and Reality". Econometrica 48 (1): 1–48. JSTOR 1912017.
 ^ Bernhard Pfaff VAR, SVAR and SVEC Models: Implementation Within R Package vars
Further reading
 Asteriou, Dimitrios; Hall, Stephen G. (2011). "Vector Autoregressive (VAR) Models and Causality Tests". Applied Econometrics (Second ed.). London: Palgrave MacMillan. pp. 319–333.
 Gujarati, Damodar N.; Porter, Dawn C. (2009). "Vector Autoregression (VAR)". Basic Econometrics (Fifth international ed.). New York: McGrawHill. pp. 784–790. ISBN 9780071276252.
 Enders, Walter (2003). Applied Econometric Time Series (2nd ed.). John Wiley & Sons. ISBN 0471230650.
 Lütkepohl, Helmut (2005). New Introduction to Multiple Time Series Analysis. Berlin: Springer. ISBN 3540401725.
 Hacker, R. S.; HatemiJ, A. (2008). "Optimal laglength choice in stable and unstable VAR models under situations of homoscedasticity and ARCH". Journal of Applied Statistics 35 (6): 601–615.
 HatemiJ, A. (2004). "Multivariate tests for autocorrelation in the stable and unstable VAR models". Economic Modelling 21 (4): 661–683.
 HatemiJ, A.; Hacker, R. S. (2009). "Can the LR test be helpful in choosing the optimal lag order in the VAR model when information criteria suggest different lag orders?". Applied Economics 41 (9): 1489–1500.

HPTS  Area Progetti  EduSoft  JavaEdu  N.Saperi  Ass.Scuola..  TS BCTV  TS VideoRes  TSODP  TRTWE  