Data-Driven Representations for Testing Independence: Modeling, Analysis and Connection with Mutual Information Estimation

Mauricio E. Gonzalez, Jorge F. Silva, Miguel Videla, Marcos E. Orchard · DOI

Introduction

Determining whether two random variables are independent is a fundamental challenge in statistics, with implications spanning signal processing, causal inference, and the development of fair machine learning models. Traditional non-parametric approaches typically rely on fixed-grid "binning" or kernel-based methods. However, these methods often struggle with the "curse of dimensionality" and fail to capture complex, non-linear dependencies unless the grid is extremely fine—a requirement that demands impractical amounts of data.

This paper introduces a novel framework for independence testing using Tree-Structured Partitions (TSP). By leveraging data-driven, adaptive representations, the authors bridge the gap between independence testing and mutual information (MI) estimation, creating a test that is both theoretically consistent and computationally efficient.

Methodology: The Tree-Structured Approach

The core of the proposed method is a Data-Driven Representation that adapts to the underlying structure of the data rather than relying on a rigid, pre-defined grid. The framework is built on three pillars:

1. Regret-Based Learning

Drawing from universal source coding theory, the authors frame the partition selection as a regret minimization problem. They compare the performance of their empirical test against an "oracle" test that possesses knowledge of the true distributions. The objective is to minimize the performance gap (regret) between the empirical and oracle scenarios.

2. Regularized Info-Max

The partition is optimized by maximizing empirical mutual information while applying a complexity penalty. This penalty is proportional to the number of nodes in the tree, acting as an explicit regularizer that prevents overfitting to random noise in finite samples.

3. The Two-Phase Algorithm

The TSP is constructed through a two-stage process:

  • Growing: The algorithm builds a deep tree by recursively splitting cells based on statistically equivalent intervals (using medians).
  • Pruning: The tree is then pruned to identify the optimal subtree that balances the estimated MI against the complexity penalty. This phase ensures the model remains parsimonious.

Structural Detection and the "Collapse" Property

A standout innovation of this research is the "zero regret regime." Most independence tests rely solely on a numerical threshold to reject the null hypothesis. In contrast, this method introduces a structural layer of detection.

The authors prove that under the null hypothesis (independence), the optimal data-driven partition is guaranteed to collapse into a "trivial partition"—a single cell covering the entire space—almost surely as the sample size grows. This means the model itself learns the absence of relationship by simplifying its own structure, providing a robust safeguard against false positives.

Theoretical and Empirical Results

Distribution-Free Consistency

The authors demonstrate that the TSP test is "strongly consistent" and "distribution-free" for any probability measure with a density. This ensures reliability across diverse data types without requiring prior assumptions about the distribution's shape.

Performance Benchmarks

The framework was evaluated against synthetic scenarios designed to test specific statistical challenges:

  • Gaussian Distributions: In multidimensional settings (up to $d=12$), the TSP approach consistently outperformed non-adaptive strategies like the $L_1$ test and Pearson $\chi^2$ test, achieving higher detection power with fewer samples.
  • Heavy-Tailed and Multi-Modal Data: Using $t$-student distributions and Gaussian mixtures, the authors showed that the adaptive nature of TSP allows it to locate data clusters more effectively than fixed grids, which often suffer from empty or under-sampled bins.

Computational Efficiency

The TSP approach is highly scalable. Both the growing and pruning phases operate with a complexity of $O(n \log^2 n)$, making it significantly faster than many kernel-based alternatives for large datasets.

Conclusion

By formalizing the connection between mutual information estimation and independence testing, this paper provides a flexible, data-driven alternative to classical methods. The "collapse" property offers a unique structural mechanism for detecting independence, while the use of tree-structured partitions mitigates the curse of dimensionality. Future work may extend these proofs to discrete or singular distributions and explore universal adaptivity to further refine finite-length performance.

Summary updated

BibTeX
@article{gonzalez2021data,
  author = {Mauricio E. Gonzalez and Jorge F. Silva and Miguel Videla and Marcos E. Orchard},
  title = {{Data-Driven Representations for Testing Independence: Modeling, Analysis and Connection with Mutual Information Estimation}},
  journal = {IEEE TSP},
  year = {2021},
  doi = {10.1109/tsp.2021.3135689},
}
Figure