467 views

Uploaded by Gucci Zamora Diamante

- 5656afb0fa3111e3a45b03f22ad40d51
- 7 Regression NC
- Dummy Variables
- Chpt 12 Homework
- Statistics and Quantitative Analysis
- Lesson1_simple Linier Regression
- Derivacao Da Covariancia Dos Betas
- HT_13
- 248303
- 08_Review_of_Part_I
- Brm Project
- IMPACT OF CLIMATIC PARAMATERS ON AMAN RICE PRODUCTION IN RANGPUR DISTRICT.
- LBC Viscosity Modeling of Gas Condensate to Heavy Oil, Tao Yang, SPE 109892, 2007
- Edwards2 Chap One
- Predictability of Stock Indices
- 0321757416_Sullivan_Barrel_pp001-008.pdf
- Spatial Econometrics Jul9
- SPSS data
- Odrpack Guide
- Introduction from The Development of the Art Market in England

You are on page 1of 2

-------------+------------------------------ F( 3, 84) = 57.46

Model | 617130.701 3 205710.234 Prob > F = 0.0000

Residual | 300723.805 84 3580.0453 R-squared = 0.6724

-------------+------------------------------ Adj R-squared = 0.6607

Total | 917854.506 87 10550.0518 Root MSE = 59.833

------------------------------------------------------------------------------

price | Coef. Std. Err. t P>|t| [95% Conf. Interval]

-------------+----------------------------------------------------------------

lotsize | .0020677 .0006421 3.22 0.002 .0007908 .0033446

sqrft | .1227782 .0132374 9.28 0.000 .0964541 .1491022

bdrms | 13.85252 9.010145 1.54 0.128 -4.06514 31.77018

_cons | -21.77031 29.47504 -0.74 0.462 -80.38466 36.84404

------------------------------------------------------------------------------

We may suspect that the error term is heteroskedastic, that is, that var(ui) is some function of the xj.

We can test for this in STATA using several different commands. hettest and bpagan perform the

Breusch-Pagan (aka Cook-Weisberg) test. This is a large sample test which assumes normality of

the error terms.1 The test statistic in both cases is:

( SSE1 ) / 2

BP = ~ χ 12

(SSR / n ) 2

Where SSE1 is the explained sum of squares from a regression of the squared OLS residuals on the

xj, and SSR is the residual sum of squares from a regression of y on the xj. This is equivalent to

assuming that the log of the variance of the error term is a linear function of the xj, or that:

The following example shows the computation of this statistic (with hettest, bpagan, and then

manually):

Ho: Constant variance

Variables: lotsize sqrft bdrms

chi2(3) = 30.02

Prob > chi2 = 0.0000

1

For the hettest and bpagan commands to be equivalent, use the following syntax for hettest: hettest [varlist], rhs.

This tells STATA that the variance is thought to be a function of the explanatory variables. Without [varlist] and the

“rhs” option, STATA will assume the variance is thought to be a function of the fitted values.

. predict uhat, resid

. gen uhat2=uhat*uhat

-------------+------------------------------ F( 3, 84) = 5.34

Model | 701213780 3 233737927 Prob > F = 0.0020

Residual | 3.6775e+09 84 43780003.5 R-squared = 0.1601

-------------+------------------------------ Adj R-squared = 0.1301

Total | 4.3787e+09 87 50330276.7 Root MSE = 6616.6

------------------------------------------------------------------------------

uhat2 | Coef. Std. Err. t P>|t| [95% Conf. Interval]

-------------+----------------------------------------------------------------

lotsize | .2015209 .0710091 2.84 0.006 .0603116 .3427302

sqrft | 1.691037 1.46385 1.16 0.251 -1.219989 4.602063

bdrms | 1041.76 996.381 1.05 0.299 -939.6526 3023.173

_cons | -5522.795 3259.478 -1.69 0.094 -12004.62 959.0347

------------------------------------------------------------------------------

So in this case BP = [701213780/2] / [300723.805/88]^2 = 30.02 (the same as hettest and bpagan).

The Koenker (1983) variation on this test—called the BP test in Wooldridge (2003)—assumes that

the variance of the error term is linear in the xj. This BP statistic must be calculated manually by

first obtaining the squared OLS residuals (uhat2 above), and then regressing the squared residuals

on all of the explanatory variables (also shown above). The LM statistic is then nRuˆ22 where the r-

squared comes from the regression above. Here, the BP (Koenker variation) statistic is:

BP = 88 * 0.1601 = 14.0888

You can compute the p-value for this statistic in STATA as follows:

. display 1-chi2(3,14.088)

.00278778

The White test (whitetst) regresses the squared OLS residuals on all explanatory variables, all

squared explanatory variables, and all cross-products of the explanatory variables. The LM statistic

