Economics 310 Lecture 13 Heteroscedasticity Continued.

Slides:



Advertisements
Similar presentations
Heteroskedasticity Hill et al Chapter 11. Predicting food expenditure Are we likely to be better at predicting food expenditure at: –low incomes; –high.
Advertisements

Economics 310 Lecture 2 General Linear Model Continued.
The Multiple Regression Model.
Economics 310 Lecture 16 Autocorrelation Continued.
Hypothesis Testing Steps in Hypothesis Testing:
Regression Analysis Simple Regression. y = mx + b y = a + bx.
EPI 809/Spring Probability Distribution of Random Error.
Heteroskedasticity Prepared by Vera Tabakova, East Carolina University.
Heteroskedasticity The Problem:
8. Heteroskedasticity We have already seen that homoskedasticity exists when the error term’s variance, conditional on all x variables, is constant: Homoskedasticity.
Multiple Regression [ Cross-Sectional Data ]
Module II Lecture 6: Heteroscedasticity: Violation of Assumption 3
Chapter 13 Multiple Regression
Economics 310 Lecture 7 Testing Linear Restrictions.
CHAPTER 3 ECONOMETRICS x x x x x Chapter 2: Estimating the parameters of a linear regression model. Y i = b 1 + b 2 X i + e i Using OLS Chapter 3: Testing.
Economics 20 - Prof. Anderson1 Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 6. Heteroskedasticity.
Economics 310 Lecture 12 Heteroscedasticity. Economics 212 Lecture 23 - Heteroscedasticity.
Economics 310 Lecture 6 Test for a Regression. Basic Hypothesis.
Economics 310 Lecture 15 Autocorrelation. Correlation between members of series of observations order in time or space. For our classic model, we have.
1Prof. Dr. Rainer Stachuletz Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 6. Heteroskedasticity.
Lecture 27 Distributed Lag Models
Multiple Regression Models
So far, we have considered regression models with dummy variables of independent variables. In this lecture, we will study regression models whose dependent.
Economics 310 Lecture 28 Polynomial Distributed lags.
Economics 310 Lecture 7 Testing Linear Restrictions.
Review.
Dr. Mario MazzocchiResearch Methods & Data Analysis1 Correlation and regression analysis Week 8 Research Methods & Data Analysis.
BCOR 1020 Business Statistics
FIN357 Li1 The Simple Regression Model y =  0 +  1 x + u.
Economics Prof. Buckles
Lecture 5 Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
1 MADE WHAT IF SOME OLS ASSUMPTIONS ARE NOT FULFILED?
Returning to Consumption
Quantitative Methods Heteroskedasticity.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
What does it mean? The variance of the error term is not constant
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Microeconometric Modeling William Greene Stern School of Business New York University.
Lecture 3: Inference in Simple Linear Regression BMTRY 701 Biostatistical Methods II.
Chapter 5 Heteroskedasticity.
Chapter 5: Regression Analysis Part 1: Simple Linear Regression.
Simple Linear Regression ANOVA for regression (10.2)
Heteroskedasticity Adapted from Vera Tabakova’s notes ECON 4551 Econometrics II Memorial University of Newfoundland.
Heteroskedasticity ECON 4550 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
Tutorial 4 MBP 1010 Kevin Brown. Correlation Review Pearson’s correlation coefficient – Varies between – 1 (perfect negative linear correlation) and 1.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
EC 532 Advanced Econometrics Lecture 1 : Heteroscedasticity Prof. Burak Saltoglu.
Principles of Econometrics, 4t h EditionPage 1 Chapter 8: Heteroskedasticity Chapter 8 Heteroskedasticity Walter R. Paczkowski Rutgers University.
MEASURES OF GOODNESS OF FIT The sum of the squares of the actual values of Y (TSS: total sum of squares) could be decomposed into the sum of the squares.
Economics 310 Lecture 23 Logit Analysis Properties of Maximum Likilihood Estimator Ln(L)
Economics 310 Lecture 21 Simultaneous Equations Three Stage Least Squares A system estimator. More efficient that two-stage least squares. Uses all information.
Tutorial 5 Thursday February 14 MBP 1010 Kevin Brown.
WHITE TEST FOR HETEROSCEDASTICITY 1 The White test for heteroscedasticity looks for evidence of an association between the variance of the disturbance.
11.1 Heteroskedasticity: Nature and Detection Aims and Learning Objectives By the end of this session students should be able to: Explain the nature.
Heteroskedasticity ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 19 Measure of Variation in the Simple Linear Regression Model (Data)Data.
Metrics Lab Econometric Problems Lab. Import the Macro data from Excel and use first row as variable names Time set the year variable by typing “tsset.
Heteroscedasticity Chapter 8
Kakhramon Yusupov June 15th, :30pm – 3:00pm Session 3
REGRESSION DIAGNOSTIC II: HETEROSCEDASTICITY
HETEROSCEDASTICITY: WHAT HAPPENS IF THE ERROR VARIANCE IS NONCONSTANT?
The Regression Model Suppose we wish to estimate the parameters of the following relationship: A common method is to choose parameters to minimise the.
24/02/11 Tutorial 3 Inferential Statistics, Statistical Modelling & Survey Methods (BS2506) Pairach Piboonrungroj (Champ)
REGRESSION DIAGNOSTIC I: MULTICOLLINEARITY
HETEROSCEDASTICITY: WHAT HAPPENS IF THE ERROR VARIANCE IS NONCONSTANT?
Financial Econometrics Fin. 505
Microeconometric Modeling
Lecture 20 Two Stage Least Squares
Presentation transcript:

