Identifying Cause and Effect on Discrete Data using Additive Noise Models

Jonas Peters, Dominik Janzing, Bernhard Schölkopf

Abstract

Distinguishing correlation from causation is a foundational challenge in statistics. While constraint-based methods like the PC algorithm are widely used, they often fail to distinguish between $X \to Y$ and $Y \to X$ because both directions imply the same conditional independencies. This paper extends the Additive Noise Model (ANM) framework to discrete variables, providing a theoretically grounded method to determine causal direction in discrete spaces. The authors prove that for discrete data, the causal direction is identifiable because a model fitting in one direction almost never fits in the reverse, allowing for robust causal discovery from observational data.

Introduction

A fundamental challenge in machine learning is distinguishing correlation from causation. Standard methods often reach a stalemate when comparing $X \to Y$ and $Y \to X$. While recent breakthroughs used Additive Noise Models to solve this for continuous variables, much of the world’s data is discrete (e.g., counts, categories, or binned measurements). Prior to this work, there was no robust way to apply the ANM framework to discrete spaces to determine which variable is the cause and which is the effect.

The Discrete Additive Noise Model

The authors propose a discrete version of the Additive Noise Model defined by: $$Y = f(X) + N, \quad N \perp \! \! \! \perp X$$ where $X, Y,$ and $N$ take integer values, and the noise $N$ is independent of the cause $X$. The core principle of causal inference here is asymmetry: if the data admits an ANM in the direction $X \to Y$ but not in the direction $Y \to X$, we infer that $X$ causes $Y$.

A joint distribution of discrete variables $X$ and $Y$ illustrating a functional relationship with additive noise.

To find the function $f$, the authors developed a Discrete Regression with Dependence Minimization algorithm. Since the space of possible discrete functions is combinatorially explosive, the algorithm uses coordinate descent to find function values that maximize the independence between the regressor $X$ and the residuals $E = Y - f(X)$. Independence is formally assessed using a standard $\chi^2$ (Chi-squared) test.

Theoretical Identifiability and the "Asymmetry of Corners"

A key contribution of this work is the proof that causal direction is "identifiable" in the discrete case. The authors demonstrate that "reversible" cases—where an ANM fits in both directions—are "non-generic," meaning they require extremely specific parameter fine-tuning unlikely to occur in nature.

One intuitive insight is the "asymmetry of corners." In a causal model, the distribution of the effect is constrained by the cause plus independent noise. When attempting to fit a model in the reverse direction, the support (the set of possible values) of the hypothetical noise typically ends up depending on the hypothetical cause, violating the independence assumption. This structural asymmetry allows the algorithm to distinguish cause from effect even with limited data.

Experimental Evaluation

The method was evaluated on synthetic data and real-world datasets, including the UCI Abalone dataset and local temperature records.

Synthetic Results

Testing on 1,000 models with various distributions (Binomial, Poisson, Geometric, etc.) showed that the algorithm correctly identifies the causal direction in approximately 90% of cases. When the model is unsure, it typically reports an "indecisive" result (bad fit in both directions) rather than an incorrect one.

Proportion of correctly vs. wrongly identified causal directions across different model parameters.

Real-World Applications

  • Abalone Dataset: The model correctly identified that biological Sex causes physical measurements (Length, Diameter, Height), matching ground truth.
  • Temperature Dataset: The model correctly identified Month $\to$ Temperature. Interestingly, while real-world noise is complex, the $p$-values for the correct direction remained significantly higher than the reverse as sample sizes increased, providing a clear heuristic for the true cause.

Conclusion and Future Work

This work successfully extends ANMs to the discrete domain, offering a robust tool for causal discovery. While the current heuristic search is efficient, scaling to multivariate Directed Acyclic Graphs (DAGs) remains a challenge. Future research may also address the impact of hidden common causes and potential artifacts introduced when discretizing continuous data.

Summary updated

BibTeX
@article{peters2010identifying,
  author = {Jonas Peters and Dominik Janzing and Bernhard Schölkopf},
  title = {{Identifying Cause and Effect on Discrete Data using Additive Noise Models}},
  journal = {AISTATS},
  year = {2010},
}
Figure