Delaunay Weighted Two-sample Test for High-dimensional Data by Incorporating Geometric Information

Jiaqi Gu, Ruoxu Tan, Guosheng YinarXiv 2024 · DOI

Abstract

Two-sample hypothesis testing is a fundamental problem with various applications, which faces new challenges in the high-dimensional context. To mitigate the issue of the curse of dimensionality, high-dimensional data are typically assumed to lie on a low-dimensional manifold. To incorporate geometric information in the data, we propose to apply the Delaunay triangulation and develop the Delaunay weight to measure the geometric proximity among data points. In contrast to existing similarity measures that only utilize pairwise distances, the Delaunay weight can take both the distance and direction information into account. A detailed computation procedure to approximate the Delaunay weight for the unknown manifold is developed. We further propose a novel nonparametric test statistic using the Delaunay weight matrix to test whether the underlying distributions of two samples are the same or not. Applied on simulated data, the new test exhibits substantial power gain in detecting differences in principal directions between distributions. The proposed test also shows great power on a real dataset of human face images.

Introduction

In statistics, a "two-sample test" evaluates whether two sets of data originate from the same underlying distribution. While straightforward in low dimensions, this task becomes increasingly difficult in high-dimensional spaces—such as comparing 2000-pixel images—due to the "curse of dimensionality." Traditional tests often lose power as the volume of the space increases exponentially with the number of dimensions.

To address this, researchers frequently assume that high-dimensional data resides on a simpler, low-dimensional "manifold." Existing methods like $k$-nearest neighbors ($k$-NN) or Minimum Spanning Trees (MST) attempt to exploit this structure by analyzing pairwise distances. However, these methods often ignore directional information. If neighbors are clustered in a single direction, the geometric context of the surrounding space is lost. This paper introduces a method to incorporate full geometric proximity by considering both distance and direction.

Methodology

The core innovation of this research is the Delaunay Weighted Test, which leverages the geometric properties of Delaunay triangulation to define data proximity.

Delaunay Triangulation and Weights

Instead of simply selecting the $k$ nearest points, the authors employ Delaunay triangulation. In two dimensions, this creates a mesh of triangles; in higher dimensions, it forms simplices. A defining characteristic is the "empty ball" rule: the circumscribed sphere of any simplex contains no other data points. This ensures that the selected "neighbors" effectively surround a point from multiple directions, capturing the local geometry more accurately than distance-based metrics alone.

Illustration of Delaunay triangulation (a) showing the empty ball property compared to other triangulations (b, c).

The authors define a weight matrix where each point is represented as a convex combination of its Delaunay neighbors. Unlike the binary weights of $k$-NN, these Delaunay weights capture the specific geometric orientation of the data points.

Manifold Approximation and Projection

Because the underlying manifold is typically unknown, the researchers use manifold learning (specifically Multi-Dimensional Scaling) to project data into a lower-dimensional space. To handle edge effects at the "convex hull" of the data, they utilize an inverse stereographic projection to map data onto a sphere. This ensures every point has a valid set of neighbors for the test statistic.

Geometric proximity on a manifold $\mathcal{M}$ illustrated via the tangent space $T_a\mathcal{M}$ and the logarithmic map $\log_a(b)$.

The final test statistic, $T_{DW}$, is the sum of within-group weights. If two samples are from the same distribution, they should be well-mixed; if they differ, points will exhibit a higher weight toward neighbors from their own group.

Experimental Results

The Delaunay Weighted Test was evaluated against three data types:

  1. Simulated Euclidean Data: Used to verify that the test correctly controls for Type I errors (false positives).
  2. Simulated Manifold Data: Using MNIST digit "4" images subjected to random rotations and shifts, creating a synthetic manifold with an intrinsic dimension of 3 embedded in a 1600-dimensional space.
  3. Real-World Data (UTKFace): A dataset of over 7,000 human face images (2304 dimensions). The test aimed to distinguish between different age groups based on raw pixel data.

Key Findings

  • Directional Sensitivity: The test significantly outperformed $k$-NN and kernel-based tests in scenarios where distributions had identical means but different covariance structures (different "orientations" in space).
  • Robustness: The method proved robust to errors in estimating the manifold's intrinsic dimension ($d$).
  • High Power on Real Data: On the UTKFace dataset, the proposed test showed the highest power in distinguishing age groups (e.g., under 25 vs. over 26) as sample sizes increased.

Conclusion

The Delaunay Weighted Test provides a powerful framework for high-dimensional hypothesis testing by incorporating geometric directionality. While it offers superior sensitivity, future work is needed to address its computational complexity, which scales with the intrinsic dimension, and to ensure robustness when manifold learning fails to preserve data topology.

Summary updated

BibTeX
@misc{gu2024delaunay,
  author = {Jiaqi Gu and Ruoxu Tan and Guosheng Yin},
  title = {{Delaunay Weighted Two-sample Test for High-dimensional Data by Incorporating Geometric Information}},
  year = {2024},
  eprint = {2404.03198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.03198},
}
Figure