Uncovering Bias Mechanisms in Observational Studies

İlker Demirel, Zeshan Hussain, Piersilvio De Bartolomeis, David Sontag · DOI

Abstract

Observational studies are a key resource for causal inference but are often affected by systematic biases. Prior work has focused mainly on detecting these biases, via sensitivity analyses and comparisons with randomized controlled trials, or mitigating them through debiasing techniques. However, there remains a lack of methodology for uncovering the underlying mechanisms driving these biases, e.g., whether due to hidden confounding or selection of participants. In this work, we show that the relationship between bias magnitude and the predictive performance of nuisance function estimators (in the observational study) can help distinguish among common sources of causal bias. We validate our methodology through extensive synthetic experiments and a real-world case study, demonstrating its effectiveness in revealing the mechanisms behind observed biases. Our framework offers a new lens for understanding and characterizing bias in observational studies, with practical implications for improving causal inference.

Introduction

Observational studies (OS), leveraging data from electronic health records or insurance claims, offer a cost-effective and representative alternative to Randomized Controlled Trials (RCTs). However, the lack of randomization introduces systematic biases that can lead to erroneous causal conclusions. While existing research provides methods to detect discrepancies between OS and RCT results or to mitigate known biases, identifying the specific causal mechanism—such as hidden confounding or selection bias—remains a significant challenge. Understanding the root cause is essential for researchers to refine study designs and select appropriate analytical adjustments.

Causal Mechanisms of Bias

The authors categorize systematic biases into four primary families based on their structural properties in a Directed Acyclic Graph (DAG):

  1. Transportability Bias: Differences in the distribution of effect modifiers between the OS and RCT populations.
  2. Confounding Bias: Unmeasured variables influencing both the treatment assignment and the outcome.
  3. Selection Bias Type 1: Factors influencing both the selection into the study and the treatment assignment.
  4. Selection Bias Type 2 (Collider Bias): Factors influencing both the selection into the study and the outcome.
Causal diagrams representing four common bias mechanisms: (a) Transportability, (b) Confounding, (c) Selection Type 1, and (d) Selection Type 2.

Methodology: Variance as a Diagnostic Signal

The core innovation of this work is the use of predictive uncertainty in machine learning models (nuisance functions) to diagnose bias. The method follows a three-step process:

  1. Bias Estimation: Using a reference RCT, the true Conditional Average Treatment Effect (CATE) is estimated. The "bias function" is calculated as the difference between the OS-estimated CATE and the RCT-derived ground truth.
  2. Nuisance Function Training: Models are trained on OS data to predict selection ($S$), treatment ($A$), and outcome ($Y$).
  3. Covariance Analysis: The method calculates the covariance between the bias magnitude and the predictive variance (uncertainty) of these models across patient subgroups.

This approach exploits "contextual independence"—the idea that unmeasured variables influence clinical decisions differently across subgroups. These unmeasured factors leave distinct "footprints" of variance in the predictive models. By analyzing the covariance signals for $S$, $A$, and $Y$, the framework generates a unique signature, or "hash table," to identify the specific bias family.

Key Results

The methodology was validated using both synthetic datasets and the Women’s Health Initiative (WHI) dataset.

Synthetic Validation

In controlled experiments, the covariance estimators consistently identified the correct bias mechanisms. For instance, under confounding bias, the method flagged positive correlations between bias magnitude and the variance of treatment ($A$) and outcome ($Y$) in over 91% of trials.

Covariance signatures across different bias types, demonstrating how the relationship between bias magnitude and model uncertainty identifies the underlying mechanism.

Real-World Case Study: WHI

The WHI dataset is a landmark case where an OS initially suggested protective effects of hormone therapy, which an RCT later refuted. The proposed method successfully diagnosed the OS as suffering from Type 2 Selection Bias, aligning with historical consensus. Furthermore, after applying standard corrections for selection bias, the method detected a residual signal in outcome variance ($ρ(b_1, Y)$), correctly identifying a lingering transportability bias that had previously gone unnoticed.

Conclusion

This framework shifts the focus from merely detecting bias to understanding its structural origins. By leveraging the predictive uncertainty of machine learning models, researchers can now distinguish between confounding, selection, and transportability issues. This diagnostic capability is a crucial step toward more robust and interpretable causal inference in observational research.

Summary updated

BibTeX
@inproceedings{demirel2026uncovering,
  author = {İlker Demirel and Zeshan Hussain and Piersilvio De Bartolomeis and David Sontag},
  title = {{Uncovering Bias Mechanisms in Observational Studies}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=072o1IbwJi},
}
Figure