Problem Set 5: Structural VARs ¶
The exercises are based on this problem set and the answers can be found here.
Exercise 1¶
Consider the following simple vector autoregression. Let \(y_t\) be detrended log GDP, \(m_t\) be detrended log money, and let \(X_t\) be the vector \((y_t, m_t)'\). Assume that both time series are stationary. Our structural model is given by: \(X_t = A X_t + B X_{t-1} + C u_t\), or:
where \(E[u_t] = 0\) and \(E[u_t u'_t] = I\).
Our reduced form model is given by \(X_t = \Gamma X_{t-1} + \epsilon_t\), or:
where \(E[\epsilon] = 0\) and
- Solve for the structural parameters as a function of the reduced form coefficients.
If we write the vector with \(y_t\) and \(m_t\) on the left hand side, we can recover \(B_0\).
and the inverse is
For the coefficients of the first lagged vector, we get the following relation between reduced and structural form.
For the error term, we have
And we know that
With the four equations, we can back out \(\sigma_y\), \(\sigma_m\) and \(a\) in relation to the \(\omega_i\).
Inserting \(a\) in the former expression for \(B_1 = B_0 G\) leads to
- We say that \(m_t\) Granger causes \(y_t\) if
In the context of our model, we can test whether \(m_t\) Granger causes \(y_t\) by testing a fairly simple hypothesis on the reduced form coefficients. Identify the appropriate null and alternative hypotheses on the reduced form coefficients for testing whether output Granger causes money, and the appropriate null and alternative hypotheses for testing whether money Granger causes output.
In general, Granger causality means not causality in the common sense that \(A\) causes \(B\), but more that \(A\) is predictive of or precedes \(B\).
Following this logic, we have to look at the matrix \(G\) of the reduced form. Given that money does not Granger cause output \(g_{12}\) should be zero and if it does \(g_{12}\) should be different. Therefore, we have the following hypotheses:
The same argument applies to the question whether output Granger causes money. The hypotheses are
As we estimate the equations by OLS, the test is equal to a t-test for the coefficients being different to 0. If the problem has not been presented as a \(SVAR(1)\) process, but as a \(SVAR(p)\), we had to employ a F-test for the joint hypothesis that all coeffcients for all lagged versions of the other entity are equal to 0.
- What conditions on the structural parameters imply that output fails to Granger cause money? What conditions on the the structural parameters imply that money fails to Granger cause output?
Assuming that output fails to Granger cause money, then
If money fails to Granger cause output, then
- Next, we will consider impulse response functions. Let:
Calculate the \(IRF(k)\) in terms of \(A\), \(B\), and \(C\).
As the impulse response function is equal to the matrix in the vector moving average representation, we are rewriting the process to the reduced form, then using lag operators to get the moving average representation.
Note that, in the last line we applied a small simplification where \(D = (I_k - A)^{-1} B\). Now, we want to find another lag operator polynomial \(\Phi(L)\) with \(\Phi(L)D(L) = I_k\).
which leads to
Therefore, the Wold representation looks like this
The impulse response function is therefore
- Next, we will calculate variance decompositions. Let the squared k-step-ahead forecast error for a variable \(x_t\) be defined as
Find the squared 1-step-ahead forecast error for \(y_t\) as a function of the structural model parameters. Calculate the associated variance decomposition. Do the same for \(m_t\).
Remember that the h-step ahead forecast error is defined as
where we use that \(u_t = B_0^{-1} \omega_t\). Start with the Wold representation and calculate the expected value.
The associated variance decompositions can be calculated
TODO: I must have wrong something - a transposition? - because the indices do not match with the provided answers.
Exercise 2¶
- Explain the four steps you would have to go through to bootstrap the standard error of a regression coefficient in the basic linear model.
To compute the standard error for the regression coeffcients we need to set up bootstrap samples, fit the \(VAR(p)\) with intercept, construct structural IRFs and compute the confidence intervals as the quantiles of the bootstrapped IRF distribution.
- For the first step, we need the initial conditions for the \(VAR(p)\), \([y*_{-p+1}, \dots, y*_0]\), which can be drawn from the sample values with replacement or fixed at the sample values. Furthermore, we need random draws of \(u*_t\) where the distribution can be Gaussian in the parametric case or depending on the draws with replacement from the regression residuals in a nonparametric setting.
- Fit the \(VAR(p)\).
- Construct the structural IRFs
- Compute confidence intervals as quantiles of the distribution of IRFs
- Briefly walk the reader through the following code. What is the purpose?
1-3: The first three lines draw 100 random numbers and compute the
median for this sample. 4-5: Declare the number of bootstrap samples,
1000, and a vector for storing the medians of the bootstrap sample.
6-10: For each bootstrap sample, draw 100 random numbers between 1 and
0, multiply them with 100 and convert them to integers using the
ceil
function. These integers are now used to draw with replacement
from the original 100 random numbers defined in lines 1-3. For this new
bootstrap sample, compute the median and store it.
After running this program, we are left with an array of median values. Computing the standard error for this distribution gives us the standard error of the previously calculated metric.
Exercise 3¶
Estimating the reduced form of the Blanchard-Quah VAR, we receive the following plot of the residuals: Looking at the plot, name two issues that could potentially lead to the VAR being misspecified. Use Gretl (replace with Julia) and the supplied data file BQ_data.gdt to test for these issues (use 8 lags and a constant).
Exercise 4¶
Given an \(VAR(1)\) process, compute the autocovariances for this process.
A \(VAR(1)\) process can be given as
Multiplying \((y_{t-h} - \mu)'\) and taking expectations yields
Depeding on \(h\), we get the following equations: