NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Two Sample Test for Covariance Matrices in Ultra-High Dimension

Xiucai Ding, Yichen Hu, Zhenggang Wang

TL;DR

This paper introduces a novel statistical test for comparing covariance matrices in ultra-high dimensions, where the number of features far exceeds the number of samples. Their method is adaptive, requiring fewer assumptions than existing approaches and demonstrating superior performance in simulations and real-world data analysis.

What Problem Does This Paper Address?

In many scientific fields, such as genetics and finance, researchers often need to compare the variability (covariance) of different groups of data. A fundamental task is to determine if two populations have the same covariance structure. This is crucial for various statistical analyses, including hypothesis testing and classification. However, traditional methods struggle when the number of features (dimensions) is much larger than the number of observations (samples) – a scenario known as "ultra-high dimension." Existing methods for this setting often require strong assumptions about the data or the covariance matrices themselves, or they fail to perform well when sample sizes are unequal. This paper aims to bridge this gap by developing a robust and flexible test for covariance matrix equality in the ultra-high dimensional regime, even when sample sizes differ.

Methods

The authors propose a novel methodology that relies on a data splitting technique and a comparison of selected eigenvalues from sample covariance matrices. Here's a breakdown of their approach:

  • Data Splitting: The data is randomly split into three parts: two "test beds" (X and Ys) for constructing statistics and a "reference" set (Zs) for selecting relevant eigenvalues. This splitting is repeated multiple times to improve stability.
  • Eigenvalue Selection: Instead of using all eigenvalues, which can be problematic in high dimensions, their method focuses on a subset of eigenvalues. This selection is guided by a location parameter and a bandwidth parameter, which are chosen automatically.
  • Summary Statistic: A "decision ratio" is constructed by aggregating statistics from multiple data splits. This helps to reduce variability and improve the test's reliability.
  • Calibration: A calibration procedure is used to determine a critical value for the decision ratio, allowing for a clear decision on whether to reject the null hypothesis of equal covariance matrices.

A key innovation is the adaptive nature of their method, which does not require assumptions about the relative sizes of the samples, the specific structure of the covariance matrices, or the underlying data distributions (like Gaussianity).

Datasets

The paper evaluates its proposed method using:

  • Simulated Data: Extensive Monte-Carlo simulations are conducted under various scenarios, including different distributions (Gaussian and two-point) and covariance matrix structures.
  • Real Data: Two publicly available gene expression datasets are analyzed:
  • Prostate Cancer Data: This dataset has 12,600 genes and samples from normal and tumor groups. The analysis is performed on both a subset of 5,000 genes and all 12,600 genes.
  • Acute Lymphoblastic Leukemia (ALL) Data: This dataset contains 12,625 genes and samples from different molecular biology groups.

Key Insights and Ideas

  • Ultra-High Dimensionality is Tricky: The paper highlights why traditional methods fail in ultra-high dimensions, particularly due to the bias introduced by inconsistent sample covariance matrices and the complexity of eigenvalue distributions.
  • Focusing on a Subset of Eigenvalues is Key: By intelligently selecting a subset of eigenvalues, the authors circumvent issues related to using too many eigenvalues and achieve a more universal asymptotic distribution under the null hypothesis.
  • Data Splitting for Robustness: Repeating the data splitting process and creating a summary statistic (decision ratio) significantly reduces the variability of the test, making it more reliable.
  • Adaptivity is Crucial: The proposed method's strength lies in its minimal assumptions, making it applicable to a wider range of real-world scenarios where data characteristics are often unknown.

Key Results

  • Superior Performance: In extensive simulations, the proposed method consistently outperforms existing state-of-the-art methods in terms of both empirical size (Type I error rate) and power, especially under weak alternatives.
  • Real-World Applicability: The method successfully distinguishes between covariance matrices in both the prostate cancer and ALL gene expression datasets, often outperforming other methods, particularly on more challenging cases.
  • Theoretical Guarantees: The authors establish the asymptotic distributions of their test statistics and provide theoretical justification for the method's power under weak alternatives.

Limitations and Future Work

  • Computational Cost: While the method is designed for ultra-high dimensions, the repeated data splitting and eigenvalue computations can still be computationally intensive. The authors mention that their algorithm is implemented in an R package and can be used in a parallel or distributed fashion, suggesting future work in this area.
  • Factor Models: The current work assumes eigenvalues are bounded away from zero. Future research could explore extending the methodology to spiked covariance matrix models, which are relevant in applications where a few dominant eigenvalues exist.
  • Two-Sample Mean Test: The authors suggest that extending their adaptive testing framework to the problem of comparing means in ultra-high dimensions would be a valuable direction for future research.

Summary updated

BibTeX
@article{ding2024two,
  author = {Xiucai Ding and Yichen Hu and Zhenggang Wang},
  title = {{Two Sample Test for Covariance Matrices in Ultra-High Dimension}},
  journal = {Journal of the American Statistical Association},
  year = {2024},
  doi = {10.1080/01621459.2024.2423971},
}
Figure