Topic 7. VAR Models
Topic 7. VAR Models
Or:
If p.value is:
• <0.05: X Granger causes Y at the 5% significance level.
• >0.05: X does not Granger cause Y at the 5% significance level.
Impulse response function
What do you understand by impulse response function?
1. Explains the reaction of an endogenous variable to one of the innovations.
2. Describes the evolution of the variable of interest along a specified time horizon
after a shock in a given moment.
3. An essential tool in empirical causal analysis and policy effectiveness analysis.
4. Tracks the impact of a variable on other variables in the system.
5. Traces the effects on present and future values of the endogenous variable of one
standard deviation shock to one of the innovations.
Impulse response function
6. In signal processing, the impulse response of a dynamic system is its output when
presented with a brief input signal, called an impulse.
7. Used in explaining the concepts of “pass through”. The degree at which the changes
in a variable are passed to other variables at different stages either directly or
indirectly.
8. Used to further assess the tendency of significant Granger causality results.
• The IRF traces the dynamic path of variables in the
system to shocks to other variables in the system.
• This is done by:
▫ Estimating the VAR model.
▫ Implementing a one-unit increase in the error of
one of the variables in the model while holding
the other errors equal to 0.
▫ Predicting the impacts h-period ahead of the
error shock.
▫ Plotting the forecast impacts, along with the one-
standard-deviation confidence intervals.
• In order to identify the impulse responses, a restriction is applied in the main matrix
– “Cholesky decomposition”.
• The order of the variables play a key role as the restrictions on the matrix implies
some shocks have no contemporaneous effects on some of the variables in the
system.
• Economic theory and sensible assumptions are required to order the variables.
• For example: a VAR(1) model with unemployment rate and Fed rate.
𝑏11 0 𝑈𝑁𝐸𝑀𝑃𝑡
= 𝐵𝑍𝑡−1 + 𝑒𝑡
𝑏21 𝑏22 𝐹𝐸𝐷𝑡
Cholesky decomposition
• Fed rate shocks have no contemporaneous effect on unemployment.
Unemployment responds with lags to changes in Fed rate.
• Unemployment shocks have contemporaneous effects on the Fed rate.
Policymaker has current information on the economy to set the rate.
• Note: The most exogeneous variable in the model should go first, then
the 2nd most exogeneous variable and so on. The Granger causality test
can help to decide which variables are the most and least exogeneous.
The variables that are explained by others (according to Granger test) are
more endogenous than those that aren’t.
Forecast error decomposition
• Forecast error (variance) decomposition displays the percentage of the error made
forecasting a variable over time due to a specific shock.
• It helps to judge how much of an impact one variable has on another variable in the
VAR model and how intertwined our variables’ dynamics are.
• For example, if X is responsible for 85% of the forecast error variance of Y, it is
explaining a large amount of the forecast variation in X. However, if X is only
responsible for 20% of the forecast error variance of Y, much of the forecast error
variance of Y is left unexplained by X.
Step-by-step procedure in VAR modelling
1. Specify the model
2. Perform stationarity test.
3. Determine the optimal lag length (p) for the model
4. Estimate the basic VAR with (p) lags
5. Perform postestimation checks: normality test, autocorrelation, stability,…
6. Perform impulse responses
7. Interpret the results
VAR stability conditions
• Stability in VAR system implies stationarity, “stationarity conditions”.
oIf all inverse roots of the characteristics AR polynomial have modulus less than 1
and lie inside the unit circle, the estimated VAR is stable.
oIf the VAR is not stable, diverse tests conducted on our VAR model may be invalid.
Impulse response standard errors are not valid.
• It’s important to check for residuals diagnostics!
VAR modelling in STATA
1. Specify the model
2. Time set the data. Use: tsset
Perform stationarity test. Series must be I(1) and not I(2). Use: dfuller, pperron,…
3. Determine the optimal lag length (p) for the model. Use: varsoc
4. Estimate the VAR with (p) lags. Use: var
5. Perform postestimation checks: normality test, autocorrelation, stability. Use:
varlmar, varnorm, varstable
6. Perform impulse responses. Use: irf
A 3-variable VAR model
𝒍𝒏𝒑𝒅𝒊𝒕 =∝1 + ∑𝒌𝒊=𝟏 𝜷𝒊 𝒍𝒏𝒑𝒅𝒊𝒕−𝒊 + ∑𝑘𝑗=1 𝜙𝑗 𝑙𝑛𝑝𝑐𝑒𝑡−𝑗 + ∑𝑘𝑚=1 𝜑𝑚 𝑙𝑛𝑔𝑑𝑝𝑡−𝑚 + 𝑢1𝑡
𝒍𝒏𝒑𝒄𝒆𝒕 =∝1 + ∑𝑘𝑖=1 𝛽𝑖 𝑙𝑛𝑝𝑑𝑖𝑡−𝑖 + ∑𝑘𝑗=1 𝜙𝒋 𝒍𝒏𝒑𝒄𝒆𝒕−𝒋 + ∑𝑘𝑚=1 𝜑𝑚 𝑙𝑛𝑔𝑑𝑝𝑡−𝑚 + 𝑢1𝑡
𝒍𝒏𝒈𝒅𝒑𝒕 =∝1 + ∑𝑘𝑖=1 𝛽𝑖 𝑙𝑛𝑝𝑑𝑖𝑡−𝑖 + ∑𝑘𝑗=1 𝜙𝑗 𝑙𝑛𝑝𝑐𝑒𝑡−𝑗 + ∑𝑘𝑚=1 𝝋𝒎 𝒍𝒏𝒈𝒅𝒑𝒕−𝒎 + 𝑢1𝑡
Notes:
• u are the stochastic error terms, often called impulses/innovations/shocks.
• The dependent variable is a function of its lagged values and the lagged values of other
variables in the model.
• VAR must be specified in levels. VAR in differences would be mis-specified.
• Individual coefficients in the estimated VAR models are often difficult to interpret,
hence practitioners often estimate the impulse response function (IRF).
• The IRF traces out the response of the dependent variable in the VAR system to shocks
in the error terms, such as 𝑢1𝑡 , 𝑢2𝑡 and 𝑢3𝑡 .
• Suppose 𝑢1𝑡 in the lnpdi equation increases by a value of one standard deviation. Such
a shock or change will change lnpdi in the current as well as future periods. But since
lnpdi appears in the lnpce and lngdp regressions, the change in 𝑢1𝑡 will also have an
impact on lnpce and lngdp.
• Similarly, a change of one standard deviation in 𝑢2𝑡 of the lnpce equation will have
an impact on lnpdi and lngdp… and same for a change of one standard deviation in
𝑢3𝑡 of the lngdp equation.
• The IRF traces out the impact of such shocks for several periods in the future.
• Although the utility of IRF analysis has been questioned by researchers, it is the core
of VAR analysis.
Interpretation of IRF graph
Interpretation of a standard deviation shock to lnpdi:
1. Response on lnpce:
A one standard deviation shock (innovation) to personal disposable income temporarily
increases personal consumption expenditure. This positive response gradually declines
until the 3rd period when it hits its steady state value. Beyond period three, personal
consumption expenditure rises above its steady state value and remains in the positive
region.
-> A shock to lnpdi will have a positive impact on lnpce both in the short run and long
run.
2. Response on lngdp:
A one standard deviation shock (innovation) to personal disposable income initially
increases real gross domestic output. This positive response gradually declines until
the fourth period when it hits its steady state value. Beyond period six, real gross
domestic output rises above its steady state value and remains in the positive
region.
-> A shock to lnpdi will have a positive impact on lngdp both in the short run and
long run.
Note
• Innovations and responses must be consistent with intuition, economic theory or a
priori expectations.
• For example, our results are consistent because with more income, people tend to
spend more and this leads to more consumption, creating demand for production,
investment goes up leading to economic growth.
Estimation of SVAR
• Consider a SVAR(1) model with variables: GDP growth, inflation, interest rate:
𝐴𝑦𝑡 = 𝐵𝑦𝑡−1 + 𝑒𝑡 , 𝑒𝑡 ~𝑁 0. 𝐼 (1)
• We multiply both sides of equation (1) by 𝐴−1 :
𝐴−1 𝐴𝑦𝑡 = 𝐴−1 𝐵𝑦𝑡−1 + 𝐴−1 𝑒𝑡 , 𝑒𝑡 ~𝑁 0. 𝐼 (2)
𝑦𝑡 = 𝐹𝑦𝑡−1 + 𝑢𝑡 , 𝑢𝑡 ~𝑁(0, ∑𝑢 ) (3)
So:
′
𝐹= 𝐴−1 𝐵, 𝑢𝑡 = 𝐴−1 𝑒𝑡 , ∑𝑢 = −1
𝐴 𝐼𝐴−1 = 𝐴−1 𝐴−1′
The VAR in equation (3) is the usual one we use to estimate the reduced-form of VAR.
• If we know 𝐴−1 : 𝐵 = 𝐴𝐹
• If we know 𝐴−1 : 𝑒𝑡 = 𝐴𝑢𝑡
• Identification: how to identify 𝐴−1
• We have 9 unknowns (elements of A), but only 6 equations (because the variance-
covariance matrix is symmetric). The system is not identified!
Structural VAR models: Identification schemes
. 0 0
B= 0 . 0 . This ensures the covariance between variables are unrelated.
0 0 .
1 0 0
A= . 1 0 . The diagonal reflects that the own-effect has to be one.
. . 1