is then nRuˆ22 where the r-squared comes from this regression. This is shown below.

. whitetst

It can be shown that the White test is a special case of the Koenker version of the Breusch-Pagan

test. For more information, see Waldman (1983).2

2

Waldman, D.M. (1983) “A Note on the Algebraic Equivalence of White’s Test and a Variation of the

Godfrey/Breusch-Pagan Test for Heteroskedasticity.” Economics Letters v. 13, pp. 197—200.

- 5656afb0fa3111e3a45b03f22ad40d51Uploaded bySean Lamb
- 7 Regression NCUploaded byGirish Narayanan
- Dummy VariablesUploaded byRahul Malhotra
- Chpt 12 HomeworkUploaded byManish Gupta
- Statistics and Quantitative AnalysisUploaded bySabareesh Kumaraswamy
- Lesson1_simple Linier RegressionUploaded byiin_saja
- Derivacao Da Covariancia Dos BetasUploaded byCarlos Araújo
- HT_13Uploaded byECON1717
- 248303Uploaded byayudrahayu
- 08_Review_of_Part_IUploaded byRama Dulce
- Brm ProjectUploaded bysandeepsingh87
- IMPACT OF CLIMATIC PARAMATERS ON AMAN RICE PRODUCTION IN RANGPUR DISTRICT.Uploaded byIJAR Journal
- LBC Viscosity Modeling of Gas Condensate to Heavy Oil, Tao Yang, SPE 109892, 2007Uploaded byjoreli
- Edwards2 Chap OneUploaded byMomentum Press
- Predictability of Stock IndicesUploaded byrishabhtam
- 0321757416_Sullivan_Barrel_pp001-008.pdfUploaded byMirza
- Spatial Econometrics Jul9Uploaded bysankha80
- SPSS dataUploaded byPagla Howa
- Odrpack GuideUploaded byadhitya666
- Introduction from The Development of the Art Market in EnglandUploaded byPickering and Chatto
- Project on Equity Valuation 1Uploaded byKazhal Vendhan
- 081215Uploaded byMichelle Marin Padilla
- Business AnalaticalUploaded byshivam
- 9781461452386-c1 (1)Uploaded byArijit Das
- MLA Linear RegressionUploaded byChristopher Salim
- Cloud Gaming Virtual Community - A Case StudyUploaded byxolilev
- Points for Session 4_updatedUploaded bypresi_student
- Ch05 (1).pptUploaded bySani Ahamed
- Cap m PowerpointUploaded bymohuna
- 3Uploaded byapi-438458005

- Cheat 1Uploaded byElena Novozhilova
- 2000 - Heteroskedastacity Autocorrelation Robust Standard Errors...- Kiefer, VogelsangUploaded bymoneypigagain
- Panel 101Uploaded byCESAR MO
- Bruce E. Hansen - EconometricsUploaded byhyper
- Ferobustse Working PaperUploaded byDhanushka Rajapaksha
- Olofin Kouassi Salisu 2Uploaded byAbdul Latif
- A Tutorial in Logistic RegressionUploaded byOmar Msawel
- Lec- ECN326 Heteroskedasticity-HO.pdfUploaded byrui
- Almgren-equity Market ImpactUploaded bytulassay
- Impact of CG on FP-Turkey-Panel DataUploaded bynsrivastav1
- Regression CookbookUploaded byPollen1234
- APPLYING REGRESSION USING E VIEWS (WITH COMMANDS)Uploaded bySafia Aslam
- A Review of the Theoretical and Empirical Basis of Financial Ratio AnalysisUploaded byMohammed Ali Askar
- homogeneity of variance tutorialUploaded byapi-163017967
- Variable Selection in Data Mining: Building a Predictive Model for BankruptcyUploaded bysubha1984
- Chapter 5Uploaded byjayroldparcede
- Service Failure and RecoveryUploaded byDini Fitriastuti
- Distess in Banks Camel+LogitUploaded byRanjan Aneja
- Full Proposal 2010Uploaded byForbet Mateo
- 69813Uploaded byEdu Merino Arbieto
- 6. EkoUploaded byIKHSAN
- Widespread Worry and the Stock Market - gilbert.pdfUploaded byalexa_sherpy
- Ols MatrixUploaded bygdsusername
- EC220 2017 Paper STUploaded bybekfjbewkfbwke
- QTMUploaded byfahim ur rahman
- jurnal skripsi inggrisUploaded byTaufikSatria
- 4 Chu-Sheng Tai -- Time-varying risk premia in foreign exchange and equity markets- evidence from Asia–Pacific countries.pdfUploaded byhclitl
- Ch12_slides (1).pptUploaded byabdulraufhcc
- Project Delhi Metro 20 April 2016 PptUploaded byAvneet Ahuja
- Lecture_4.pdfUploaded byDarren Ignatius Lee