Conformal Inference for Counterfactuals and ITEs

Summary

Lei & Candès (JRSS-B 2021; arXiv 2006.06138) observe that, under SUTVA and strong ignorability, predicting a missing potential outcome is a covariate-shift problem: treated units are drawn from while the target is . Running weighted split-CQR with propensity-score weights ( for the ATE-type target) yields prediction intervals for , and the individual treatment effect . Coverage is exact in finite samples for randomized experiments with known , and doubly robust in observational studies: asymptotically valid if either the propensity score or the conditional quantiles are estimated consistently. In simulations Causal Forest and X-learner confidence intervals under-cover even the CATE they target, and BART under-covers with heteroscedastic, correlated covariates; the conformal intervals attain near-exact ITE coverage in every scenario.

Overview

Most heterogeneous-effect methodology targets the CATE — see Metalearners for CATE and the X-Learner. Lei & Candès argue the CATE is still an average: a drug that cures 70% of patients and harms 30% can have a positive CATE in every stratum. For individual decisions the relevant object is the ITE, a random variable even given , and the appropriate uncertainty statement is a prediction interval, not a confidence interval.

Targets (Sec. 2.3–2.4), for :

with the covariate law optionally replaced by a target : (ATT-type), (ATC-type) or an external population (transportability). These are marginal guarantees in the sense of Marginal vs Conditional Coverage; conditional coverage is pursued empirically and asymptotically.

Assumptions: i.i.d. ; SUTVA so ; strong ignorability — the setup of the Potential Outcomes Framework.

Main Content

Counterfactuals as covariate shift

Under ignorability the observed treated sample follows . The conditional law is shared with the target ; only the covariate distribution differs. This is exactly the model of Conformal Prediction Under Covariate Shift, with likelihood ratio given by Bayes’ rule:

Weight functions by inferential target (Lei & Candès, Table 1) ^def-weights-table

TargetATE-typeATT-typeATC-typeGeneral
for
for

“Weighted conformal inference depends on propensity scores in the same way IPW estimation of average causal effects depends on these same scores.” Rescaling by a constant leaves the interval unchanged.

Weighted split-CQR (Lei & Candès, Algorithm 1) ^alg-weighted-cqr

Input: level ; data from one arm; test point ; quantile learner ; weight learner .

  1. Split into training fold and calibration fold (the paper uses 75% for training).
  2. For : .
  3. For : .
  4. Normalise: and .
  5. the quantile of .

Output: . If (e.g. ) the output is .

Finite-sample coverage and robustness to weight error (Proposition 1) ^thm-lc-prop1

Let and let the target be .

  1. If , then with no further assumption.
  2. If additionally the scores have no ties, and , then coverage is at most with depending only on .
  3. If , set . Coverage is always at least (and at most under the conditions of 2).

The result is uniform over all and all quantile learners.

Randomized experiments are exact (Sec. 3.4). With perfect compliance is known by design. In a completely randomized experiment is constant and no weighting is needed; in stratified/blocked designs use Table 1 with the design’s . Coverage holds in finite samples “even if our conditional quantile estimates are completely off”. Since , coverage is nearly exact when ; and the lower bound holds regardless of overlap, because the interval becomes wherever .

Double robustness of conformal counterfactual intervals (Theorem 1) ^thm-lc-double-robust

Let , , with estimates of the conditional quantiles of and of . Assume , , and either

  • A1 (propensity consistent): ; or
  • A2 (quantiles consistent): ; the conditional density of is bounded in within distance of the two target quantiles; and for some , and , , where .

Then under SUTVA and strong ignorability,

Under A2 the intervals additionally achieve asymptotic conditional coverage (Eq. 3.6).

Heuristic for A2: if then for every , so is approximately the quantile of any reweighting of the ; hence whatever the weights. The authors note the analogy with doubly robust ATE estimation (Robins et al. 1994; Kang & Schafer 2007) but stress that “consistency of point estimates and coverage of interval estimates are different concepts”.

