Presentation is loading. Please wait.

Presentation is loading. Please wait.

Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: simultaneous equations estimation: Durbin-Wu-Hausman test Original citation:

Similar presentations


Presentation on theme: "Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: simultaneous equations estimation: Durbin-Wu-Hausman test Original citation:"— Presentation transcript:

1 Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: simultaneous equations estimation: Durbin-Wu-Hausman test Original citation: Dougherty, C. (2012) EC220 - Introduction to econometrics (chapter 9). [Teaching Resource] © 2012 The Author This version available at: http://learningresources.lse.ac.uk/135/http://learningresources.lse.ac.uk/135/ Available in LSE Learning Resources Online: May 2012 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. This license allows the user to remix, tweak, and build upon the work even for commercial purposes, as long as the user credits the author and licenses their new creations under the identical terms. http://creativecommons.org/licenses/by-sa/3.0/ http://creativecommons.org/licenses/by-sa/3.0/ http://learningresources.lse.ac.uk/

2 1 In the Monte Carlo experiment in the previous sequence we used the rate of unemployment, U, as an instrument for w in the price inflation equation. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST

3 OLS IV b 1 s.e.(b 1 ) b 2 s.e.(b 2 ) b 1 s.e.(b 1 ) b 2 s.e.(b 2 ) 10.360.491.110.222.330.970.160.45 20.450.381.060.171.530.570.530.26 30.650.270.940.121.130.320.700.15 40.410.390.980.191.550.590.370.30 50.920.460.770.222.310.710.060.35 60.260.351.090.161.240.520.590.25 70.310.391.000.191.520.620.330.32 81.060.380.820.161.950.510.410.22 9–0.080.361.160.181.110.620.450.33 101.120.430.690.202.260.610.130.29 2 We ran OLS and IV regressions for 10 samples. As far as we could tell, the IV estimates were distributed around the true value, while the OLS estimates were clearly upwards biased. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST

4 OLS IV b 1 s.e.(b 1 ) b 2 s.e.(b 2 ) b 1 s.e.(b 1 ) b 2 s.e.(b 2 ) 10.360.491.110.222.330.970.160.45 20.450.381.060.171.530.570.530.26 30.650.270.940.121.130.320.700.15 40.410.390.980.191.550.590.370.30 50.920.460.770.222.310.710.060.35 60.260.351.090.161.240.520.590.25 70.310.391.000.191.520.620.330.32 81.060.380.820.161.950.510.410.22 9–0.080.361.160.181.110.620.450.33 101.120.430.690.202.260.610.130.29 3 We will now perform a Durbin–Wu–Hausman test using the first sample. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST

5 4 ivregress 2sls p (w=U) Instrumental variables (2SLS) regression Number of obs = 20 Wald chi2(1) = 0.15 Prob > chi2 = 0.7018 R-squared = 0.1606 Root MSE = 1.187 ------------------------------------------------------------------------------ p | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- w |.1619431.4230184 0.38 0.702 -.6671577.9910439 _cons | 2.328433.9202004 2.53 0.011.5248734 4.131993 ------------------------------------------------------------------------------ Instrumented: w Instruments: U estimates store REGIV We begin by running the IV regression. In the command, the instrumented variable(s) and instrument(s) are placed in parentheses, with an = sign separating them. Here w is the instrumented variable and U is the instrument. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST

6 5 ivregress 2sls p (w=U) Instrumental variables (2SLS) regression Number of obs = 20 Wald chi2(1) = 0.15 Prob > chi2 = 0.7018 R-squared = 0.1606 Root MSE = 1.187 ------------------------------------------------------------------------------ p | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- w |.1619431.4230184 0.38 0.702 -.6671577.9910439 _cons | 2.328433.9202004 2.53 0.011.5248734 4.131993 ------------------------------------------------------------------------------ Instrumented: w Instruments: U estimates store REGIV SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST The next command is ‘ estimates store ’ followed by a name for the IV regression. Here it has been called ‘ REGIV ’.

7 6 reg p w Source | SS df MS Number of obs = 20 ---------+------------------------------ F( 1, 18) = 26.16 Model | 19.8854938 1 19.8854938 Prob > F = 0.0001 Residual | 13.683167 18.760175945 R-squared = 0.5924 ---------+------------------------------ Adj R-squared = 0.5697 Total | 33.5686608 19 1.76677162 Root MSE =.87188 ------------------------------------------------------------------------------ p | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- w | 1.107448.2165271 5.115 0.000.6525417 1.562355 _cons |.3590688.4913327 0.731 0.474 -.673183 1.391321 ------------------------------------------------------------------------------ estimates store REGOLS We then run the OLS regression, and follow with the command ‘ estimates store ' followed by a name for the OLS regression. Here it has been called ‘ REGOLS '. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST

