# Simulating counterfactuals

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

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 22 of its 58 references that are in the map.
- First posted on arXiv 27 Jun 2023.

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

- [XGBoost: A Scalable Tree Boosting System](https://mlsanity.com/paper/1603.02754/) (2016)
- [A Survey on Bias and Fairness in Machine Learning](https://mlsanity.com/paper/1908.09635/) (2019)
- [Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPR](https://mlsanity.com/paper/1711.00399/) (2017)
- [Counterfactual Fairness](https://mlsanity.com/paper/1703.06856/) (2017)
- [Fairness in Machine Learning: A Survey](https://mlsanity.com/paper/2010.04053/) (2020)
- [Algorithmic Recourse: from Counterfactual Explanations to Interventions](https://mlsanity.com/paper/2002.06278/) (2020)
- [A Survey on the Explainability of Supervised Machine Learning](https://mlsanity.com/paper/2011.07876/) (2020)
- [Path-Specific Counterfactual Fairness](https://mlsanity.com/paper/1802.08139/) (2018)
- [Fair Inference On Outcomes](https://mlsanity.com/paper/1705.10378/) (2017)
- [Fairlearn: Assessing and Improving Fairness of AI Systems](https://mlsanity.com/paper/2303.16626/) (2023)
- [PC-Fairness: A Unified Framework for Measuring Causality-based Fairness](https://mlsanity.com/paper/1910.12586/) (2019)
- [Socially Responsible AI Algorithms: Issues, Purposes, and Challenges](https://mlsanity.com/paper/2101.02032/) (2021)
- [Causal normalizing flows: from theory to practice](https://mlsanity.com/paper/2306.05415/) (2023)
- [Nested Counterfactual Identification from Arbitrary Surrogate Experiments](https://mlsanity.com/paper/2107.03190/) (2021)
- [Counterfactual harm](https://mlsanity.com/paper/2204.12993/) (2022)
- [Clustering and Structural Robustness in Causal Diagrams](https://mlsanity.com/paper/2111.04513/) (2021)
- [Fighting Sample Degeneracy and Impoverishment in Particle Filters: A Review of Intelligent Approaches](https://mlsanity.com/paper/1308.2443/) (2013)
- [Enhancing Identification of Causal Effects by Pruning](https://mlsanity.com/paper/1806.07085/) (2018)
- [On resampling schemes for particle filters with weakly informative observations](https://mlsanity.com/paper/2203.10037/) (2022)
- [Conditional particle filters with bridge backward sampling](https://mlsanity.com/paper/2205.13898/) (2022)
- [Identifying Counterfactual Queries with the R Package cfid](https://mlsanity.com/paper/2210.14745/) (2022)
- [Convergence of random-weight sequential Monte Carlo methods](https://mlsanity.com/paper/2208.12108/) (2022)

## Built on by (most cited first, 1 of 1)

- [Clustering and Pruning in Causal Data Fusion](https://mlsanity.com/paper/2505.15215/) (2025)

## Abstract (arXiv)

Counterfactual inference considers a hypothetical intervention in a parallel world that shares some evidence with the factual world. If the evidence specifies a conditional distribution on a manifold, counterfactuals may be analytically intractable. We present an algorithm for simulating values from a counterfactual distribution where conditions can be set on both discrete and continuous variables. We show that the proposed algorithm can be presented as a particle filter leading to asymptotically valid inference. The algorithm is applied to fairness analysis in credit-scoring.
