Abstract
We propose to investigate test statistics for testing homogeneity in reproducing kernel Hilbert spaces. Asymptotic null distributions under null hypothesis are derived, and consistency against fixed and local alternatives is assessed. Finally, experimental evidence of the performance of the proposed approach on both artificial data and a speaker verification task is provided.
Introduction
The "two-sample problem" is a fundamental challenge in statistics: given two sets of observations, do they come from the same probability distribution? This problem is central to many applications, including speaker verification, bioinformatics, and change-point detection. While classical tests like Kolmogorov-Smirnov are effective for simple, one-dimensional data, they often fail when data is complex, high-dimensional, or structured (such as strings or graphs).
Recent advancements in kernel methods have addressed these challenges by mapping data into a Reproducing Kernel Hilbert Space (RKHS). The current state-of-the-art approach, Maximum Mean Discrepancy (MMD), primarily measures the distance between the mean embeddings of two distributions. However, this paper argues that ignoring the covariance structure of the data—the internal variance—limits the sensitivity of the test. The authors propose a new test statistic based on Kernel Fisher Discriminant Analysis (KFDA) that accounts for this structure, providing significantly more power to detect subtle differences.
Methodology: The KFDA Test Statistic
The proposed method leverages the "kernel trick" to perform Fisher Discriminant Analysis in a high-dimensional feature space. Unlike MMD, which calculates a simple distance between means, the KFDA statistic uses the Fisher Ratio—the distance between means normalized by the pooled covariance.
The Fisher Ratio in RKHS
In an RKHS, the Fisher Discriminant Ratio acts as a "studentized" version of the mean difference. By accounting for the internal variance of the samples, the test becomes more robust to the "shape" of the data distribution. This "whitening" effect ensures that differences across all principal components of the data are weighted appropriately, rather than just those with the highest variance.
Regularization and Asymptotics
A significant challenge in infinite-dimensional spaces is that the covariance operator is not directly invertible. To address this, the authors introduce a regularization parameter, $\gamma_n$. A key theoretical contribution of this work is the derivation of the asymptotic null distribution. The authors demonstrate that as the sample size $n$ increases, the test statistic converges to a standard Normal distribution under specific conditions on the decay of $\gamma_n$. This allows for the calculation of precise p-values, facilitating rigorous hypothesis testing in practical scenarios.
Experimental Evaluation
The performance of the KFDA test was evaluated against MMD and the Tajvidi-Hall (TH) test using both synthetic and real-world datasets.
Artificial Data: Periodic Splines
Using synthetic data designed with "directional" and "non-directional" alternatives, the authors demonstrated that KFDA is significantly more powerful than MMD when differences between distributions occur in higher-order components (high-frequency differences). In cases where the difference was spread across many frequencies, MMD's power dropped to near-random levels, while KFDA maintained high detection rates.
Real-World Application: Speaker Verification
The method was applied to the NIST 2004 Speaker Recognition Evaluation dataset, featuring speech samples from eight female speakers. The task was to verify if two speech segments belonged to the same individual. The KFDA test achieved a power of 90% at a significance level of $\alpha = 0.05$, consistently outperforming competing methods and demonstrating its utility in complex, real-world signal processing tasks.
Key Insights: Why Normalization Matters
The core advantage of KFDA lies in its sensitivity to "high-frequency" differences. While MMD is essentially an $L^2$ distance—sensitive primarily to large-scale differences in the mean—KFDA behaves like a Chi-square divergence. By normalizing by the covariance, KFDA remains "strictly nontrivial" (powerful) even for subtle differences that occur in higher-order components of the distribution, provided the regularization parameter is tuned correctly.
Conclusion and Future Directions
This research establishes KFDA as a powerful and consistent tool for homogeneity testing. While computationally more intensive than MMD due to the need for matrix inversions, its increased sensitivity makes it invaluable for complex data analysis. Future work may focus on "kernel learning" to automatically optimize kernel selection and extending the framework to handle non-i.i.d. data, such as dependent time series.
Summary updated