An Automated Approach to Causal Inference in Discrete Settings

Guilherme Duarte, Noam Finkelstein, Dean Knox, Jonathan Mummolo, Ilya Shpitser

TL;DR

This paper introduces a generalized, automated framework for bounding causal effects in discrete settings, even when those effects are not point-identifiable due to unobserved confounding or selection bias. By reformulating causal inference as a linear programming (LP) problem over "response functions," the authors provide a scalable way to derive sharp (optimal) bounds for complex causal graphs that were previously mathematically intractable.

What Problem Does This Paper Address?

In causal inference, we often want to know the effect of an intervention (e.g., "Does this policy reduce crime?") using only observational data. Traditionally, researchers rely on identification: finding a mathematical formula that maps observed probabilities to a causal effect. However, in many real-world scenarios—especially those involving unobserved "lurking" variables, measurement error, or non-random selection—the effect is non-identifiable. In these cases, we cannot calculate a single number; we can only determine a range (bounds) within which the true effect must lie.

Deriving these bounds manually is incredibly difficult. It requires sophisticated algebraic manipulation of the "do-calculus" or potential outcomes framework, and for complex graphs, it is often impossible for humans to find the "sharpest" (tightest) possible bounds. Existing automated tools are often limited to specific types of graphs or require restrictive parametric assumptions (like assuming everything follows a normal distribution). This paper addresses the need for a general-purpose, automated tool for discrete (categorical) data.

Methods

The authors leverage a classic but computationally challenging idea: the Response Function framework.

  1. Response Functions: Every discrete variable in a causal graph can be viewed as a deterministic function of its parents and some exogenous noise. In a discrete world, there are only a finite number of such functions.
  2. Linear Programming (LP): The authors show that the relationship between the observed data distribution and the causal query (the "target") can be expressed as a set of linear constraints. The variables in this LP are the probabilities of different "types" of individuals (defined by their response functions).
  3. Optimization: To find the bounds, the system simply minimizes and maximizes the causal query subject to the constraints imposed by the observed data and the structure of the Directed Acyclic Graph (DAG).
  4. Automation: The core contribution is an algorithm that automatically constructs this LP from a user-defined DAG and a causal query, handling complex issues like latent variables and selection bias without requiring the user to do any math.

Datasets

The paper primarily evaluates the method using:

  • Synthetic Benchmarks: Classic causal structures like the "Instrumental Variable" (IV) graph and the "Front-door" graph with added confounding. These are used to prove the method recovers known theoretical bounds.
  • Criminology Case Studies: Given the publication in CrimRxiv, the authors apply the method to scenarios relevant to social science, such as estimating the effect of police interventions where unobserved factors (like neighborhood "vibe" or individual officer temperament) might confound the results.
  • Comparison to Existing Software: They compare their results against existing packages like dagitty or CausalQueries, demonstrating that their method provides tighter bounds in non-identifiable settings.

Key Insights and Ideas

  • The "Geometry" of Causality: The paper treats causal inference as a geometric problem. The set of all possible causal effects forms a "polytope" (a high-dimensional shape). Observed data provides "slices" through this shape. The bounds are simply the extreme points of the intersection of these shapes.
  • No Parametric Assumptions: Unlike many machine learning approaches to causality, this method is non-parametric. It doesn't assume "linearity" or "additivity." If the data is discrete, the bounds are valid regardless of the underlying functional forms.
  • Handling Selection Bias: A major "aha" moment is the realization that selection bias (where you only see data for a non-random subset of the population) can be treated as just another node in the graph with its own response functions, allowing it to be integrated into the same LP framework.
  • Sharpness: The authors emphasize that their bounds are "sharp," meaning they use all the information available in the DAG and the data. You cannot get narrower bounds without making more assumptions.

Key Results

  • Discovery of New Bounds: The automated approach discovered bounds for complex graphs that had never been derived in the literature, proving that human intuition has been a bottleneck in causal analysis.
  • Computational Efficiency: While the number of response functions grows exponentially with the number of parents a variable has, the authors demonstrate that for most practical social science DAGs, modern LP solvers (like Gurobi or Mosek) can find solutions in seconds or minutes.
  • Software Implementation: The authors released the autobounds package (available in R and Python), making these complex derivations accessible to practitioners who are not experts in causal algebra.

Limitations and Future Work

  • The Curse of Dimensionality: The primary limitation is the "state-space explosion." If a variable has many parents or many possible categories (e.g., a variable with 10 levels), the number of response functions becomes too large for standard LP solvers.
  • Continuous Variables: Currently, the method is strictly for discrete data. While continuous data can be discretized (binned), this can lead to a loss of information or "coarsening" error.
  • Sample Uncertainty: The current framework assumes we know the true observed probabilities. In reality, we have finite samples with statistical noise. Integrating frequentist or Bayesian uncertainty (confidence intervals) into the LP bounds is a suggested area for future research.

Summary updated

BibTeX
@article{duarte2023automated,
  author = {Guilherme Duarte and Noam Finkelstein and Dean Knox and Jonathan Mummolo and Ilya Shpitser},
  title = {{An Automated Approach to Causal Inference in Discrete Settings}},
  journal = {Journal of the American Statistical Association},
  year = {2023},
  doi = {10.1080/01621459.2023.2216909},
}
Figure