Skip to main content
QUICK REVIEW

[Paper Review] DoWhy: Addressing Challenges in Expressing and Validating Causal Assumptions

Amit Sharma, Vasilis Syrgkanis|arXiv (Cornell University)|Aug 27, 2021
Advanced Causal Inference TechniquesMathematics41 references19 citations
TL;DR

DoWhy is a causal inference framework that formalizes causal assumptions through a causal graph and provides validation tests to assess their plausibility, addressing the critical gap in validating modeling assumptions before estimation. It enables transparent, auditable causal analysis by integrating assumption expression, identification, estimation, and validation in a structured pipeline, improving reliability in real-world applications where unobserved confounding or incorrect model structure can severely bias results.

ABSTRACT

Estimation of causal effects involves crucial assumptions about the data-generating process, such as directionality of effect, presence of instrumental variables or mediators, and whether all relevant confounders are observed. Violation of any of these assumptions leads to significant error in the effect estimate. However, unlike cross-validation for predictive models, there is no global validator method for a causal estimate. As a result, expressing different causal assumptions formally and validating them (to the extent possible) becomes critical for any analysis. We present DoWhy, a framework that allows explicit declaration of assumptions through a causal graph and provides multiple validation tests to check a subset of these assumptions. Our experience with DoWhy highlights a number of open questions for future research: developing new ways beyond causal graphs to express assumptions, the role of causal discovery in learning relevant parts of the graph, and developing validation tests that can better detect errors, both for average and conditional treatment effects. DoWhy is available at https://github.com/microsoft/dowhy.

Motivation & Objective

  • To address the lack of systematic methods for expressing and validating causal assumptions in real-world causal inference.
  • To reduce bias from unobserved confounders, incorrect confounder/marker assignments, and model misspecification in effect estimation.
  • To provide a structured, auditable pipeline for causal analysis that separates assumption specification from estimation.
  • To improve the reliability of causal estimates by enabling validation of assumptions prior to estimation.
  • To identify open research challenges in assumption elicitation, causal discovery integration, and robust validation testing.

Proposed method

  • Uses a causal graph (DAG) as the primary formalism to express assumptions about treatment, outcome, confounders, mediators, and instruments.
  • Implements a four-step API: model (define causal graph), identify (derive estimand), estimate (apply estimator), and validate (test assumptions via refutation and sensitivity methods).
  • Employs refutation tests (e.g., placebo intervention, replacement of treatment) to detect model misspecification and estimator bias.
  • Applies sensitivity analysis to quantify the impact of unobserved confounding on estimated effects.
  • Supports multiple estimators (e.g., IPW, regression, TMLE) and allows comparison across different causal models and identification strategies.
  • Integrates with causal discovery algorithms to infer partial graphs from data, while allowing domain experts to refine and correct them iteratively.

Experimental results

Research questions

  • RQ1How can causal assumptions be formally expressed and made transparent in a way that supports auditability and reproducibility?
  • RQ2What validation tests are most effective at detecting errors in modeling assumptions, such as incorrect confounder selection or unobserved confounding?
  • RQ3How can causal discovery algorithms be meaningfully integrated into the causal inference pipeline to support assumption elicitation?
  • RQ4What role do domain experts play in refining partially discovered causal graphs, and how can systems support this interaction?
  • RQ5Can validation tests be designed to guide estimator selection and improve robustness, similar to stress testing in machine learning?

Key findings

  • The DoWhy framework enables explicit, structured expression of causal assumptions via a causal graph, significantly improving transparency and auditability in causal analysis.
  • Refutation tests such as placebo treatment and replacement of treatment can detect model misspecification and estimator bias, even when standard confidence intervals appear valid.
  • Sensitivity analysis reveals that unobserved confounding can severely bias estimates, and the magnitude of this bias can be quantified when assumptions about confounder direction or strength are known.
  • The framework demonstrates that estimation methods with strong theoretical guarantees can still produce misleading results if the underlying causal model is incorrect, highlighting the need for pre-estimation validation.
  • Validation results vary across datasets, and failure of a refutation test on only one dataset among multiple observational sets raises concerns about data quality or model assumptions, suggesting the need for careful interpretation.
  • The integration of causal discovery with causal inference remains limited by untestable assumptions (e.g., faithfulness, Markov condition), and errors in discovery can propagate into downstream estimation, necessitating expert-in-the-loop refinement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.