In this exercise, you will conduct a Monte Carlo experiment to study the phenomenon of spurious regression

Question:

In this exercise, you will conduct a Monte Carlo experiment to study the phenomenon of spurious regression discussed in Section 15.7. In a Monte Carlo study, artificial data are generated using a computer, and then those artificial data are used to calculate the statistics being studied. This makes it possible to compute the distribution of statistics for known models when mathematical expressions for those distributions are complicated (as they are here) or even unknown. In this exercise, you will generate data so that two series, \(Y_{t}\) and \(X_{t}\), are independently distributed random walks. The specific steps are as follows:

i. Use your computer to generate a sequence of \(T=100\) i.i.d. standard normal random variables. Call these variables \(e_{1}, e_{2}, \ldots, e_{100}\). Set \(Y_{1}=e_{1}\) and \(Y_{t}=Y_{t-1}+e_{t}\) for \(t=2,3, \ldots, 100\).

ii. Use your computer to generate a new sequence, \(a_{1}, a_{2}, \ldots, a_{100}\), of \(T=100\) i.i.d. standard normal random variables. Set \(X_{1}=a_{1}\) and \(X_{t}=X_{t-1}+a_{t}\) for \(t=2,3, \ldots, 100\).

iii. Regress \(Y_{t}\) onto a constant and \(X_{t}\). Compute the OLS estimator, the regression \(R^{2}\), and the (homoskedasticity-only) \(t\)-statistic testing the null hypothesis that \(\beta_{1}\) (the coefficient on \(X_{t}\) ) is 0.

Use this algorithm to answer the following questions:

a. Run the algorithm (i) through (iii) once. Use the \(t\)-statistic from (iii) to test the null hypothesis that \(\beta_{1}=0\), using the usual \(5 \%\) critical value of 1.96. What is the \(R^{2}\) of your regression?

b. Repeat (a) 1000 times, saving each value of \(R^{2}\) and the \(t\)-statistic. Construct a histogram of the \(R^{2}\) and \(t\)-statistic. What are the \(5 \%, 50 \%\), and \(95 \%\) percentiles of the distributions of the \(R^{2}\) and the \(t\)-statistic? In what fraction of your 1000 simulated data sets does the \(t\)-statistic exceed 1.96 in absolute value?

c. Repeat (b) for different numbers of observations, such as \(T=50\) and \(T=200\). As the sample size increases, does the fraction of times that you reject the null hypothesis approach \(5 \%\), as it should because you have generated \(Y\) and \(X\) to be independently distributed? Does this fraction seem to approach some other limit as \(T\) gets large? What is that limit?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction To Econometrics

ISBN: 9780134461991

4th Edition

Authors: James Stock, Mark Watson

Question Posted: