  We examine asymptotic properties of the OLS estimator when the values of the
regressor of interest are assigned randomly and independently of other
regressors. We find that the OLS variance formula in this case is often
simplified, sometimes substantially. In particular, when the regressor of
interest is independent not only of other regressors but also of the error
term, the textbook homoskedastic variance formula is valid even if the error
term and auxiliary regressors exhibit a general dependence structure. In the
context of randomized controlled trials, this conclusion holds in completely
randomized experiments with constant treatment effects. When the error term is
heteroscedastic with respect to the regressor of interest, the variance formula
has to be adjusted not only for heteroscedasticity but also for correlation
structure of the error term. However, even in the latter case, some
simplifications are possible as only a part of the correlation structure of the
error term should be taken into account. In the context of randomized control
trials, this implies that the textbook homoscedastic variance formula is
typically not valid if treatment effects are heterogenous but
heteroscedasticity-robust variance formulas are valid if treatment effects are
independent across units, even if the error term exhibits a general dependence
structure. In addition, we extend the results to the case when the regressor of
interest is assigned randomly at a group level, such as in randomized control
trials with treatment assignment determined at a group (e.g., school/village)
level.
