Abstract
The Hilbert-Schmidt Independence Criterion (HSIC) and its multivariate extension (dHSIC) are widely used non-parametric measures for detecting dependencies between random variables. While practitioners frequently employ permutation tests to estimate the null distribution of these statistics, a formal proof of their statistical consistency—the guarantee that the test's power converges to 1 as sample size increases—has been a notable gap in the literature. This paper provides that proof, establishes the validity of the test for non-continuous data, and offers practical guidance on selecting the number of permutations.
Introduction
Determining whether variables are independent is a fundamental task in statistics and machine learning. Traditional methods often rely on restrictive assumptions, such as linearity. In contrast, kernel-based methods like the Hilbert-Schmidt Independence Criterion (HSIC) allow for the detection of complex, non-linear dependencies without such assumptions. To perform a hypothesis test using HSIC, one must compare the observed statistic against its distribution under the null hypothesis of independence. Because this "null distribution" is typically unknown and depends on the underlying data distribution, permutation tests are the standard solution.
A permutation test involves shuffling the data many times to simulate the null hypothesis. While intuitively sound and empirically successful, the formal mathematical guarantee that these tests will always detect a true dependency given enough data (consistency) remained unproven for dHSIC. This work addresses this gap, providing the theoretical foundation for one of the most popular independence tests in the field.
Theoretical Framework: HSIC and dHSIC
The authors operate within the framework of Reproducing Kernel Hilbert Spaces (RKHS). HSIC measures the dependence between two variables by looking at the norm of the cross-covariance operator between their respective RKHS mappings. dHSIC extends this to $d$ variables, testing for joint independence.
The permutation test works by comparing the observed statistic $T$ to a set of statistics $T^{*1}, \dots, T^{*B}$ calculated from randomly permuted versions of the dataset. The null hypothesis is rejected if the observed statistic is significantly larger than the permuted ones.
Proving Statistical Consistency
The core contribution of this research is the proof that the power of HSIC and dHSIC permutation tests converges to 1 as the sample size $n \to \infty$.
Hoeffding’s Conditions
Rather than relying on modern empirical process theory, the authors utilize a classical approach based on Hoeffding’s conditions (1952). This method demonstrates that the test statistic behaves predictably under shuffling. The proof shows that while the dHSIC of dependent data converges to a positive constant, the dHSIC of permuted data converges to zero in probability.
The "Vanishing" Permutation
A key insight, formalized in Theorem 3, is that as $n$ grows, the probability of indices overlapping during a random shuffle becomes negligible. This ensures that the expected value of the permuted statistic vanishes, allowing the test to distinguish between the true dependency and the synthetic null distribution.
Validity and Discrete Data
Beyond consistency, the paper proves the "validity" of the test—ensuring that the Type 1 error rate (false positives) does not exceed the significance level $\alpha$. While previous work (Pfister, 2018) addressed this for continuous data, this paper provides a modified proof that extends to non-continuous and discrete data. This is achieved through formal tie-breaking methods, which are necessary when multiple permutations yield identical HSIC values—a common occurrence in discrete datasets.
Practical Guidance: Choosing the Number of Permutations ($B$)
The number of permutations $B$ used in a test involves a trade-off between computational cost and statistical precision. The authors provide a formula for selecting $B$ based on desired confidence intervals for the $p$-value. For instance, to achieve a 99% confidence interval for a $p$-value near $\alpha = 0.05$ with a margin of error of 0.005, the authors recommend approximately $B \approx 23,000$.
Interestingly, the research notes a nuance in the $B$ trade-off: if the "true" $p$-value is much larger than $\alpha$, using a very small $B$ can occasionally lead to a random rejection of the null hypothesis. However, this is a byproduct of high variance in the $p$-value estimate rather than a desirable feature of the test.
Conclusion and Future Work
This work solidifies the theoretical standing of HSIC and dHSIC permutation tests. By proving consistency and extending validity to discrete data, it provides practitioners with the mathematical assurance that their independence tests are robust.
However, challenges remain. The computational complexity of dHSIC ($O(n^2)$) combined with the high number of permutations required for precise $p$-values makes the test expensive for very large datasets. Furthermore, the guarantees rely on the selection of a "characteristic" kernel; a poor choice may still result in low power in practice. Finally, extending these rigorous proofs to conditional independence testing—where one tests if $X$ and $Y$ are independent given $Z$—remains an open and complex problem.
Summary updated