A fast algorithm for computing distance correlation
Not on the map. Why?
Abstract (arXiv)
Classical dependence measures such as Pearson correlation, Spearman's ρ, and Kendall's τ can detect only monotonic or linear dependence. To overcome these limitations, Szekely et al.(2007) proposed distance covariance as a weighted L2 distance between the joint characteristic function and the product of marginal distributions. The distance covariance is 0 if and only if two random vectors X and Y are independent. This measure has the power to detect the presence of a dependence structure when the sample size is large enough. They further showed that the sample distance covariance can be calculated simply from modified Euclidean distances, which typically requires O(n2) cost. The quadratic computing time greatly limits the application of distance covariance to large data. In this paper, we present a simple exact O(nlog(n)) algorithm to calculate the sample distance covariance between two univariate random variables. The proposed method essentially consists of two sorting steps, so it is easy to implement. Empirical results show that the proposed algorithm is significantly faster than state-of-the-art methods. The algorithm's speed will enable researchers to explore complicated dependence structures in large datasets.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 Oct 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 4; 2023: 1; 2024: 0; 2025: 1.
8 papers.
- 2022Label Leakage and Protection from Forward Embedding in Vertical Federated Learningcited by 27
- 2021Defending against Reconstruction Attack in Vertical Federated Learningcited by 20
- 2022IoT Data Analytics in Dynamic Environments: From An Automated Machine Learning Perspectivecited by 16
- 2022Early Detection of Ovarian Cancer by Wavelet Analysis of Protein Mass Spectracited by 2
- 2021Private measurement of nonlinear correlations between data hosted across multiple partiescited by 1
- 2022Measuring Statistical Dependencies via Maximum Norm and Characteristic Functionscited by 1
- 2023TSLiNGAM: DirectLiNGAM under heavy tailscited by 0
- 2025Explaining Categorical Feature Interactions Using Graph Covariance and LLMscited by 0
- 2025Explaining Categorical Feature Interactions Using Graph Covariance and LLMs24 Jan 2025
- 2023TSLiNGAM: DirectLiNGAM under heavy tails10 Aug 2023
- 2022IoT Data Analytics in Dynamic Environments: From An Automated Machine Learning Perspective16 Sep 2022
- 2022Measuring Statistical Dependencies via Maximum Norm and Characteristic Functions16 Aug 2022
- 2022Early Detection of Ovarian Cancer by Wavelet Analysis of Protein Mass Spectra14 Jul 2022
- 2022Label Leakage and Protection from Forward Embedding in Vertical Federated Learning2 Mar 2022
- 2021Private measurement of nonlinear correlations between data hosted across multiple parties19 Oct 2021
- 2021Defending against Reconstruction Attack in Vertical Federated Learning21 Jul 2021