Abstract
Testing for independence is a fundamental task in statistical analysis. Nonparametric distance-based methods, such as distance correlation, offer significant advantages over classical alternatives by detecting a wide range of dependencies. However, these methods typically suffer from a computational complexity of $O(n^2)$, where $n$ is the sample size, due to the requirement of computing all pairwise distances. While fast $O(n \log n)$ algorithms exist for univariate cases, multivariate data has remained computationally expensive. This paper introduces Randomly Projected Distance Covariance (RPDC), a method that utilizes random projections to transform multivariate independence tests into a series of univariate problems. RPDC achieves a computational complexity of $O(n K \log n)$ and memory requirements of $O(\max\{n, K\})$, where $K$ is the number of random projections. Numerical experiments demonstrate that RPDC maintains statistical power comparable to state-of-the-art methods while providing significant speedups for large datasets.
Introduction
In modern statistics, the ability to detect complex, non-linear relationships between variables is crucial. While Pearson’s correlation is a standard tool for linear dependence, it fails to capture more intricate associations. Nonparametric approaches like Distance Covariance (dCov) have emerged as the gold standard because they can detect any form of dependence between two random vectors, $X$ and $Y$.
Despite its theoretical elegance, dCov faces a significant "computational tax." The standard implementation requires calculating all pairwise distances between samples, leading to a quadratic complexity of $O(n^2)$. As datasets grow into the tens of thousands of samples, this bottleneck makes distance-based testing infeasible. This paper presents a solution to this challenge by leveraging the efficiency of univariate algorithms through a random projection framework.
The RPDC Methodology
The core innovation of Randomly Projected Distance Covariance (RPDC) lies in a mathematical identity: the distance covariance of two multivariate vectors is equivalent to the average distance covariance of their 1D projections across all possible directions. This insight, formalized in the paper's theoretical analysis (Lemma 4.2), allows the researchers to approximate a high-dimensional problem using a Monte Carlo approach.
The Algorithm
The RPDC procedure follows four primary steps:
- Random Projection: The multivariate data vectors $X$ and $Y$ are projected onto $K$ randomly chosen 1D directions.
- Univariate Computation: For each of the $K$ directions, the algorithm employs a fast $O(n \log n)$ univariate distance covariance algorithm.
- Aggregation: The results from the $K$ projections are averaged to produce a final estimate of the distance covariance.
- Statistical Testing: To determine significance, the method utilizes a Gamma distribution approximation or permutation testing to calculate p-values.
By transforming the problem, RPDC reduces the complexity from $O(n^2)$ to $O(n K \log n)$. Computational savings are realized whenever the number of projections $K$ satisfies $K < n / \log n$.
Experimental Results and Efficiency
The authors evaluated RPDC using various synthetic datasets designed to test both independent and dependent scenarios, including non-linear relationships and high-dimensional benchmarks (where dimensions $p$ and $q$ ranged from 10 to 1000).
Computational Speed
In simulations involving $n = 16,000$ samples, the standard $O(n^2)$ distance covariance method became practically infeasible due to time constraints. In contrast, RPDC completed the same test in approximately 3.7 seconds. The "break-even" point—where RPDC begins to outperform the direct method—actually improves as the dimensionality of the data increases, making it particularly suited for complex, high-dimensional datasets.
Statistical Power
Despite the approximation introduced by random projections, RPDC demonstrates statistical power comparable to the Hilbert-Schmidt Independence Criterion (HSIC) and the original dCov. The study found that $K = 50$ projections are often sufficient to capture the underlying dependency structure without a significant loss in power, provided the sample size is sufficiently large.
Discussion and Limitations
While RPDC offers a significant leap in efficiency, the authors note a specific limitation: low-dimensional dependencies within high-dimensional spaces. If two 1000-dimensional variables depend on each other through only a single sub-component, a random projection might fail to align with that specific direction, potentially leading to a decay in test power.
Future research may address this by incorporating dimensionality reduction techniques, such as Principal Component Analysis (PCA), as a preprocessing step. Additionally, the framework of random projections could be extended to other statistical measures, such as conditional distance correlation, to account for confounding variables.
Conclusion
Randomly Projected Distance Covariance (RPDC) bridges the gap between the theoretical robustness of distance-based independence tests and the practical requirements of big data analytics. By reducing the computational burden to $O(n K \log n)$, it enables researchers to apply powerful nonparametric tests to datasets that were previously too large to analyze efficiently.
Summary updated