EC220 - Introduction to econometrics (chapter 7)

Slides:



Advertisements
Similar presentations
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: consequences of autocorrelation Original citation: Dougherty, C. (2012)
Advertisements

Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: model b: properties of the regression coefficients Original citation:
EC220 - Introduction to econometrics (chapter 3)
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: asymptotic properties of estimators: the use of simulation Original.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: slope dummy variables Original citation: Dougherty, C. (2012) EC220 -
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: a Monte Carlo experiment Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: introduction to maximum likelihood estimation Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: adaptive expectations Original citation: Dougherty, C. (2012) EC220.
1 THE DISTURBANCE TERM IN LOGARITHMIC MODELS Thus far, nothing has been said about the disturbance term in nonlinear regression models.
1 XX X1X1 XX X Random variable X with unknown population mean  X function of X probability density Sample of n observations X 1, X 2,..., X n : potential.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: types of regression model and assumptions for a model a Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: asymptotic properties of estimators: plims and consistency Original.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: stationary processes Original citation: Dougherty, C. (2012) EC220 -
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: tests of nonstationarity: introduction Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: dynamic model specification Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: testing a hypothesis relating to a regression coefficient Original citation:
1 THE NORMAL DISTRIBUTION In the analysis so far, we have discussed the mean and the variance of a distribution of a random variable, but we have not said.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: interactive explanatory variables Original citation: Dougherty, C. (2012)
HETEROSCEDASTICITY-CONSISTENT STANDARD ERRORS 1 Heteroscedasticity causes OLS standard errors to be biased is finite samples. However it can be demonstrated.
EC220 - Introduction to econometrics (chapter 7)
Random effects estimation RANDOM EFFECTS REGRESSIONS When the observed variables of interest are constant for each individual, a fixed effects regression.
EC220 - Introduction to econometrics (chapter 9)
MEASUREMENT ERROR 1 In this sequence we will investigate the consequences of measurement errors in the variables in a regression model. To keep the analysis.
EC220 - Introduction to econometrics (chapter 2)
EC220 - Introduction to econometrics (chapter 9)
00  sd  0 –sd  0 –1.96sd  0 +sd 2.5% CONFIDENCE INTERVALS probability density function of X null hypothesis H 0 :  =  0 In the sequence.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a function of a random variable Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: variable misspecification iii: consequences for diagnostics Original.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: continuous random variables Original citation: Dougherty, C. (2012)
1 A MONTE CARLO EXPERIMENT In the previous slideshow, we saw that the error term is responsible for the variations of b 2 around its fixed component 
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: precision of the multiple regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: maximum likelihood estimation of regression coefficients Original citation:
EC220 - Introduction to econometrics (chapter 12)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: Chow test Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
1 PREDICTION In the previous sequence, we saw how to predict the price of a good or asset given the composition of its characteristics. In this sequence,
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: sampling and estimators Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: autocorrelation, partial adjustment, and adaptive expectations Original.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: conflicts between unbiasedness and minimum variance Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: measurement error Original citation: Dougherty, C. (2012) EC220 - Introduction.
THE FIXED AND RANDOM COMPONENTS OF A RANDOM VARIABLE 1 In this short sequence we shall decompose a random variable X into its fixed and random components.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: Friedman Original citation: Dougherty, C. (2012) EC220 - Introduction.
CONSEQUENCES OF AUTOCORRELATION
ALTERNATIVE EXPRESSION FOR POPULATION VARIANCE 1 This sequence derives an alternative expression for the population variance of a random variable. It provides.
CONFLICTS BETWEEN UNBIASEDNESS AND MINIMUM VARIANCE
Christopher Dougherty EC220 - Introduction to econometrics (chapter 7) Slideshow: weighted least squares and logarithmic regressions Original citation:
EC220 - Introduction to econometrics (chapter 8)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: footnote: the Cochrane-Orcutt iterative process Original citation: Dougherty,
TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the.
Simple regression model: Y =  1 +  2 X + u 1 We have seen that the regression coefficients b 1 and b 2 are random variables. They provide point estimates.
A.1The model is linear in parameters and correctly specified. PROPERTIES OF THE MULTIPLE REGRESSION COEFFICIENTS 1 Moving from the simple to the multiple.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: instrumental variable estimation: variation Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: multiple restrictions and zero restrictions Original citation: Dougherty,
1 We will now look at the properties of the OLS regression estimators with the assumptions of Model B. We will do this within the context of the simple.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: alternative expression for population variance Original citation:
1 ASYMPTOTIC PROPERTIES OF ESTIMATORS: THE USE OF SIMULATION In practice we deal with finite samples, not infinite ones. So why should we be interested.
Definition of, the expected value of a function of X : 1 EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE To find the expected value of a function of.
HETEROSCEDASTICITY 1 This sequence relates to Assumption A.4 of the regression model assumptions and introduces the topic of heteroscedasticity. This relates.
INSTRUMENTAL VARIABLES 1 Suppose that you have a model in which Y is determined by X but you have reason to believe that Assumption B.7 is invalid and.
1 ESTIMATORS OF VARIANCE, COVARIANCE, AND CORRELATION We have seen that the variance of a random variable X is given by the expression above. Variance.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220 -
1 We will illustrate the heteroscedasticity theory with a Monte Carlo simulation. HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION 1 standard deviation of.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: independence of two random variables Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: simple regression model Original citation: Dougherty, C. (2012) EC220.
Introduction to Econometrics, 5th edition
Presentation transcript:

EC220 - Introduction to econometrics (chapter 7) Christopher Dougherty EC220 - Introduction to econometrics (chapter 7) Slideshow: heteroscedasticity: Monte Carlo illustration   Original citation: Dougherty, C. (2012) EC220 - Introduction to econometrics (chapter 7). [Teaching Resource] © 2012 The Author This version available at: http://learningresources.lse.ac.uk/133/ 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://learningresources.lse.ac.uk/

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) 1 standard deviation of u We will illustrate the heteroscedasticity theory with a Monte Carlo simulation in which Y = 10 + 2X, the data for X are the integers from 5 to 54, and u = Xe, where e is iid N(0,1) (identically and independently distributed, drawn from a normal distribution with zero mean and unit variance). 1

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) 1 standard deviation of u The blue circles give the nonstochastic component of Y in the observations. The lines give the points one standard deviation of u above and below the nonstochastic component of Y and show how the distribution of Y spreads in the vertical dimension as X increases. 2

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) 1 standard deviation of u The standard deviation of ui is equal to Xi. The heteroscedasticity is thus of the type detected by the Goldfeld–Quandt test and it may be eliminated using weighted least squares (WLS). We scale through by X, weighting observation i by multiplying it by 1/Xi. 3

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) 1 million samples Slope coefficient estimated using WLS Yi /Xi = 10/Xi + 2.0 + ei s.d. = 0.227 Slope coefficient estimated using OLS s.d. = 0.346 The diagram shows the results of estimating the slope coefficient using WLS and OLS for one million samples. 4

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) 1 million samples Slope coefficient estimated using WLS Yi /Xi = 10/Xi + 2.0 + ei s.d. = 0.227 Slope coefficient estimated using OLS s.d. = 0.346 Both OLS and WLS are unbiased, but the distribution of the WLS estimates has a smaller variance. This illustrates the fact that OLS is inefficient in the presence of heteroscedasticity. 5

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Heteroscedasticity also causes the OLS standard error to be invalidated. The diagram shows the distributions of the OLS and WLS standard errors of the slope coefficient for the million samples. 6

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 The standard deviation of the distribution of the WLS estimates of the slope coefficient in the first slide was 0.227, and we can see that the WLS standard errors in the million samples are distributed around this figure. 7

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Sometimes the WLS standard error overestimates the underlying standard deviation of the distribution of the slope coefficient, sometimes it underestimates it, but there is no evident bias. 8

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 The standard deviation of the distribution of the OLS estimates of the slope coefficient in the first slide was 0.346, and we can see that the OLS standard error is downwards biased. The mean of its distribution in the million samples is 0.319. 9

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Because the OLS standard error is downwards biased, the OLS t statistic will tend to be higher than it should be. What happens if we use heteroscedasticity-consistent, or robust, standard errors instead? 10

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Robust s.e. estimated using OLS Mean of distribution = 0.335 Actual s.d. = 0.346 The mean of the distribution of the robust standard errors is 0.335. This is closer to the true standard deviation, 0.346. But the dispersion of the robust standard errors is larger. Hence, in this case, it is not clear that the robust standard errors are actually more reliable. 11

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Robust s.e. estimated using OLS Mean of distribution = 0.335 Actual s.d. = 0.346 Robust standard errors are valid only in large samples. For small samples, their properties are unknown and they could actually be more misleading than the ordinary OLS standard errors. 12

HETEROSCEDASTICITY: MONTE CARLO ILLUSTRATION Yi = 10 + 2.0Xi + ui Xi = {5,6, ..., 54} ui = Xiei ei ~ N(0,1) S.e. estimated using WLS Mean of distribution = 0.226 Actual s.d. = 0.227 1 million samples S.e. estimated using OLS Mean of distribution = 0.319 Actual s.d. = 0.346 Robust s.e. estimated using OLS Mean of distribution = 0.335 Actual s.d. = 0.346 We could investigate this In the case of the present model by making the sample larger or smaller than the 50 observations used in each sample in this simulation. 13

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 7.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/. 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 or the University of London International Programmes distance learning course 20 Elements of Econometrics www.londoninternational.ac.uk/lse. 11.07.25