8 7 reg p w Source | SS df MS Number of obs = 20 ---------+------------------------------ F( 1, 18) = 26.16 Model | 19.8854938 1 19.8854938 Prob > F = 0.0001 Residual | 13.683167 18.760175945 R-squared = 0.5924 ---------+------------------------------ Adj R-squared = 0.5697 Total | 33.5686608 19 1.76677162 Root MSE =.87188 ------------------------------------------------------------------------------ p | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- w | 1.107448.2165271 5.115 0.000.6525417 1.562355 _cons |.3590688.4913327 0.731 0.474 -.673183 1.391321 ------------------------------------------------------------------------------ estimates store REGOLS hausman REGIV REGOLS, constant SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST To perform the test, we give the command ‘hausman’ followed by the name you gave to the IV regression, then the name of the OLS regression, followed by a comma, and then ‘ constant ’, as shown.

9 8 reg p w Source | SS df MS Number of obs = 20 ---------+------------------------------ F( 1, 18) = 26.16 Model | 19.8854938 1 19.8854938 Prob > F = 0.0001 Residual | 13.683167 18.760175945 R-squared = 0.5924 ---------+------------------------------ Adj R-squared = 0.5697 Total | 33.5686608 19 1.76677162 Root MSE =.87188 ------------------------------------------------------------------------------ p | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- w | 1.107448.2165271 5.115 0.000.6525417 1.562355 _cons |.3590688.4913327 0.731 0.474 -.673183 1.391321 ------------------------------------------------------------------------------ estimates store REGOLS hausman REGIV REGOLS, constant SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST By default, the test does not include the constant in the comparison of the coefficients because sometimes the constant has different meanings in the IV and LS regressions. Here the constant has the same meaning (we just get different estimates), so we include it.

10 9 This produces the output shown. The top half reproduces the coefficients from the IV and OLS regressions. SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from ivregress B = inconsistent under Ha, efficient under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339

11 10 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from ivregress B = inconsistent under Ha, efficient under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 The null hypothesis is that the OLS estimators are consistent and that the differences between the OLS and IV coefficients are random.

12 11 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from ivregress B = inconsistent under Ha, efficient under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 The IV estimates are in column b. They will be consistent both under the null hypothesis and the alternative.

13 12 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from ivregress B = inconsistent under Ha, efficient under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 The OLS estimates are in column B. They will be unbiased and efficient under the null hypothesis and inconsistent under the alternative.

14 13 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent unde) Ho and Ha; obtained from ivregress B = inconsistent under Ha, effic)ent under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 Under the null hypothesis, the test statistic is in principle distributed as a chi-squared statistic with degrees of freedom equal to the number of coefficients being compared. However for finite samples the degrees of freedom may be fewer. Stata gives the number.

15 14 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent unde) Ho and Ha; obtained from ivregress B = inconsistent under Ha, effic)ent under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 The critical value of chi-squared with 1 degree of freedom at the 5 percent level is 5.99, so in this case we reject the null hypothesis at this significance level. However, we do not reject it at the 1 percent level (critical value 9.21).

16 15 SIMULTANEOUS EQUATIONS ESTIMATION: DURBIN–WU–HAUSMAN TEST ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | REGIV REGOLS Difference S.E. -------------+---------------------------------------------------------------- w |.1619431 1.107448 -.9455052.3634014 _cons | 2.328433.3590688 1.969364.7780495 ------------------------------------------------------------------------------ b = consistent unde) Ho and Ha; obtained from ivregress B = inconsistent under Ha, effic)ent under Ho; obtained from regress Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 6.77 Prob>chi2 = 0.0339 This result is expected because we know that OLS yields inconsistent estimates in a model of this type and so we know the null hypothesis is false.

17 Copyright Christopher Dougherty 2011. These slideshows may be downloaded by anyone, anywhere for personal use. Subject to respect for copyright and, where appropriate, attribution, they may be used as a resource for teaching an econometrics course. There is no need to refer to the author. The content of this slideshow comes from Section 9.3 of C. Dougherty, Introduction to Econometrics, fourth edition 2011, Oxford University Press. Additional (free) resources for both students and instructors may be downloaded from the OUP Online Resource Centre http://www.oup.com/uk/orc/bin/9780199567089/http://www.oup.com/uk/orc/bin/9780199567089/. Individuals studying econometrics on their own and who feel that they might benefit from participation in a formal course should consider the London School of Economics summer school course EC212 Introduction to Econometrics http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx or the University of London International Programmes distance learning course 20 Elements of Econometrics www.londoninternational.ac.uk/lsewww.londoninternational.ac.uk/lse. 11.07.25


Download ppt "Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: simultaneous equations estimation: Durbin-Wu-Hausman test Original citation:"

Similar presentations


Ads by Google