The exact equivalence of distance and kernel methods in hypothesis testing

Cencheng Shen, Joshua T Vogelstein

TL;DR

This paper introduces a novel "bijective transformation" that elegantly bridges the gap between distance-based and kernel-based methods for hypothesis testing, particularly for independence testing. This unification simplifies implementation, allows for direct communication between previously disparate research literatures, and ensures that both approaches yield identical results for hypothesis testing.

What Problem Does This Paper Address?

In statistics and machine learning, two powerful families of methods are widely used for testing independence between random variables: distance-based methods (like distance correlation) and kernel-based methods (like the Hilbert-Schmidt independence criterion, HSIC). While both are known for their consistency in detecting independence, they are often treated as distinct entities in the literature, leading to separate theoretical developments and implementation efforts. This separation creates a barrier to cross-pollination of ideas and can lead to redundant work. The paper aims to resolve this by demonstrating an exact equivalence between these two approaches, showing they are fundamentally the same under a specific transformation.

Methods

The core contribution of this paper is the introduction of a bijective transformation between metrics and kernels. This transformation is defined in two parts:

  1. Bijective Induced Kernel: Given a set of sample data and a distance metric $d(\cdot, \cdot)$, a new kernel $k_d(\cdot, \cdot)$ is derived using the formula: $k_d(x_i, x_j) = \max_{s,t \in [n]} \{d(x_s, x_t)\} - d(x_i, x_j)$ This transformation is data-adaptive, meaning the resulting kernel depends on the specific sample data.

  2. Bijective Induced Metric: Conversely, given a kernel $k(\cdot, \cdot)$, a new metric $d_k(\cdot, \cdot)$ is defined as: $d_k(x_i, x_j) = \max_{s,t \in [n]} \{k(x_s, x_t)\} - k(x_i, x_j)$

The paper then proves that this bijective transformation establishes an exact equivalence between distance covariance and HSIC, both for biased and unbiased statistics. This equivalence means that when one method uses a metric and the other uses its bijective induced kernel, they will produce identical test statistics and p-values for hypothesis testing. The paper also shows that this bijective transformation is a shift version of a previously proposed fixed-point transformation, but it offers advantages for sample data by eliminating the need for an arbitrary fixed point.

Datasets

Not discussed in the paper. The paper uses simulated data for experiments.

Key Insights and Ideas

  • Unification of Two Pillars: The most significant insight is that distance correlation and HSIC are not fundamentally different but are two sides of the same coin, linked by a simple, data-adaptive transformation. This unification is a major step towards a more cohesive understanding of independence testing.
  • Exact Equivalence for Testing: The bijective transformation ensures that distance and kernel methods yield exactly the same p-values for hypothesis testing, not just asymptotically or approximately. This is crucial for practical applications and theoretical consistency.
  • Advantages of the Bijective Transformation: Unlike previous fixed-point transformations, the bijective one is simpler to implement, data-adaptive, and crucially, preserves the equivalence for unbiased statistics, which is not guaranteed by prior methods.
  • Preservation of Data Structure: The bijective induced kernel is shown to be rank-preserving and translation-invariant (when the original metric is), properties that are vital for downstream applications like spectral clustering and support vector machines.
  • Theoretical Foundation for Practical Tools: The paper provides a strong theoretical basis for why these two seemingly different families of methods work together, bridging theoretical research with practical implementations.

Key Results

  • Theorem 3: Demonstrates that for any sample data $(X, Y)$, the biased distance covariance $Dcov^b(X, Y)$ is exactly equal to the biased HSIC $HSIC^b(X, Y)$ using the bijective induced kernel. For unbiased statistics, $Dcov_n(X, Y) = HSIC_n(X, Y) + O(1/n^2)$, where the remainder term is permutation-invariant, leading to identical p-values.
  • Theorem 4: Establishes that the population distance covariance $Dcov(X, Y)$ is equal to the population Hilbert-Schmidt covariance $HSic(X, Y)$ when using the bijective induced kernel.
  • Theorem 5: Shows that if a metric is of strong negative type, its bijective induced kernel is asymptotically characteristic, and vice versa for kernels and induced metrics. This links the theoretical properties of metrics and kernels to their statistical behavior.
  • Experimental Validation: Simulations (linear, spiral, sine, independent cloud) and a spectral clustering application confirm the theoretical findings. Table 1 shows that p-values for biased methods are identical, and for unbiased methods, they are extremely close, validating the equivalence. Figure 2 illustrates how the bijective induced kernel leads to a clear block structure for spectral clustering, unlike the fixed-point induced kernel. Figure 3 shows that Kernel Multiscale Graph Correlation (using the bijective induced metric) offers improved testing power for nonlinear dependencies compared to HSIC.

Limitations and Future Work

  • Data-Adaptivity: While a strength, the data-adaptive nature of the bijective transformation means the induced kernel/metric depends on the specific sample. This can be a consideration for theoretical analysis, though the paper shows it doesn't hinder asymptotic equivalence.
  • Computational Cost: Calculating the maximum element in the transformation might add computational overhead, especially for very large datasets, although the paper notes this alternative definition can facilitate implementation.
  • Future Work: The paper suggests that this equivalence opens doors for further research, including developing new algorithms that leverage both distance and kernel perspectives, and exploring the implications for other statistical tasks beyond independence testing. The authors also highlight that the bijective transformation is a shift version of the fixed-point transformation, implying a deeper connection that could be further explored.

Summary updated

BibTeX
@inproceedings{shen2020exact,
  author = {Cencheng Shen and Joshua T Vogelstein},
  title = {{The exact equivalence of distance and kernel methods in hypothesis testing}},
  booktitle = {AStA},
  year = {2020},
  doi = {10.1007/s10182-020-00378-1},
}
Figure