# DoWhy-GCM: An extension of DoWhy for causal inference in graphical causal models

arXiv: https://arxiv.org/abs/2206.06821 · HTML: https://mlsanity.com/paper/2206.06821/

## Key facts

- Cited by 41 papers in the map (data through 14 Oct 2026).
- Builds on 9 of its 29 references that are in the map.
- First posted on arXiv 14 Jun 2022.

## Builds on (most cited first, 9 of 9)

- [A Unified Approach to Interpreting Model Predictions](https://mlsanity.com/paper/1705.07874/) (2017)
- [Explaining Machine Learning Classifiers through Diverse Counterfactual Explanations](https://mlsanity.com/paper/1905.07697/) (2019)
- [Feature relevance quantification in explainable AI: A causal problem](https://mlsanity.com/paper/1910.13413/) (2019)
- [DoWhy: An End-to-End Library for Causal Inference](https://mlsanity.com/paper/2011.04216/) (2020)
- [CausalML: Python Package for Causal Machine Learning](https://mlsanity.com/paper/2002.11631/) (2020)
- [Causal structure based root cause analysis of outliers](https://mlsanity.com/paper/1912.02724/) (2019)
- [Causal Discovery Toolbox: Uncover causal relationships in Python](https://mlsanity.com/paper/1903.02278/) (2019)
- [Why did the distribution change?](https://mlsanity.com/paper/2102.13384/) (2021)
- [Quantifying intrinsic causal contributions via structure preserving interventions](https://mlsanity.com/paper/2007.00714/) (2020)

## Built on by (most cited first, 30 of 41)

- [Do-PFN: In-Context Learning for Causal Effect Estimation](https://mlsanity.com/paper/2506.06039/) (2025)
- [Modeling Causal Mechanisms with Diffusion Models for Interventional and Counterfactual Queries](https://mlsanity.com/paper/2302.00860/) (2023)
- [pgmpy: A Python Toolkit for Bayesian Networks](https://mlsanity.com/paper/2304.08639/) (2023)
- [Cloud Atlas: Efficient Fault Localization for Cloud Systems using Language Models and Causal Insight](https://mlsanity.com/paper/2407.08694/) (2024)
- [Toward Falsifying Causal Graphs Using a Permutation-Based Test](https://mlsanity.com/paper/2305.09565/) (2023)
- [Causality for Tabular Data Synthesis: A High-Order Structure Causal Benchmark Framework](https://mlsanity.com/paper/2406.08311/) (2024)
- [DeCaFlow: A deconfounding causal generative model](https://mlsanity.com/paper/2503.15114/) (2025)
- [A Fixed-Point Approach for Causal Generative Modeling](https://mlsanity.com/paper/2404.06969/) (2024)
- [Dataflow graphs as complete causal graphs](https://mlsanity.com/paper/2303.09552/) (2023)
- [Reinterpreting causal discovery as the task of predicting unobserved joint statistics](https://mlsanity.com/paper/2305.06894/) (2023)
- [Amortized Inference of Causal Models via Conditional Fixed-Point Iterations](https://mlsanity.com/paper/2410.06128/) (2024)
- [Root Cause Analysis of Outliers in Unknown Cyclic Graphs](https://mlsanity.com/paper/2510.06995/) (2025)
- [Improving the Generation and Evaluation of Synthetic Data for Downstream Medical Causal Inference](https://mlsanity.com/paper/2510.18768/) (2025)
- [Causal Dependence Plots](https://mlsanity.com/paper/2303.04209/) (2023)
- [Root Cause Explanation of Outliers under Noisy Mechanisms](https://mlsanity.com/paper/2312.11818/) (2023)
- [Multiply-Robust Causal Change Attribution](https://mlsanity.com/paper/2404.08839/) (2024)
- [Causal-discovery-based root-cause analysis and its application in time-series prediction error diagnosis](https://mlsanity.com/paper/2411.06990/) (2024)
- [ProRCA: A Causal Python Package for Actionable Root Cause Analysis in Real-world Business Scenarios](https://mlsanity.com/paper/2503.01475/) (2025)
- [FoundCause: Causal Discovery with Latent Confounders from Observational Data](https://mlsanity.com/paper/2606.17516/) (2026)
- [Beyond Single-Feature Importance with ICECREAM](https://mlsanity.com/paper/2307.09779/) (2023)
- [Causality for Earth Science -- A Review on Time-series and Spatiotemporal Causality Methods](https://mlsanity.com/paper/2404.05746/) (2024)
- [A Causal Foundation Model for Structure and Outcome Prediction](https://mlsanity.com/paper/2606.26467/) (2026)
- [Reasoning-Based Software Testing](https://mlsanity.com/paper/2303.01302/) (2023)
- [Causal fault localisation in dataflow systems](https://mlsanity.com/paper/2304.11987/) (2023)
- [Towards Automated Causal Discovery: a case study on 5G telecommunication data](https://mlsanity.com/paper/2402.14481/) (2024)
- [ORCA: ORchestrating Causal Agent](https://mlsanity.com/paper/2508.21304/) (2025)
- [Effect-Level Validation for Causal Discovery](https://mlsanity.com/paper/2602.08340/) (2026)
- [A Computational Theory for Efficient Mini Agent Evaluation with Causal Guarantees](https://mlsanity.com/paper/2503.21138/) (2025)
- [On Measuring Intrinsic Causal Attributions in Deep Neural Networks](https://mlsanity.com/paper/2505.09660/) (2025)
- [Evaluating and Learning Robust Bandit Policies Under Uncertain Causal Mechanisms](https://mlsanity.com/paper/2508.02812/) (2025)

## Abstract (arXiv)

We present DoWhy-GCM, an extension of the DoWhy Python library, which leverages graphical causal models. Unlike existing causality libraries, which mainly focus on effect estimation, DoWhy-GCM addresses diverse causal queries, such as identifying the root causes of outliers and distributional changes, attributing causal influences to the data generating process of each node, or diagnosis of causal structures. With DoWhy-GCM, users typically specify cause-effect relations via a causal graph, fit causal mechanisms, and pose causal queries -- all with just a few lines of code. The general documentation is available at https://www.pywhy.org/dowhy and the DoWhy-GCM specific code at https://github.com/py-why/dowhy/tree/main/dowhy/gcm.
