Introduction
Testing for independence between high-dimensional variables is a cornerstone of statistical analysis. While classical methods like Pearson’s correlation are computationally efficient, they are limited to detecting linear relationships. Distance Covariance (dCov) has emerged as a powerful alternative capable of detecting any form of dependence. However, dCov suffers from a significant computational bottleneck: its $O(n^2)$ complexity makes it impractical for large-scale datasets. This paper introduces Randomly Projected Distance Covariance (RPDC), a method that achieves $O(n \log n)$ efficiency for multivariate data by leveraging random projections and fast univariate algorithms.
Methodology: Randomly Projected Distance Covariance
The RPDC framework bridges the gap between the flexibility of multivariate distance covariance and the speed of univariate tests. The approach is rooted in the mathematical observation that multivariate distance covariance can be represented as an integral of univariate distance covariances across all possible one-dimensional projections.
To implement this efficiently, the authors employ a Monte Carlo approximation:
- Projection: Multivariate sets $X$ and $Y$ are projected onto 1D spaces using $K$ random unit vectors.
- Univariate Computation: For each projection, the existing $O(n \log n)$ fast algorithm for univariate distance covariance is applied.
- Aggregation: The results from the $K$ projections are averaged to provide a robust estimate of the total distance covariance.
Furthermore, the authors replace traditional, computationally expensive permutation tests with a refined hypothesis testing framework. By demonstrating that the test statistic follows a Gamma distribution, p-values can be calculated significantly faster, further reducing the "computational tax" of independence testing.
Experimental Design and Datasets
The efficacy of RPDC was evaluated using a suite of synthetic datasets designed to test various dependency structures:
- Null Hypothesis (Independence): Ensuring the test maintains a controlled Type-I error rate.
- Non-linear Dependencies: Testing quadratic and logarithmic relationships.
- Subspace Dependencies: Scenarios where relationships exist only within a low-dimensional subspace of a high-dimensional environment.
- Temporal Dynamics: Evaluating performance on time-varying dependencies.
Key Findings and Results
The study highlights several critical advantages of the RPDC approach:
- Computational Efficiency: In benchmarks with $n=8,000$, RPDC completed in 1.8 seconds compared to 7.2 seconds for the direct dCov method. At $n=16,000$, the direct method became computationally infeasible due to memory constraints, while RPDC scaled gracefully, finishing in approximately 3.7 seconds.
- Memory Footprint: RPDC reduces memory requirements to $O(\max\{n, K\})$, a substantial improvement over the $O(n^2)$ requirement of standard dCov.
- Statistical Power: Empirical results show that $K=50$ projections are typically sufficient to match the statistical power of the full multivariate test. RPDC consistently outperformed linear tests like Wilks' Lambda and remained competitive with state-of-the-art kernel methods such as the Hilbert-Schmidt Independence Criterion (HSIC).
Discussion and Future Directions
While RPDC offers a significant leap in efficiency, it faces challenges in "needle in a haystack" scenarios where dependencies are confined to very small subspaces of high-dimensional data. In such cases, the probability of a random projection capturing the dependency decreases as the dimensionality grows.
Future research directions include integrating dimensionality reduction techniques (e.g., PCA) as a preprocessing step to concentrate dependencies before projection. Additionally, the authors suggest extending the RPDC framework to conditional independence testing, which would broaden its applicability in causal inference and complex system modeling.
Summary updated