Economics 310 Lecture 13 Heteroscedasticity Continued

Tests to be Discussed Goldfeld-Quandt Test Assumes variance monotonically associated with some variable. Breusch-Pagan-Godfrey Test Variance linear function of set of variables or function of a linear combination of variables. White General Heteroscedasticity Test Source unknown, but may exist.

Goldfeld-Quandt Test

Data Organization Group 1 (n-c)/2=(20-4)/2=8 obs C=4 Group 2 (n-c)/2=(20-4)/2=8 obs

Obstetrics Example Data from 800+ hospitals. Dependent variable is the average length of stay in maternity ward. Explanatory variables is the charge per day and % of deliveries that are c-sections. Expect greater variability in length of stay at hospitals that are not subject to high managed care.

Shazam Commands sample read (d:\econom~1\classe~1\ob1_het.txt) cases rate los cost billed neo mcph mcpm genr charge=billed/los ols los rate charge diagnos / chowone=589

Shazam Output for Goldfeld- Quandt Test VARIABLE ESTIMATED STANDARD T-RATIO PARTIAL STANDARDIZED ELASTICITY NAME COEFFICIENT ERROR 856 DF P-VALUE CORR. COEFFICIENT AT MEANS RATE CHARGE E E CONSTANT E |_diagnos / chowone=589 REQUIRED MEMORY IS PAR= 123 CURRENT PAR= 500 DEPENDENT VARIABLE = LOS 859 OBSERVATIONS REGRESSION COEFFICIENTS E SEQUENTIAL CHOW AND GOLDFELD-QUANDT TESTS N1 N2 SSE1 SSE2 CHOW PVALUE G-Q DF1 DF2 PVALUE

Breusch-Pagan-Godfrey Test

Example of BPG Test using OB Data Null hypothesis is homoscedasticity Let the Z’s be (1) the number of of OB cases per year and (2) whether the hospital is under high managed care Expect variance to be negatively related to both variables.

Shazam Code for OB Example * performing Breusch-Pagan Test on cases and mcph ?ols los rate charge / resid=e dn anova gen1 sigsq=$sig2 genr esq=e*e genr p=esq/sigsq ols p cases mcph / anova gen1 ess=$ssr gen1 pbg=ess/2 Print pbg

