# The Exact Equivalence of Distance and Kernel Methods for Hypothesis Testing

arXiv: https://arxiv.org/abs/1806.05514 · HTML: https://mlsanity.com/paper/1806.05514/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 14 Jun 2018.

## Built on by (most cited first, 7 of 7)

- [Review of end-to-end speech synthesis technology based on deep learning](https://mlsanity.com/paper/2104.09995/) (2021)
- [Synergistic Graph Fusion via Encoder Embedding](https://mlsanity.com/paper/2303.18051/) (2023)
- [Encoder Embedding for General Graph and Node Classification](https://mlsanity.com/paper/2405.15473/) (2024)
- [Sample-based Uncertainty Quantification with a Single Deterministic Neural Network](https://mlsanity.com/paper/2209.08418/) (2022)
- [Hypothesis testing for matched pairs with missing data by maximum mean discrepancy: An application to continuous glucose monitoring](https://mlsanity.com/paper/2206.01590/) (2022)
- [Private measurement of nonlinear correlations between data hosted across multiple parties](https://mlsanity.com/paper/2110.09670/) (2021)
- [Fast and Scalable Multi-Kernel Encoder Classifier](https://mlsanity.com/paper/2406.02189/) (2024)

## Abstract (arXiv)

Distance-based tests, also called "energy statistics", are leading methods for two-sample and independence tests from the statistics community. Kernel-based tests, developed from "kernel mean embeddings", are leading methods for two-sample and independence tests from the machine learning community. A fixed-point transformation was previously proposed to connect the distance methods and kernel methods for the population statistics. In this paper, we propose a new bijective transformation between metrics and kernels. It simplifies the fixed-point transformation, inherits similar theoretical properties, allows distance methods to be exactly the same as kernel methods for sample statistics and p-value, and better preserves the data structure upon transformation. Our results further advance the understanding in distance and kernel-based tests, streamline the code base for implementing these tests, and enable a rich literature of distance-based and kernel-based methodologies to directly communicate with each other.
