Causal Inference with Non-IID Data using Linear Graphical Models

Chi Zhang, Karthika Mohan, Judea PearlNeurIPS 2022

Traditional causal inference relies heavily on the assumption that data points are independent and identically distributed (IID). In the real world, however, units frequently interact—consider how one person’s vaccination status affects their neighbor's health, or how students studying together influence each other's grades. This paper provides a formal framework using linear graphical models to quantify the "interaction bias" that arises when these dependencies are ignored. Furthermore, it introduces an algorithm to recover unbiased causal effects by strategically selecting subsets of data.

The Problem: Beyond the IID Assumption

Most causal inference tools assume that every unit in a study is an isolated island, unaffected by the treatment or outcomes of others. In fields like social science, epidemiology, and economics, this is rarely true. This violation is often called interference or a breach of the Stable Unit Treatment Value Assumption (SUTVA).

If researchers ignore these interactions—for example, estimating the effect of a vaccine on a population where people are constantly infecting one another—the resulting estimates will be biased. The authors tackle three main challenges:

  1. How do we formally model complex interactions between units?
  2. Can we quantify exactly how much bias these interactions introduce into standard estimates?
  3. How can we calculate the "True Average Causal Effect" (TACE)—the effect as if units were isolated—using data that is inherently messy and connected?

Methodology: Modeling Interaction Networks

To address these challenges, the authors move beyond "generic" causal graphs (where a single node represents a variable for the entire population) to Interaction Networks. In these expanded graphs, every individual unit has its own set of explicit variables (e.g., $X_1, Y_1, X_2, Y_2$), allowing cross-unit edges to represent interference.

Comparison of a generic causal graph and an expanded interaction network modeling interference between units.

Key methodological contributions include:

  • Balanced Interaction Models: A framework assuming that every unit shares the same internal causal logic (e.g., the biological mechanism of a drug is the same for everyone) even if they interact with others externally.
  • Bias Categorization: The authors identify specific network structures that break causal estimates:
  • Deflecting Bias: A path from one unit's treatment ($X_j$) to another unit's outcome ($Y_i$).
  • Reflecting Bias: A path where unit $i$ affects unit $j$, which then "reflects" back to affect unit $i$’s outcome.
  • The Debiasing Algorithm: Instead of trying to model every single interaction perfectly, the authors propose a "bias-free subset" approach. They developed a polynomial-time algorithm that selects a subset of samples guaranteed to be free of these biasing structures, allowing for unbiased estimation using standard linear regression.

Key Insights: Quantifying and Eliminating Bias

A major insight of this work is that bias is predictable. The authors derive a closed-form equation (Theorem 1) that calculates interaction bias based on path coefficients. This allows researchers to estimate whether the bias in their study is likely to be negligible or severe.

Crucially, the paper demonstrates that IID data is not required for unbiasedness. You do not need a perfectly independent dataset to get an unbiased result; you only need a bias-free subset. Even if the units in your subset are still correlated (non-IID), the estimate remains valid as long as they do not exhibit specific deflecting or reflecting structures.

Examples of interaction structures that satisfy (a) and violate (b) the conditions necessary for unbiased estimation.

Results: Simulations and Case Studies

The paper relies on two primary forms of evaluation to validate its claims:

  1. Synthetic Simulations: The authors randomly generated thousands of interaction networks with varying numbers of units ($n$) and connection strengths. Simulations confirmed that as the number of units increases, the overall interaction bias tends to decrease (at a rate of roughly $1/n$), provided the number of interaction structures remains constant.
  2. Tutoring Case Study: A simulated dataset of 500 students modeled "tutoring time" (treatment), "grades" (outcome), and "understanding" (mediator). It simulated real-world non-IID behavior, such as students helping each other (interference) and peer reviews boosting the grades of those who helped (reflecting bias).

In the student simulation, a naive regression that ignored interactions estimated a massive causal effect of 194.11, while the true effect (TACE) was only 2.0. By applying their debiasing method, the authors recovered an estimate of 1.963, effectively eliminating the bias. The algorithm successfully found usable subsets (e.g., 76 students out of 500) that were large enough to provide stable estimates while remaining "clean" of interactions.

Limitations and Future Directions

While powerful, the proposed framework has limitations:

  • Linearity: The current method is strictly limited to linear models. Real-world interactions, such as viral spread, are often highly non-linear and would require more complex mathematics to quantify.
  • Known Graph Structure: The method assumes researchers either know the interaction network or can approximate it. In many social settings, the exact "who-affected-whom" graph is unknown.
  • Variance Trade-off: There is an inherent trade-off in the debiasing approach. By picking a smaller "bias-free" subset, researchers eliminate bias but increase the variance (uncertainty) of their estimate. Quantifying and optimizing this trade-off remains a key direction for future research.

Summary updated

BibTeX
@inproceedings{zhang2022causal,
  author = {Chi Zhang and Karthika Mohan and Judea Pearl},
  title = {{Causal Inference with Non-IID Data using Linear Graphical Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=XlUjD6s9YX},
}
Figure