To Impute or not to Impute? Missing Data in Treatment Effect Estimation

Jeroen Berrevoets, Fergus Imrie, Trent Kyono, James Jordon, Mihaela van der Schaar

Introduction

In the standard machine learning pipeline, missing data is typically treated as a nuisance—a hurdle to be cleared via imputation before a model can be trained. However, when the objective shifts from prediction to Treatment Effect Estimation (causal inference), the traditional rules of data cleaning no longer apply. A recent paper from AISTATS 2023 demonstrates that naively filling in every gap in a dataset can inadvertently destroy the causal evidence necessary for unbiased estimation.

The Problem: The Causal Nature of Missingness

Standard missing data theories (MCAR, MAR, MNAR) were primarily developed for predictive tasks where the goal is to minimize error on an outcome $Y$. In causal inference, we introduce a treatment variable $W$, which creates a complex web of dependencies. The authors identify a fundamental tension:

  1. The Risk of Over-Imputation: If a doctor chooses a specific treatment because a patient's test result is missing, that missingness is a confounder. Imputing the missing value erases the evidence of the doctor's decision-making process, leading to selection bias.
  2. The Risk of Under-Imputation: Conversely, if a treatment (like a specific surgery) is the reason a follow-up test is performed, the treatment causes the data availability. In this case, failing to account for the missingness mechanism can lead to information loss and bias.

The Mixed Confounded Missingness (MCM) Framework

To resolve this, the authors introduce Mixed Confounded Missingness (MCM). This framework uses Directed Acyclic Graphs (DAGs) to explicitly model how missingness indicators ($Z$) interact with treatments ($W$) and outcomes ($Y$).

Comparison of missingness mechanisms: (a) Ignorability, (b) MCAR, (c) M(N)AR, and (d) the proposed Mixed Confounded Missingness (MCM).

The MCM framework splits missingness into two distinct causal directions:

  • $Z^\rightarrow$ (Missingness causing treatment): This is "informative" missingness where the lack of data influenced the treatment decision.
  • $^\rightarrow Z$ (Treatment causing missingness): This is "consequence" missingness where the treatment choice determined whether a variable was measured.

Selective Imputation: A Causal Solution

The paper's primary contribution is the Selective Imputation strategy (Theorem 4.1). The authors prove that to achieve unbiased treatment effects, researchers must treat these two types of missingness differently.

Causal paths within the MCM framework illustrating the interaction between missingness indicators and treatment.

Under this strategy, variables where missingness is caused by the treatment ($^\rightarrow X$) should be imputed. This prevents the missingness indicator from acting as a "collider" that introduces bias when conditioned upon. However, for variables where missingness influenced the treatment ($X^\rightarrow$), the missingness should be preserved as a distinct value (e.g., using a missingness indicator). This ensures the model can adjust for the confounding signal that the missingness represents.

Experimental Validation

The researchers evaluated Selective Imputation against "Impute All" and "Impute Nothing" baselines using three popular causal learners: the T-learner, Doubly Robust (DR) learner, and X-learner.

  • Synthetic Datasets: In controlled environments with 10,000 samples, Selective Imputation achieved an MSE of 0.0309 (X-learner), significantly outperforming "Impute All" (0.0472) and "Impute Nothing" (0.0726).
  • Twins Dataset: Using a real-world benchmark of twin births, the authors simulated MCM conditions. Selective Imputation consistently yielded the lowest error in estimating the Average Treatment Effect (ATE) and Conditional Average Treatment Effect (CATE), often by orders of magnitude in heterogeneous effect scenarios.

Key Insights and Limitations

The central "Aha!" moment of the paper is the shift in perspective: missing data is not just a data quality issue; it is a causal variable. Just as one would not "impute away" a patient's age or gender, one should not always impute away the fact that a specific medical test was never ordered.

However, the method has limitations. It currently requires researchers to possess the domain knowledge necessary to categorize variables into $Z^\rightarrow$ or $^\rightarrow Z$. Future research is directed toward developing "causal discovery" algorithms that can automatically detect these MCM structures from observational data, as well as extending the framework to continuous treatment variables.

Summary updated

BibTeX
@inproceedings{berrevoets2023impute,
  author = {Jeroen Berrevoets and Fergus Imrie and Trent Kyono and James Jordon and Mihaela van der Schaar},
  title = {{To Impute or not to Impute? Missing Data in Treatment Effect Estimation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure