[Paper Review] Hypothesis testing using pairwise distances and associated kernels (with Appendix)
This paper establishes a unifying framework showing that energy distances and distance covariance in statistics are equivalent to maximum mean discrepancy (MMD) and Hilbert-Schmidt independence criterion (HSIC) in machine learning when using a novel family of distance-induced kernels derived from semimetrics of negative type. The key contribution is identifying that the commonly used energy distance (q=1) is just one member of a parametric family of kernels, and that smaller exponents (e.g., q=1/3 or q=1/6) yield significantly more powerful two-sample and independence tests, especially for high-frequency or fine-scale distribution differences.
We provide a unifying framework linking two classes of statistics used in two-sample and independence testing: on the one hand, the energy distances and distance covariances from the statistics literature; on the other, distances between embeddings of distributions to reproducing kernel Hilbert spaces (RKHS), as established in machine learning. The equivalence holds when energy distances are computed with semimetrics of negative type, in which case a kernel may be defined such that the RKHS distance between distributions corresponds exactly to the energy distance. We determine the class of probability distributions for which kernels induced by semimetrics are characteristic (that is, for which embeddings of the distributions to an RKHS are injective). Finally, we investigate the performance of this family of kernels in two-sample and independence tests: we show in particular that the energy distance most commonly employed in statistics is just one member of a parametric family of kernels, and that other choices from this family can yield more powerful tests.
Motivation & Objective
- To resolve the long-standing open question of the relationship between energy distance-based statistics and kernel-based distribution embeddings in RKHS.
- To identify the class of probability distributions for which distance-induced kernels are characteristic (i.e., injective embeddings into RKHS).
- To demonstrate that the commonly used energy distance (q=1) is suboptimal and that other parameter choices in the kernel family yield more powerful hypothesis tests.
Proposed method
- Define a new family of translation-variant kernels, called distance-induced kernels, derived from semimetrics of negative type.
- Establish equivalence between energy distance and MMD when using these kernels, and between distance covariance and HSIC.
- Prove that the resulting kernels are characteristic for all probability distributions with finite first moments.
- Use empirical estimates of MMD and HSIC with these kernels to construct consistent two-sample and independence tests.
- Apply spectral and bootstrap-based tests to evaluate performance without relying on the conservative upper bounds from Székely et al. (2007).
- Investigate the impact of the kernel parameter q on test power across various synthetic and real-world datasets.
Experimental results
Research questions
- RQ1Is there a formal equivalence between energy distance/MMD and distance covariance/HSIC under a common kernel framework?
- RQ2Which probability distributions admit characteristic kernels derived from semimetrics of negative type?
- RQ3Does the commonly used energy distance (q=1) yield the most powerful two-sample or independence test in all settings?
- RQ4Can alternative parameter choices in the distance-induced kernel family improve test performance, especially for high-frequency or fine-scale distribution differences?
- RQ5How do the proposed kernel-based tests compare to bootstrap and spectral methods in terms of power and reliability?
Key findings
- The energy distance with q=1 is equivalent to MMD using a specific distance-induced kernel, but this choice is not optimal for all testing scenarios.
- Distance-induced kernels derived from semimetrics of negative type are characteristic for all probability distributions with finite first moments.
- Smaller kernel exponents (e.g., q=1/3 or q=1/6) significantly outperform q=1 and the Gaussian kernel in detecting high-frequency distribution differences, such as in sinusoidal perturbations.
- For two-sample testing, the proposed kernel family with q=1/3 achieves nearly error-free performance on sinusoidal perturbations, even at high frequencies, where q=1 and Gaussian kernels fail.
- In independence testing, kernels with q=1/6 outperform both the Gaussian kernel and the standard distance covariance (q=1) on rotated ICA benchmark data, especially at small angles of rotation.
- The spectral test and bootstrap-based test show indistinguishable performance and both outperform the quadratic form test, which fails to reject the null in the same setting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.