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

Question:

14.6 In this exercise you will conduct a Monte Carlo experiment to study the phenomenon of spurious regression discussed in Section 14.6. 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, Yt and Xt, 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 e1, e2,

c, e100. Set Y1 = e1 and Yt = Yt - 1 + et for t = 2, 3,

c, 100.

ii. Use your computer to generate a new sequence, a1, a2,c, a100, of T = 100 i.i.d. standard normal random variables. Set X1 = a1 and Xt = Xt - 1 + at for t = 2, 3,

c, 100.

iii. Regress Yt onto a constant and Xt. Compute the OLS estimator, the regression R2, and the (homoskedastic-only) t-statistic testing the null hypothesis that b1 (the coefficient on Xt) is zero.

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 b1 = 0, using the usual 5% critical value of 1.96. What is the R2 of your regression?

b. Repeat

(a) 1000 times, saving each value of R2 and the t-statistic.
Construct a histogram of the R2 and t-statistic. What are the 5%, 50%, and 95% percentiles of the distributions of the R2 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: 9781292071367

3rd Global Edition

Authors: James Stock, Mark Watson

Question Posted: