




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Now, although ∆i itself is fundamentally unknowable, we can (perhaps remarkably) use randomized experiments to learn certain properties of the ∆i. In particular, large randomized experiments let us recover the average treatment effect (ATE) τ = E [Yi(1) − Yi(0)]. (1.2)
To do so, assume that we observe n independent and identically distributed samples (Yi, Wi) satisfying the following two properties:
Yi = Yi(Wi) (SUTVA) Wi ⊥⊥ {Yi(0), Yi(1)} (random treatment assignment)
Then, the difference-in-means estimator
ˆτDM =
n 1
Wi=
Yi −
n 0
Wi=
Yi, nw = |{i : Wi = w}| (1.3)
is unbiased and consistent for the average treatment effect
Difference-in-means estimation The statistical properties of ˆτDM can read- ily be established. Noting that, for w ∈ { 0 , 1 }
nw
Wi=w
Yi
Yi
∣ (^) Wi = w
Yi(w)
∣ (^) Wi = w
= E [Yi(w)] , (random assignment)
we find that the difference-in-means estimator is unbiased^2
E [ˆτDM ] = E [Yi(1)] − E [Yi(0)] = τ.
Moreover, we can write the variance as
Var
τˆDM
∣ (^) n 0 , n 1
n 0
Var [Yi(0)] +
n 1
Var [Yi(1)].
A standard central limit theorem can be used to verify that √ n (ˆτDM − τ ) ⇒ N (0, VDM ) , VDM = Var [Yi(0)]
P [Wi = 0] + Var [Yi(1)]
P [Wi = 1].
(^2) For a precise statement, one would need to worry about the case where n 0 or n 1 is 0.
Finally, note that we can estimate VDM via routine plug-in estimators to build valid Gaussian confidence intervals for τ :
lim n→∞
τ ∈
τ ˆDM ± Φ−^1 (1 − α/2)
VDM /n
= 1 − α, (1.5)
where Φ denotes the standard Gaussian cumulative distribution function and
n 1 − 1
Wi=
Yi −
n 1
Wi=
Yi
n 0 − 1
Wi=
Yi −
n 0
Wi=
Yi
From a certain perspective, the above is all that is needed to estimate average treatment effects in randomized trials. The difference in means estimator ˆτDM is consistent and allows for valid asymptotic inference; moreover, the estimator is very simple to implement, and hard to “cheat” with (there is little room for an unscrupulous analyst to try different estimation strategies and report the one that gives the answer closest to the one they want). On the other hand, it is far from clear that ˆτDM is the “optimal” way to use the data, in the sense that it provides the most accurate value of τ for a given sample size. Below, we try to see if/when we can do better.
Example: The linear model To better understand the behavior of ˆτDM , it is helpful to look at special cases. First, we consider the linear model: We assume that (Xi, Yi, Wi) is generated as
Yi(w) = c(w) +Xiβ(w) +εi(w), E
εi(w)
∣ (^) Xi^ ]^ = 0, Var [εi(w)
∣ (^) Xi^ ]^ = σ^2. (1.6)
Here, ˆτDM does not use the Xi; however, we can characterize its behavior in terms of the distribution of the Xi. Throughout our analysis, we assume for simplicity that we are in a balanced randomized trial, with
P [Wi = 0] = P [Wi = 1] =
Moreover, we assume (without loss of generality) that
E [X] = 0, and define A = Var [X].
The assumption that E [X] = 0 is without loss of generality because all estima- tors we will consider today are translation invariant (but of course the analyst cannot be allowed to make use of knowledge that E [X] = 0).
Regression adjustments without linearity The above result is perhaps not so surprising: If we assume a linear model, than using an estimator that leverages linearity ought to help. However, it is possible to prove a much stronger result for OLS in randomized trials: OLS is never worse that the difference-in-means methos in terms of its asymptotic variance, and usually improves on it (even in misspecified models). Replace our linearity assumption with the following generic assumption:
Yi(w) = μ(w)(Xi) + εi(w), E
εi(w)
∣ (^) Xi
= 0, Var
εi(w)
∣ (^) Xi
= σ^2 , (1.12)
for some arbitrary function μ(w)(x). As before, we can check that (recall that we assume that P [Wi = 1] = 0.5)
√ n (ˆτDM − τ ) ⇒ N (0, VDM ) = 4σ^2 + 2 Var
μ(0)(Xi)
μ(1)(Xi)
and so ˆτDM provides a simple way of getting consistent estimates of τ. In order to analyze OLS, we need to use the Huber-White analysis of linear regression. Without any assumption on μ(w)(x), the OLS estimates (ˆc(w), βˆ(w)) converge to a limit characterized as
( c∗ (w), β (∗w)
= argminc, β
(Yi(w) − Xiβ − c)^2
If the linear model is misspecified, (c∗ (w), β (∗w)) can be understood as those parameters that minimize the expected mean-squared error of any linear model. Given this notation, it is well known^3 that (recall that we still assume wlog that E [X] = 0)
√ nw
ˆc(w) β^ ˆ(w)
c∗ (w) β (∗w)
M SE (∗w) 0 0 · · ·
c∗ (w) = E [Yi(w)] , M SE (∗w) = E
Yi(w) − Xiβ (∗w) − ˆc∗ (w)
Then, following the line of argumentation in the previous section, we can derive a central limit theorem
√ n (ˆτOLS − τ ) ⇒ N (0, VOLS ) , (1.15) (^3) For a recent review of asymptotics for OLS under misspecification, see Buja et al. [2019];
in particular (1.14) is stated as Proposition 7.1 of this paper.
with asymptotic variance^4
VOLS = 2M SE∗ (0) + 2M SE (1)∗ +
∥β (1)∗ − β (0)∗
A = 4σ^2 + 2 Var
μ(0)(X) − Xβ (0)∗
μ(1)(X) − Xβ (1)∗
∥β (1)∗ − β∗ (0)
A = 4σ^2 + 2
Var
μ(0)(X)
− Var
Xβ (0)∗
Var
μ(1)(X)
− Var
Xβ (1)∗
∥β (1)∗ − β (0)∗
A = 4σ^2 + 2
Var
μ(0)(X)
μ(1)(X)
∥β (1)∗ − β∗ (0)
∥β (0)∗
∥β∗ (1)
A = 4σ^2 + 2
Var
μ(0)(X)
μ(1)(X)
∥β (0)∗ + β∗ (1)
A = VDM −
∥β (0)∗ + β (1)∗
In other words, whether or not the true effect function μw(x) is linear, OLS always reduces the asymptotic variance of DM. Moreover, the amount of vari- ance reduction scales by the amount by which OLS in fact chooses to fit the training data. A worst case for OLS is when β∗ (0) = β (1)∗ = 0, i.e., when OLS asymptotically just does nothing, and ˆτOLS reduces to ˆτDM.
Recap The individual treatment effect ∆i = Yi(1) − Yi(0) is central object of interest in causal inference. These effects ∆i themselves are fundamentally unknowable; however, a large randomized controlled trial lets us consistently recover the average treatment effect τ = E [∆i]. Moreover, even without as- suming linearity, we found that OLS regression adjustments generally improve on the performance of the simple difference in means estimator. We emphasize that, throughout our analysis, we defined the target estimand τ = E [∆i] before making any modeling assumptions. Linear modeling was only used as a tool to estimate τ , but did not inform the scientific question we tried to answer. In particular, we did not try to estimate τ by direct regression modeling Yi ∼ Xiβ + Wiτ + εi, while claiming that the coefficient on τ is a causal effect. This approach has the vice of tying our scientific question to our regression modeling strategy: τ appears to just have become a coefficient in our linear model, not a fact of nature that’s conceptually prior to modeling decisions.
(^4) For the third equality, we use the fact that Xβ (∗w) is the projection of μ(w)(X) on to the
linear span of the features X, and so Cov[μ(w)(X), Xβ (∗w)] = Var[Xβ (∗w)].
One of the simplest extensions of the randomized trial is treatment effect esti- mation under unconfoundedness. Qualitatively, unconfoundedness is relevant when we want to estimate the effect of a treatment that is not randomized, but is as good as random once we control for a set of covariates Xi. The goal of this lecture is to discuss identification and estimation of average treatment effects under such an unconfoundedness assumption. As before, our approach will be non-parametric: We won’t assume well specification of any parametric models, and identification of the average treatment effect will be driven entirely by the design (i.e., conditional independence statements relating potential outcomes and the treatment).
Beyond a single randomized controlled trial We define the causal effect of a treatment via potential outcomes. For a binary treatment w ∈ { 0 , 1 }, we define potential outcomes Yi(1) and Yi(0) corresponding to the outcome the i-th subject would have experienced had they respectively received the treatment or not. We assume SUTVA, Yi = Yi(Wi), and want to estimate the average treatment effect ATE = E [Yi(1) − Yi(0)].
In the first lecture, we assumed random treatment assignment, {Yi(0), Yi(1)} ⊥⊥ Wi, and studied several
n-consistent estimators for the ATE. The simplest way to move beyond one RCT is to consider two RCTs. As a concrete example, supposed that we are interested in giving teenagers cash incentives to discourage them from smoking. A random subset of ∼ 5% of teenagers in Palo Alto, CA, and a random subset of ∼ 20% of teenagers in Geneva, Switzerland are eligible for the study.
Palo Alto Non-S. Smoker Treat. 152 5 Control 2362 122
Geneva Non-S. Smoker Treat. 581 350 Control 2278 1979
Within each city, we have a randomized controlled study, and in fact readily see that the treatment helps. However, looking at aggregate data is misleading, and it looks like the treatment hurts; this is an example of what is sometimes called Simpson’s paradox:
Palo Alto + Geneva Non-Smoker Smoker Treatment 733 401 Control 4640 2101
Once we aggregate the data, this is no longer an RCT because Genevans are both more likely to get treated, and more likely to smoke whether or not they get treated. In order to get a consistent estimate of the ATE, we need to estimate treatment effects in each city separately:
τˆPA =
τ ˆGVA =
τˆ =
ˆτPA +
ˆτGVA ≈ − 6 .5%.
What are the statistical properties of this estimator? How does this idea gen- eralize to continuous x?
Aggregating difference-in-means estimators Suppose that we have co- variates Xi that take values in a discrete space Xi ∈ X , with |X | = p < ∞. Suppose moreover that the treatment assignment is random conditionally on Xi, (i.e., we have an RCT in each group defined by a level of x):
{Yi(0), Yi(1)} ⊥⊥ Wi
∣ (^) Xi = x, for all x ∈ X. (2.1)
Define the group-wise average treatment effect as
τ (x) = E
Yi(1) − Yi(0)
∣ (^) Xi = x
Then, as above, we can estimate the ATE τ by aggregating group-wise treat- ment effect estimations,
τˆAGG =
x∈X
nx n
τˆ (x), ˆτ (x) =
nx 1
{Xi=x, Wi=1}
Yi −
nx 0
{Xi=x, Wi=0}
Yi, (2.3)
effect estimates, and that the exact number of groups |X | = p does not affect the accuracy of inference. However, if X is continuous (or the cardinality of X is very large), this result does not apply directly—because we won’t be able to get enough samples for each possible value of x ∈ X to be able to define ˆτ (x) as in (2.3). In order to generalize our analysis beyond the discrete-X case, we’ll need to move beyond literally trying to estimate τ (x) for each value of x by simple averaging, and use a more indirect argument instead. To this end, we first need to generalize the “RCT in each group” assumption. Formally, we just write the same thing, {Yi(0), Yi(1)} ⊥⊥ Wi
∣ (^) Xi, (2.6)
although now Xi may be an arbitrary random variable, and interpretation of this statement may require more care. Qualitatively, one way to think about (2.6) is that we have measured enough covariates to capture any dependence between Wi and the potential outcomes and so, given Xi, Wi cannot “peek” at the {Yi(0), Yi(1)}. We call this assumption unconfoundedness. The assumption (2.6) may seem like a difficult assumption to use in prac- tice, since it involves conditioning on a continuous random variable. However, as shown by Rosenbaum and Rubin (1983), this assumption can be made con- siderably more tractable by considering the propensity score^1
e(x) = P
Wi = 1
∣ (^) Xi = x
Statistically, a key property of the propensity score is that it is a balancing score: If (2.6) holds, then in fact
{Yi(0), Yi(1)} ⊥⊥ Wi
∣ (^) e(Xi), (2.8)
i.e., it actually suffices to control for e(X) rather than X to remove biases associated with a non-random treatment assignment. We can verify this claim as follows:
P
Wi = w
∣ (^) {Yi(0), Yi(1)} , e(Xi)
X
Wi = w
∣ (^) {Yi(0), Yi(1)} , Xi = x]^ P [Xi = x
∣ (^) e(Xi)]^ dx
X
Wi = w
∣ (^) Xi = x]^ P [Xi = x
∣ (^) e(Xi)]^ dx (unconf.)
= e(Xi) (^1) w=1 + (1 − e(Xi)) (^1) w=0. (^1) When X is continuous, the propensity score e(x) has exactly the same meaning as when X is discrete; however, we can no longer trivially estimate it via ˆe(x) = nx 1 /nx in this case.
The implication of (2.8) is that if we can partition our observations into groups with (almost) constant values of the propensity score e(x), then we can consis- tently estimate the average treatment effect via variants of ˆτAGG.
Propensity stratification One instantiation of this idea is propensity strat- ification, which proceeds as follows. First obtain an estimate ˆe(x) of the propen- sity score via non-parametric regression, and choose a number of strata J. Then:
eˆ (Xi 1 ) ≤ ˆe (Xi 2 ) ≤... ≤ eˆ (Xin ). (2.9)
τˆj =
∑bjn/Jc j=b(j−1)n/Jc+1 WiYi ∑bjn/Jc j=b(j−1)n/Jc+1 Wi
∑bjn/Jc j=b(j−1)n/Jc+1 (1^ −^ Wi)^ Yi ∑bjn/Jc j=b(j−1)n/Jc+1 (1^ −^ Wi)^
ˆτST RAT =
j=
ˆτj. (2.11)
The arguments described above immediately imply that, thanks to (2.8), ˆτST RAT is consistent for τ whenever ˆe(x) is uniformly consistent for e(x) and the num- ber of strata J grows appropriately with n.
Inverse-propensity weighting Another, algorithmically simpler way of ex- ploiting unconfoundedness is via inverse-propensity weighting: As before, we first estimate ˆe(x) via non-parametric regression, and then set
τˆIP W =
n
∑^ n
i=
WiYi ˆe(Xi)
(1 − Wi) Yi 1 − eˆ(Xi)
The simplest way to analyze it is by comparing it to an oracle that actually knows the propensity score:
τˆ (^) IP W∗ =
n
∑^ n
i=
WiYi e(Xi)
(1 − Wi) Yi 1 − e(Xi)
separate is non-trivial, and is a result of how we defined c(·))
n Var [ˆτ (^) IP W∗ ] = Var
WiYi e(Xi)
(1 − Wi)Yi 1 − e(Xi)
= Var
Wic(Xi) e(Xi)
(1 − Wi)c(Xi) 1 − e(Xi)
Var [τ (Xi)]
Var
Wiεi e(Xi)
(1 − Wi)εi 1 − e(Xi)
c^2 (Xi) e(Xi)(1 − e(Xi))
σ^2 (Xi) e(Xi)(1 − e(Xi))
Pulling everything together, we see that √ n (ˆτ (^) IP W∗ − τ ) ⇒ N (0, VIP W ∗^ ) ,
VIP W ∗ = E
c^2 (Xi) e(Xi)(1 − e(Xi))
σ^2 (Xi) e(Xi)(1 − e(Xi))
How accurate is oracle IPW? To gain a better understanding of how good the accuracy is, it is helpful to re-visit the setting of the beginning of this lecture where X is discrete. In this setting, nothing’s stopping us from using IPW; but we now can also use our group-wise aggregated estimator ˆτAGG from (2.3) as a point of comparison. And, in doing so, we see that the performance of the oracle IPW estimator is somewhat disappointing. Despite having access to the true propensity score e(x), it always under-performs ˆτAGG: Both estimators are asymptotically centered normal, but from (2.5) and (2.17) we see that
c^2 (Xi) e(Xi)(1 − e(Xi))
Thus, unless c(x) as defined via (2.16) is zero everywhere, ˆτ (^) IP W∗ has a strictly worse asymptotic variance than ˆτAGG. Perhaps even more surprisingly, we note that ˆτAGG can actually be under- stood as an IPW estimator with a specific choice of estimated propensity score ˆe(x):
ˆτAGG =
n
∑^ n
i=
WiYi e ˆ(Xi)
(1 − Wi) Yi 1 − eˆ(Xi)
, eˆ(x) =
nx 1 n 1
ˆτ (^) IP W∗ =
n
∑^ n
i=
WiYi e(Xi)
(1 − Wi) Yi 1 − e(Xi)
Thus, the “feasible” IPW estimator ˆτAGG is actually better than the “oracle” IPW estimator. At a high level, the reason this phenomenon occurs is that the estimated propensity score corrects for local variability in the sampling distribution of the Wi (i.e., it accounts for the number of units that were actually treated in each group).
Comparison with linear modeling One can contrast this approach to a “classical” approach to controlling for covariates based on parametric modeling. In such a classical analysis, one might estimate the effect of a non-randomized treatment Wi by writing down a linear regression model
Yi ∼ Xiβ + Wiτ, (2.20)
and then estimating the model by OLS. One might then argue that τ is the effect of Wi while “controlling” for Xi. The approach following (2.20) is potentially acceptable if one knows the linear model to be well specified, or is willing to settle for a more heuristic analysis. However, one should note that the standard of rigor underlying such linear modeling vs. the methods discussed today is quite different. As discussed today, IPW is consistent under the substantively meaningful assumption (2.6), whereby treatment assigned emulates random treatment assignment once we control for Xi. On the other hand, the linear modeling approach is entirely dependent on well-specification of (2.20); and in case of model misspecification, there’s no reason to except that its ˆτ estimate will converge to anything that can be interpreted as a causal effect.
Recap Today, we discussed estimation of the average treatment effect under unconfoundedness, i.e., under the assumption that we observe a set of covariates Xi such that treatment is as good as random after we control for Xi in the sense of (2.6), and showed that estimators based on the propensity score achieve non- parametric consistency. We found that IPW is a simple estimator that easily enables us to exploit unconfoundedness, and with true propensity score se(x) it is unbiased. How- ever, we also found that a variant of IPW with estimated propensity scores can, in some cases, outperform the oracle IPW estimator. This provides evidence that IPW is not “optimal,” and does not fully capture the complexity of the problem of average treatment effect estimation under unconfoundedness. In the following lecture, we’ll discuss alternatives to IPW with better asymptotic properties.
Inverse-propensity weighting (IPW) is a simple and transparent approach to average treatment effect estimation under unconfoundedness. However, as seen in the previous lecture, the large-sample properties of IPW are not particularly good in general. For example, in the case where the covariates Xi ∈ X are discrete, we found that IPW underperforms a baseline that estimates separate treatment effects for each value of x ∈ X and then aggregates them. The goal of this lecture is to get beyond the limitations of IPW, and to discuss a general recipe for building asymptotically optimal treatment effect estimators under unconfoundedness.
Statistical setting We observe data (Xi, Yi, Wi, ) ∈ X × R × { 0 , 1 } accord- ing to the potential outcomes model, such that there are potential outcomes {Yi(0), Yi(1)} for which Yi = Yi(Wi) (SUTVA). We are not necessarily in a randomized controlled trial; however, we assume unconfoundedness, i.e., that treatment assignment is as good as random conditionally on the features Xi:
{Yi(0), Yi(1)} ⊥⊥ Wi
∣ (^) Xi. (3.1)
We seek to estimate the average treatment effect τ = E [Yi(1) − Yi(0)]. Through- out, we write σ w^2 (x) = Var
Yi(w)
∣ (^) Xi = x
Two characterizations of the ATE Last time, we saw that the ATE can be characterized in terms of the propensity score e(x) = P
Wi = 1
∣ (^) Xi = x
τ = E [ˆτ (^) IP W∗ ] , ˆτ (^) IP W∗ =
n
∑^ n
i=
WiYi e(Xi)
(1 − Wi) Yi 1 − e(Xi)
However, τ can also be characterized in terms of the conditional response sur- faces μ(w)(x) = E
Yi(w)
∣ (^) Xi = x
. Under unconfoundedness (3.1),
τ (x) := E
Yi(1) − Yi(0)
∣ (^) Xi = x
Yi(1)
∣ (^) Xi = x
Yi(0)
∣ (^) Xi = x
Yi(1)
∣ (^) Xi = x, Wi = 1
Yi(0)
∣ (^) Xi = x, Wi = 0
(unconf) = E
Yi
∣ (^) Xi = x, Wi = 1
Yi
∣ (^) Xi = x, Wi = 0
= μ(1)(x) − μ(0)(x),
and so τ = E
μ(1)(x) − μ(0)(x)
. Thus we could also derive a consistent (but not necessarily optimal) estimator for τ by first estimating μ(0)(x) and μ(1)(x) non-parametrically, and then using ˆτREG = n−^1
∑n i=1(ˆμ(1)(Xi)^ −^ μˆ(0)(Xi)).
Augmented IPW Given that the average treatment effect can be estimated in two different ways, i.e., by first non-parametrically estimating e(x) or by first estimating μ(0)(x) and μ(1)(x), it is natural to ask whether it is possible to combine both strategies. This turns out to be a very good idea, and yields the augmented IPW (AIPW) estimator of Robins, Rotnitzky, and Zhao [1994]:
τˆAIP W =
n
∑^ n
i=
μ ˆ(1)(Xi) − μˆ(0)(Xi)
Yi − μˆ(1)(Xi) ˆe(Xi)
− (1 − Wi)
Yi − μˆ(0)(Xi) 1 − ˆe(Xi)
Qualitatively, AIPW can be seen as first making a best effort attempt at τ by estimating μ(0)(x) and μ(1)(x); then, it deals with any biases of the ˆμ(w)(x) by applying IPW to the regression residuals.
Double robustness AIPW has many good statistical properties. One of its properties that is easiest to explain is “double robustness”: AIPW is consistent if either the ˆμ(w)(x) are consistent or ˆe(x) is consistent. To see this, first consider the case where ˆμ(w)(x) is consistent, i.e., ˆμ(w)(x) ≈ μ(w)(x). Then,
ˆτAIP W =
n
∑^ n
i=
μˆ(1)(Xi) − μˆ(0)(Xi)
a consistent treatment effect estimator
n
∑^ n
i=
Wi ˆe(Xi)
Yi − μˆ(1)(Xi)
1 − Wi 1 − eˆ(Xi)
Yi − μˆ(0)(Xi)
≈ mean-zero noise