Collaborative non-parametric two-sample testing

Alejandro de la Concha, Nicolas Vayatis, Argyris KalogeratosarXiv 2024

TL;DR

This paper introduces Collaborative Two-Sample Testing (CTST), a framework for detecting statistical differences between two groups of data across the nodes of a graph. By assuming that connected nodes should yield similar test outcomes, CTST "borrows strength" from neighbors to improve detection power and robustly control false positives in complex spatial and network datasets.

What Problem Does This Paper Address?

In fields like neuroscience or spatial statistics, researchers often need to perform a Two-Sample Test (TST) at many locations simultaneously—for example, comparing brain activity sensors before and after a stimulus. This leads to two major hurdles:

  1. The Multiple Comparison Problem (MCP): As the number of tests increases, the probability of finding at least one "false positive" (wrongly rejecting a null hypothesis) grows rapidly. Standard corrections (like Bonferroni) often kill the statistical power of the test, making it hard to find real signals.
  2. Ignoring Geometry: Most existing methods treat each location (node) as an independent island. However, in reality, if one sensor detects a change, its neighbors likely do too. Traditional methods only account for this after the testing is done, missing out on valuable information during the estimation phase.

The authors propose a way to integrate the graph's geometry directly into the statistical estimation process.

Methods

The proposed Collaborative Two-Sample Testing (CTST) framework operates in three main steps:

  1. Collaborative Likelihood-Ratio Estimation (LRE): Instead of estimating the difference at each node independently, CTST uses the GRULSIF framework to estimate them jointly. It enforces "graph smoothness," a regularization technique that encourages connected nodes to have similar test statistics.
  2. Node-level Test Statistics: The framework calculates $\chi^2$-divergence estimates (a measure of how different two distributions are) for each node. To handle cases where the difference might be non-symmetric, it compares both $p$ vs. $q$ and $q$ vs. $p$.
  3. Permutation-based $\pi$-value Estimation: To address the MCP, the authors use a permutation test that provides "weak control" of the Family-Wise Error Rate (FWER). This ensures that if there is no real change anywhere on the graph, the probability of reporting even one false positive is kept below a user-defined threshold (e.g., 5%).
The CTST workflow: Jointly estimating likelihood ratios across a graph to produce node-level p-values ($\pi$-values).

Datasets

The authors evaluated CTST using both controlled simulations and real-world sensor data:

  • Synthetic Scenarios: They used Stochastic Block Models (SBM) to simulate cluster-based changes and Grid graphs to simulate localized "ego-network" changes. These benchmarks tested the model's ability to detect shifts in mean, variance, and complex distribution shapes (like Gaussian mixtures).
  • Real Seismic Data: They analyzed two seismic events in New Zealand (magnitudes 5.5 and 2.6) using data from the GeoNet project. The "graph" here was a multiplex network representing both spatial proximity between stations and temporal continuity between time-windows.

Key Insights and Ideas

  • Joint Estimation is Better Than Post-hoc Smoothing: By incorporating graph structure during the estimation of test statistics, the model is much more sensitive to subtle signals that independent tests would miss.
  • Non-parametric Flexibility: Because it uses kernel methods and $\phi$-divergence, CTST doesn't care how the distributions differ (e.g., a change in mean vs. a change in variance); it just detects that a change occurred.
  • Robustness to Noise: The graph regularization acts as a filter, preventing isolated outliers at single nodes from being flagged as significant discoveries, thus reducing false alarms.

Key Results

In synthetic experiments, CTST consistently outperformed state-of-the-art non-parametric tests like MMD (Maximum Mean Discrepancy) and RULSIF. It achieved significantly higher AFROC-AUC (a metric combining detection power and false positive control), especially when the number of observations per node was small.

In the seismic application, CTST provided much cleaner and more interpretable results. While independent methods produced fragmented detections that lingered long after the seismic waves passed, CTST accurately recovered the nodes closest to the epicenter and followed the temporal evolution of the event more faithfully.

Figure 2: Seism A. Result of the proposed graph-based CTST (with α = 0.1). Left: The location of the stations on the map of New Zealand connected in a 3NN graph. Right: The post- event signals associated with the stations (in proximity order to the epicenter) detecting activity in at least one time-window (colored).

Limitations and Future Work

  • Weak vs. Strong Control: The current method provides "weak" FWER control (valid under the global null hypothesis). The authors suggest that developing strategies for "strong" control (valid even when some nodes have real changes) is a promising next step.
  • Graph Dependency: The method's success relies on having a meaningful graph. If the graph doesn't accurately reflect the underlying relationships between tests, the "smoothness" assumption might lead to over-smoothing real signals.
  • Computational Cost: While the authors use efficient optimization techniques (Cyclic Block Coordinate Descent), very large-scale graphs with millions of nodes may require further algorithmic refinements.

Summary updated

BibTeX
@misc{concha2024collaborative,
  author = {Alejandro de la Concha and Nicolas Vayatis and Argyris Kalogeratos},
  title = {{Collaborative non-parametric two-sample testing}},
  year = {2024},
  eprint = {2402.05715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05715},
}
Figure