Shazam Output for OB Example |_ols p cases mcph / anova VARIABLE ESTIMATED STANDARD T-RATIO PARTIAL STANDARDIZED ELASTICITY NAME COEFFICIENT ERROR 856 DF P-VALUE CORR. COEFFICIENT AT MEANS CASES E E MCPH CONSTANT |_gen1 ess=$ssr..NOTE..CURRENT VALUE OF $SSR = |_gen1 pbg=ess/2 |_Print pbg PBG

Built in BPG Test in Shazam Shazam has a built in BPG test. Uses the explanatory variables as the Zs. Invoked by using the command “DIAGNOS” with the option “HET” right after the “OLS” command. i.e. ols y x1 x2 diagnos / het

Using HET on OB example |_?ols los rate charge |_diagnos / het REQUIRED MEMORY IS PAR= 123 CURRENT PAR= 500 DEPENDENT VARIABLE = LOS 859 OBSERVATIONS REGRESSION COEFFICIENTS E HETEROSKEDASTICITY TESTS E**2 ON YHAT: CHI-SQUARE = WITH 1 D.F. E**2 ON YHAT**2: CHI-SQUARE = WITH 1 D.F. E**2 ON LOG(YHAT**2): CHI-SQUARE = WITH 1 D.F. E**2 ON X (B-P-G) TEST: CHI-SQUARE = WITH 2 D.F. E**2 ON LAG(E**2) ARCH TEST: CHI-SQUARE = WITH 1 D.F. LOG(E**2) ON X (HARVEY) TEST: CHI-SQUARE = WITH 2 D.F. ABS(E) ON X (GLEJSER) TEST: CHI-SQUARE = WITH 2 D.F.

White General Test for Heteroscedasticity This is a general test. No preconception of cause of heteroscedasticity Is a Lagrange-Multiplier Test Regress squared residuals on explanatory variables, their squares and their cross products. n*R 2 is chi-squared variable

White Test

Shazam code for White test for OB example ?ols los rate charge / resid=e genr esq=e*e genr rate2=rate*rate genr charge2=charge*charge genr charrate=charge*rate ?ols esq rate charge rate2 charge2 charrate gen1 rsqaux=$r2 gen1 numb=$n gen1 white=numb*rsqaux print white

Results of White’s test for OB example |_?ols los rate charge / resid=e |_genr esq=e*e |_genr rate2=rate*rate |_genr charge2=charge*charge |_genr charrate=charge*rate |_?ols esq rate charge rate2 charge2 charrate |_gen1 rsqaux=$r2..NOTE..CURRENT VALUE OF $R2 = |_gen1 numb=$n..NOTE..CURRENT VALUE OF $N = |_gen1 white=numb*rsqaux |_print white WHITE Note: Critical chi-square 5 df. =

White Correction Do not know the source of heteroscedasticity. Forced to use OLS estimates. Consistent estimate of true variance- covariance matrix of OLS estimators. Gives test of hypothesis that are asymptotically unbiased.

Covariance Matrix OLS

OB Example with White Correction |_ols los rate charge / hetcov USING HETEROSKEDASTICITY-CONSISTENT COVARIANCE MATRIX R-SQUARE = R-SQUARE ADJUSTED = VARIANCE OF THE ESTIMATE-SIGMA**2 = STANDARD ERROR OF THE ESTIMATE-SIGMA = SUM OF SQUARED ERRORS-SSE= MEAN OF DEPENDENT VARIABLE = LOG OF THE LIKELIHOOD FUNCTION = VARIABLE ESTIMATED STANDARD T-RATIO PARTIAL STANDARDIZED ELASTICITY NAME COEFFICIENT ERROR 856 DF P-VALUE CORR. COEFFICIENT AT MEANS RATE CHARGE E E CONSTANT

Estimated Generalized Least- Squares

Possible variance forms