Commonly econometricians conduct inference based on covariance matrix estimates which are consistent in the presence of arbitrary forms of heteroskedasticity; the associated standard errors are referred to as “robust” (also, confusingly, White, or Huber-White, or Eicker-Huber-White) standard errors. These are easily requested in Stata with the “robust” option, as in the ubiquitous
reg y x, robust.
Everyone knows that the usual OLS standard errors are generally “wrong,” that robust standard errors are “usually” bigger than OLS standard errors, and it often “doesn’t matter much” whether one uses robust standard errors. It is whispered that there may be mysterious circumstances in which robust standard errors are smaller than OLS standard errors. Textbook discussions typically present the nasty matrix expressions for the robust covariance matrix estimate, but do not discuss in detail when robust standard errors matter or in what circumstances robust standard errors will be smaller than OLS standard errors. This post attempts a simple explanation of robust standard errors and circumstances in which they will tend to be much bigger or smaller than OLS standard errors.
Expressions for OLS and robust standard errors.
Consider the univariate linear model
where is the dependent variable, is a covariate, is the error term, and is the parameter over which we would like to make inferences. I’ve omitted a constant by expressing the model in deviations from sample means, denoted with overbars. Assume is mean independent of and serially uncorrelated, but allow heteroskedasticity, . Let denote the OLS estimate of .
If we erroneously assume the error is homoskedastic, we estimate the variance of with
where . I will refer to the square root of this estimate throughout as the “OLS standard error.” When the errors are heteroskedastic, converges to the mean of , denote that . However, the true sampling variance of can easily be shown to be
Robust standard errors are based on estimates of this expression in which the are replaced with squared OLS residuals, or sometimes slightly more complicated expressions designed to perform better in small samples, see for example Imbens and Kolsar (2012).
When do robust standard errors differ from OLS standard errors?
Compare the expressions above to see that OLS and robust standard errors are (asymptotically) identical in the special case in which and are uncorrelated, in which case
If, on the other hand, and are positively correlated, then OLS standard errors are too small and robust standard errors will tend to be larger than OLS standard errors. And if and are negatively correlated, then OLS standard errors are too big and robust standard errors will tend to be smaller than OLS standard errors. These cases are illustrated in the graphs: in the left panel, the variance of the error terms increases with the distance between and its mean , whereas in the right panel observations are most dispersed around the regression line when is at its mean.
The graphs have been constructed such that the unconditional variance of the errors terms and the variance of are the same in each graph. But by inspection we can guess that our estimate of the slope is much less precise if the data look like the left panel than the right panel: perform a thought experiment to see that lots of regression lines fit the data in the left panel quite well, but the data in the right panel do a better job pinning down the slope. There is more information about the relationship between and in the data in the right panel even though the variance of and the unconditional variance of the error term are identical.
We see that heteroskedasticity doesn’t matter per se, what matters is the relationship between the variance of the error term and the covariates—if the errors are heteroskedastic but uncorrelated with , we can safely ignore the heteroskedasticity. To see why this is so, recall that in the homoskedastic case the variance of is inversely proportional to . If we add one more observation for which happens to equal , the variance of our estimate doesn’t change—there is no information in that observation about the relationship between and . As the draw of moves farther from its mean, the variance of falls more and more, because such draws, in the homoskedastic case, are more and more informative.
Now consider the case in which the variance of increases with , as in the left panel of the graph above. When we get one more observation, the amount of information it contains increases with for the same reasons as the homoskedastic case, but this effect is blunted by the higher variance of . The amount of information contained in a draw in which is far from its mean is lower than the OLS variance estimate “thinks” there is, so to speak, because the OLS variance estimate ignores the fact that such draws are more highly dispersed around the regression line. The OLS standard errors in this case are too small.
If on the other hand the variance of decreases with , then observations of far from its mean both contain more information for the usual reason in the homoskedastic case and are less dispersed around the regression line, as in the right panel of the graph above. These observations are even more highly informative than the OLS variance estimate “thinks” they are, and the OLS standard errors will tend to be too large. In this case, robust standard errors will tend to be smaller than OLS standard errors.
The upshot is this: if you have heteroskedasticity but the variance of your errors is independent of the covariates, you can safely ignore it, but if you calculate robust standard errors anyways they will be very similar to OLS standard errors. However, if the variance of your error terms tends to be higher when is far from its mean, OLS standard errors will tend to be biased down, and robust standard errors will tend to be larger than OLS standard errors. In the opposite case in which the variance of the error terms tends to be lower when is far from its mean, OLS standard errors will tend to be too large, and robust standard errors will tend to be smaller than OLS standard errors. With real data it’s commonly but not always going to be the case that the variance of the error will be higher when is far from its mean, explaining the result that robust standard errors are typically larger than OLS standard errors in economic applications.