Skip to main content
QUICK REVIEW

[Paper Review] Two-sample Statistics Based on Anisotropic Kernels

Xiuyuan Cheng, Alexander Cloninger|arXiv (Cornell University)|Sep 14, 2017
Statistical Methods and InferenceMathematics17 references8 citations
TL;DR

This paper proposes a novel anisotropic kernel-based Maximum Mean Discrepancy (MMD) statistic for two-sample hypothesis testing between high-dimensional probability distributions. By leveraging local covariance structures to construct asymmetric kernels with a reduced reference set, the method enhances test power for locally low-rank distributions while reducing computational cost, with theoretical consistency proven under mild assumptions and demonstrated on flow cytometry and diffusion MRI data.

ABSTRACT

The paper introduces a new kernel-based Maximum Mean Discrepancy (MMD) statistic for measuring the distance between two distributions given finitely-many multivariate samples. When the distributions are locally low-dimensional, the proposed test can be made more powerful to distinguish certain alternatives by incorporating local covariance matrices and constructing an anisotropic kernel. The kernel matrix is asymmetric; it computes the affinity between $n$ data points and a set of $n_R$ reference points, where $n_R$ can be drastically smaller than $n$. While the proposed statistic can be viewed as a special class of Reproducing Kernel Hilbert Space MMD, the consistency of the test is proved, under mild assumptions of the kernel, as long as $\|p-q\| \sqrt{n} o \infty $, and a finite-sample lower bound of the testing power is obtained. Applications to flow cytometry and diffusion MRI datasets are demonstrated, which motivate the proposed approach to compare distributions.

Motivation & Objective

  • To develop a more powerful two-sample test for high-dimensional, locally low-rank distributions where standard MMD may underperform.
  • To reduce computational and memory costs in kernel-based two-sample testing by using a small reference set instead of full data matrices.
  • To improve detection of subtle distributional differences by adapting kernel shape to local geometry via local covariance matrices.
  • To provide a theoretically consistent test under weak assumptions, ensuring asymptotic validity as sample size grows.
  • To enable practical application in biological data analysis, particularly in flow cytometry and diffusion MRI, where distributional differences signal biologically relevant changes.

Proposed method

  • Constructs anisotropic kernels using local covariance matrices to adaptively shape the kernel based on local data geometry.
  • Uses a reference set of size $ n_R \ll n $, where $ n $ is the number of data points, to compute asymmetric affinity matrices between data points and reference points.
  • Defines a kernel-based MMD statistic as an $ L^2 $-norm of the difference in histogram projections onto the spectral basis of the kernel operator.
  • Applies spectral decomposition to analyze the kernel’s spectral properties and derive a finite-sample lower bound on test power.
  • Incorporates spectral smoothing and weighted histogram estimation to reduce variance and enhance sensitivity to local deviations.
  • Reframes the two-sample test as a mean-shift test in the spectral embedding space, enabling use of standard mean-shift statistics.

Experimental results

Research questions

  • RQ1Can anisotropic kernels improve the power of two-sample MMD tests when distributions are locally low-rank in high-dimensional space?
  • RQ2How does the use of a small reference set affect the consistency and computational efficiency of kernel-based MMD?
  • RQ3What is the theoretical guarantee for the proposed test under general assumptions, particularly regarding asymptotic consistency?
  • RQ4How can the method detect local differences between distributions, and can it be adapted to provide local p-values for differential analysis?
  • RQ5Can the method be effectively applied to real biological datasets such as flow cytometry and diffusion MRI, where subtle distributional shifts are biologically meaningful?

Key findings

  • The proposed anisotropic kernel MMD achieves higher test power than isotropic MMD for locally low-rank distributions by adapting to local geometry through covariance-based kernel design.
  • The method ensures asymptotic consistency under the condition $ \|p - q\|\sqrt{n} \to \infty $, which holds for any fixed deviation beyond the $ O(n^{-1/2}) $ critical regime.
  • Finite-sample lower bounds on testing power are derived based on the spectral decomposition of the kernel operator, linking test power to eigenstructure.
  • Applications to flow cytometry and diffusion MRI datasets show the method effectively detects biologically relevant distributional differences not captured by standard tests.
  • The spectral embedding framework allows transformation of the general alternative hypothesis into a mean-shift alternative in a lower-dimensional space, enabling use of standard parametric tests.
  • The use of a reference set reduces memory and computation costs significantly, with $ n_R \ll n $, while preserving statistical power and consistency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.