From counterfactuals to ITEs (Sec. 4)

  • Units in the study (one outcome observed): for a treated unit, with built using ATT-type weights ; symmetrically for controls with . Coverage follows from — no splitting of .
  • New units, naive approach: build level- intervals for both potential outcomes and subtract, . Valid by Bonferroni; conservative.
  • New units, nested approach (Algorithm 3): on fold 1 fit and the counterfactual intervals; on fold 2 compute the surrogate intervals ; then learn a map from . The inexact version fits e.g. the 40% quantile of left end-points and 60% quantile of right end-points (no guarantee, much shorter). The exact version runs a second, unweighted conformal step for interval-valued outcomes (Algorithm 2, score , Theorem 2: ), giving total miscoverage .

Empirical findings

Simulation (Sec. 3.6; variant of Wager & Athey 2018). , 100 replications, , 95% intervals; , , homoscedastic or ; . Propensity by gradient boosting; quantiles by quantile RF, quantile boosting, or BART.

Causal ForestX-learnerBARTweighted CQR
Theory: covers CATE / ITEyes / noyes / noyes / yesno / yes
Simulation: covers CATE / ITEno / nono / nono / noyes / yes

For the CATE, Causal Forest and X-learner “have poor coverage in all scenarios”, worse at ; BART credible intervals fail with correlated covariates plus heteroscedastic errors. CQR, though not designed for it, covered the CATE in all scenarios (conservatively), since prediction intervals typically contain confidence intervals for the mean. For the ITE, Causal Forest and X-learner are not competitors (they are not designed for it) and are shown only “to highlight the potential danger of misinterpreting the confidence intervals for CATE as ITE prediction intervals”; BART prediction intervals cover under homoscedasticity but not under heteroscedasticity; weighted split-CQR “achieves almost exact coverage regardless of the learning procedures”.

ACIC 2018 / NLSM-based synthetic data (Sec. 4.4). , , training and 5000 test units, propensities truncated to , exact nested with . The naive and exact-nested CQR intervals are conservative; inexact-nested CQR is close to the 95% target with length only slightly above inexact-BART and far below the naive and exact versions. BART alone fails to reach nominal coverage, “but CQR, with BART as the learner, calibrates it successfully”. The authors caution that the oracle ITE interval length is not attainable, since the joint law of is never identified. In the real NLSM re-analysis there is “some evidence of positive ITE when is above 0.25 while no evidence of any negative ITE even when “.

Examples

Geo-holdout experiment. 200 DMAs; treatment (incremental media) assigned within blocks of baseline revenue with known ; outcome revenue lift index.

# Interval for Y(0) of each TREATED geo  ->  ITE interval for that geo (ATT-type weights)
ctrl = df[df.T == 0]
tr, ca = split(ctrl, frac=0.75)
q_lo, q_hi = fit_quantiles(tr.X, tr.Y, 0.025, 0.975)          # any quantile learner
V = np.maximum(q_lo(ca.X) - ca.Y, ca.Y - q_hi(ca.X))          # CQR scores
w = lambda e: e / (1 - e)                                      # w0 for ATT-type target
for g in df[df.T == 1].itertuples():
    eta = weighted_conformal_qhat(V, w(ca.e), w(g.e), alpha=0.05)
    C0 = (q_lo(g.X) - eta, q_hi(g.X) + eta)
    ite_interval = (g.Y - C0[1], g.Y - C0[0])                  # exact 95% coverage: e is known

Here weighted_conformal_qhat is the routine in Conformal Prediction Under Covariate Shift. Because is set by design, the guarantee is finite-sample and needs no model for revenue. With 200 units the intervals will be wide — the honest price of an individual-level claim. Rolling up to an average effect is better served by randomization inference or a model-based estimator; the ITE intervals answer “which geos plausibly had positive lift?“.

Connections

See Also