Abstract
Traditional non-parametric hypothesis tests, such as the Maximum Mean Discrepancy (MMD) and Hilbert-Schmidt Independence Criterion (HSIC), generally assume data points reside in fixed-dimensional vector spaces. However, many modern datasets—ranging from medical records to climate observations—are "set-valued," consisting of collections of observations with varying sizes and irregular sampling. This paper presents a framework for lifting kernel-based tests to the space of probability distributions. By representing each set as a Kernel Mean Embedding (KME) and employing a robust weighting scheme proportional to set size, we introduce the Robust MMD (RMMD) and Robust HSIC (RHSIC). Our results demonstrate that this approach significantly enhances statistical power compared to standard interpolation heuristics and deep learning baselines.
Introduction
In many practical applications, data is naturally organized into sets. For example, in clinical studies, patients may have different numbers of biomarker measurements taken at irregular intervals. Standard machine learning approaches often force such data into fixed-dimensional vectors via interpolation or splines, which can introduce significant bias and discard inherent uncertainty.
The core challenge is to determine if two groups of sets are statistically different (two-sample problem) or if two types of set-valued variables are dependent (independence problem).
Methodology
The proposed framework operates on a two-level hierarchy:
- Set Representation: Each set $S_i = \{x_{i,s}\}_{s=1}^{n_i}$ is mapped to a Reproducing Kernel Hilbert Space (RKHS) using the Kernel Mean Embedding (KME). This treats each set as a sample from an underlying latent distribution $\mathbb{P}_i$.
- Robust Test Statistics: We define new statistics, RMMD and RHSIC, that operate on these embeddings. Unlike standard tests that treat all samples equally, our robust statistics incorporate weights $w_i$ based on the number of observations $n_i$ in each set.
- Optimal Weighting: The authors prove that setting $w_i \propto n_i$ maximizes the power of the test. This accounts for the fact that larger sets provide more reliable estimates of their latent distributions.
To ensure scalability, the method utilizes Random Fourier Features to approximate kernels, enabling efficient computation even with large datasets.
Experimental Results
The framework was rigorously tested against synthetic benchmarks and real-world datasets in medicine and climatology.
Synthetic Benchmarks
In experiments involving noisy sine waves, RMMD and RHSIC consistently outperformed standard MMD, HSIC, and deep learning models like GRU-based classifiers and DeepSets. As shown in the results, the robust statistics maintain high power even as the difference in amplitude or variance between populations becomes subtle, while maintaining a controlled Type I error rate.
Real-World Applications
- Climate Change: Applying RMMD to multivariate weather data from 1979–2019, the test successfully identified significant distributional shifts in climate patterns over the last two decades across multiple continents ($p < 0.002$).
- Cystic Fibrosis: Using data from the UK Cystic Fibrosis Trust, RHSIC identified critical dependencies between BMI, antibiotic usage, and lung function trajectories, proving more sensitive than unweighted methods in the presence of sparse data.
Conclusion
By treating sets as unordered collections and leveraging the theory of kernel mean embeddings, this work provides a principled alternative to data interpolation. The introduction of size-dependent weighting ensures that the tests are both statistically consistent and highly powerful, making them well-suited for the complexities of real-world, irregularly sampled data.
Summary updated