1 / 81

Common Errors: How to (and Not to) Control for Unobserved Heterogeneity

Common Errors: How to (and Not to) Control for Unobserved Heterogeneity. Lecture slides by Todd Gormley. What are these slides?.

gjeff
Download Presentation

Common Errors: How to (and Not to) Control for Unobserved Heterogeneity

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Common Errors: How to (and Not to) Control for Unobserved Heterogeneity Lecture slides by Todd Gormley

  2. What are these slides? • The following slides are a combination of lecture slides used by Todd Gormley in his Ph.D. course on “Empirical Methods in Corporate Finance” at The Wharton School • For more details about the issues discussed in these slides, please see the below article • Gormley, T. and D. Matsa, 2014, “Common Errors: How to (and Not to) Control for Unobserved Heterogeneity,”Review of Financial Studies 27(2): 617-61.

  3. Motivation [Part 1] • Controlling for unobserved heterogeneity is a fundamental challenge in empirical finance • Unobservable factors affect corporate policies and prices • These factors may be correlated with variables of interest • Important sources of unobserved heterogeneity are often common across groups of observations • Demand shocks across firms in an industry, differences in local economic environments, etc.

  4. Motivation [Part 2] • E.g. consider a the firm-level estimation where leverage is debt/assets for firm i, operating in industry j in year t, and profit is the firms net income/assets What might be some unobservable omitted variables in this estimation?

  5. Motivation [Part 3] • Oh, there are so, so many… • Managerial talent and/or risk aversion • Cost of capital • Industry supply and/or demand shock • Regional demand shocks • And so on… • Easy to think of ways these might be affect leverage and be correlated with profits Sadly, this is easy to do with other dependent or independent variables…

  6. Panel data to the rescue… • Thankfully, panel data can help us with a particular type of unobserved variable… • What type of unobserved variable does panel data help us with, and why? • Answer = It helps with any unobserved variable that doesn’t vary within groups of observations

  7. Outline for lecture • Panel data and fixed effects (FE) • How not to control for unobserved heterogeneity • General implications • Benefits and limitations of FE model • Estimating high-dimensional FE models

  8. Panel data • Panel data = whenever you have multiple observations per unit of observation i (e.g. you observe each firm over multiple years) • Let’s assume N units i • And, J observations per unit i [i.e. balanced panel] • E.g., You observe 5,000 firms in Compustat over a twenty year period [i.e. N=5,000, J=20]

  9. When unobserved heterogeneity is thought to be present, researcher implicitly assumes the following: i indexes groups of observations (e.g. industry); j indexes observations within each group (e.g. firm) yi,j= dependent variable Xi,j= independent variable of interest fi= unobserved group heterogeneity = error term The underlying model [Part 1]

  10. The following standard assumptions are made: The underlying model [Part 2] N groups, J observations per group, where J is small and N is large X and ε are i.i.d. across groups, but not necessarily i.i.d. within groups Simplifies some expressions, but doesn’t change any results

  11. Finally, the following assumptions are made: The underlying model [Part 3] What do these imply? Answer = Model is correct in that if we can control for f, we’ll properly identify effect of X; but if we don’t control for f there will be omitted variable bias Source of identification concern

  12. By failing to control for group effect, fi, OLS suffers from omitted variable bias OLS estimate of β is inconsistent True model is: But OLS estimates: Alternative estimation strategies are required…

  13. Can solve this by transforming data • First, notice that if you take the population mean of the dependent variable for each unit of observation, i, you get… where Again, I assumed there are J obs. per unit i

  14. Transforming data [Part 2] • Now, if we subtract from , we have • And look! The unobserved variable, fi , is gone (as is the constant) because it is group-invariant • With our earlier assumptions, easy to see that is uncorrelated with the new disturbance, , which means… ?

  15. Fixed effects (or within) estimator • Answer: OLS estimation of transformed model will yield a consistent estimate of β • The prior transformation is called the “within transformation” because it demeans all variables within their group • This is also called the FE estimator

  16. Least Squares Dummy Variable (LSDV) • Another way to do the FE estimation is by adding indicator (dummy) variables • I.e. create a dummy variable for each group i, and add it to the regression • This is least squares dummy variable model • Now, our estimation equation exactly matches the true underlying model

  17. LSDV versus FE [Part 1] • Why do both approaches work? Well… • Frisch-Waugh-Lovell Theorem shows us there are two ways to estimate the below β1… • Estimate directly; i.e. regress y onto both x and z • OR we can just partial z out from both y and x before regressing y on x (i.e. regress residuals from regression of y on z onto residuals from regression of x on z)

  18. LSDV versus FE [Part 2] • Can show that LSDV and within-transformation of FE are identical because demeaned variables of within regression are the residuals from a regression onto group dummies!

  19. Outline for lecture • Panel data and fixed effects (FE) • How not to control for unobserved heterogeneity • General implications • Benefits and limitations of FE model • Estimating high-dimensional FE models

  20. Other approaches… • Gormley and Matsa (RFS 2014) notes that existing literature uses various other strategies to control for unobserved group-level heterogeneity… Their questions – How do each of the approaches differ? And, when are they consistent? Their answer – Some popular strategies can distort inferences and should not be used; FE estimator should be used instead

  21. They focus on two popular strategies • “Adjusted-Y” (AdjY) – dependent variable is demeaned within groups [e.g. ‘industry-adjust’] • “Average effects” (AvgE) – uses group mean of dependent variable as control [e.g. ‘state-year’ control]

  22. AdjY & AvgE are widely used • In Journal of Finance, Journal of Financial Economics, and Review of Financial Studies • Used since at least the late 1980s • Still used, 60+ papers published in 2008-2010 • Variety of subfields; asset pricing, banking, capital structure, governance, M&A, etc. • Also been used in papers published in the American Economic Review, Journal of Political Economy, and Quarterly Journal of Economics

  23. But, AdjY and AvgE are inconsistent • As Gormley and Matsa (RFS 2014) shows… • Both can be more biased than OLS • Both can get opposite sign as true coefficient • In practice, bias is likely and trying to predict its sign or magnitude will typically impractical

  24. Other, related strategies should also not be used “Characteristically-adjusted” stock returns in AP “Adjusted” stock returns when trying to estimate firms’ internal value of cash Simple comparisons of benchmark-adjusted outcomes before & after events (like M&A) “Diversification discount” Using group average of an independent variable as instrumental variable Now, let’s see why… More implications of GM (RFS 2014)

  25. Tries to remove unobserved group heterogeneity by demeaning the dependent variable within groups Adjusted-Y (AdjY) AdjY estimates: where Note: Researchers often exclude observation at hand when calculating group mean or use a group median, but both modifications will yield similarly inconsistent estimates

  26. Example AdjY estimation One example – firm value regression: = Tobin’s Q for firm j, industry i, year t = mean of Tobin’s Q for industry i in year t Xi,j,t = vector of variables thought to affect value Researchers might also include firm & year FE Anyone know why AdjY is going to be inconsistent?

  27. Rewriting the group mean, we have: Therefore, AdjY transforms the true data to: Here is why… What is the AdjY estimation forgetting?

  28. can be inconsistent when By failing to control for , AdjY suffers from omitted variable bias when AdjY has omitted variable bias True model: But, AdjY estimates: In practice, a positive covariance between X and will be very common

  29. Further analysis of AdjY estimate • Bias doesn’t disappear as group size J increases • Can be inconsistent even when OLS is not; this happens when σXf = 0 and Bias is more complicated with two variables…

  30. AdjY estimates with 2 variables • Suppose, there are instead two RHS variables • Use same assumptions as before, but add: True model:

  31. AdjY estimates with 2 variables [Part 2] • With a bit of algebra, it is shown that: Estimates of both β and γ can be inconsistent Determining sign and magnitude of bias will typically be difficult

  32. AvgE uses group mean of dependent variable as control for unobserved heterogeneity Average effects (AvgE) AvgE estimates:

  33. Example AvgE estimation Following profit regression is an AvgE example: ROAs,t = mean of ROA for state s in year t Xi,s,t = vector of variables thought to profits Researchers might also include firm & year FE Anyone know why AvgE is going to be inconsistent?

  34. AvgE uses group mean of dependent variable as control for unobserved heterogeneity Average effects (AvgE) AvgE estimates: Recall, true model: Problem is that measures fi with error

  35. Recall that group mean is given by Therefore, measures fi with error As is well known, even classical measurement error causes all estimated coefficients to be inconsistent Bias here is complicated because error can be correlated with both mismeasured variable, , and with Xi,j when AvgE has measurement error bias

  36. AvgE estimate of β with one variable • With a bit of algebra, it is shown that: Determining magnitude and direction of bias is difficult Covariance between X and again problematic, but not needed for AvgE estimate to be inconsistent Even non-i.i.d. nature of errors can affect bias!

  37. How common will the bias be? • First, we look at when by separating Xi,jinto it’s group and idiosyncratic components Idiosyncratic component distributed with mean 0 and variance Assume group means are i.i.d. with mean zero and variance And, assume

  38. AdjY and AvgE bias very common • Both AdjY and AvgE biased when • But with prior setup, we can show that… Or, bias whenever observations within groups are not independent! Bias whenever different means across groups! * Solved excluding observation at hand (most common approach)

  39. Analytical comparisons • Next, we use analytical solutions to compare relative performance of OLS, AdjY, and AvgE • To do this, we re-express solutions… • We use correlations (e.g. solve bias in terms of correlation between X and f, , instead of ) • We also assume i.i.d. errors [just makes bias of AvgE less complicated]

  40. ρXfhas large effect on performance (from Figure 1A) AdjY more biased than OLS, except for large values for ρXf Estimate, AvgE worst for low correlations, best for high OLS True β = 1 AdjY Other parameters held constant AvgE

  41. Relative variation across groups key (from Figure 1B) Estimate, OLS AvgE AdjY

  42. More observations need not help! (from Figure 1F) Estimate, OLS AvgE AdjY J

  43. Summary of OLS, AdjY, and AvgE • In general, all three estimators are inconsistent in presence of unobserved group heterogeneity • AdjY and AvgE may not be an improvement over OLS; depends on various parameter values • AdjY and AvgE can yield estimates with opposite sign of the true coefficient

  44. Comparing FE, AdjY, and AvgE • To estimate effect of X on Y controlling for Z • One could regress Y onto both X and Z… • Or, regress residuals from regression of Y on Z onto residuals from regression of X on Z Add group FE Within-group transformation! • AdjY and AvgE aren’t the same as finding the effect of X on Y controlling for Z because... • AdjY only partials Z out from Y • AvgE uses fitted values of Y on Z as control

  45. The differences matter! Example #1 Consider the following capital structure regression: (D/A)it= book leverage for firm i, year t Xi,t = vector of variables thought to affect leverage fi = firm fixed effect We now run this regression for each approach to deal with firm fixed effects, using 1950-2010 data, winsorizing at 1% tails…

  46. Estimates vary considerably (from Table 2)

  47. The differences matter! Example #2 Consider the following firm value regression: Q = Tobin’s Q for firm i, industry j, year t Xi,j,t = vector of variables thought to affect value fj,t = industry-year fixed effect We now run this regression for each approach to deal with industry-year fixed effects…

  48. Estimates vary considerably (from Table 4)

  49. The differences matter! Example #3 It also matters in literature on antitakeover laws Past papers used AvgE to control for unobserved, time-varying differences across states & industries Gormley and Matsa (2014) show that properly using industry-year, state-year, and firm FE estimator changes estimates considerably E.g., using this framework, they show that managers have an underlying preference to “Play it Safe” For details, see http://ssrn.com/abstract=2465632

  50. Outline for lecture • Panel data and fixed effects (FE) • How not to control for unobserved heterogeneity • General implications • Benefits and limitations of FE model • Estimating high-dimensional FE models

More Related