Nonparametric two sample test of spectral densities
Ilaria Nadin, Tatyana Krivobokova, Farida Enikeeva
TL;DR
This work introduces a nonparametric two-sample test for equality of spectral densities of Gaussian stationary processes with potentially unequal lengths. It leverages a data-transformation pipeline based on the discrete cosine transform and binning to produce comparable inputs, and estimates log-spectral densities with a periodic smoothing spline, using their $L_2$ distance as the contrast. The authors establish minimax-optimal separation rates for Hölder-smooth spectral densities and prove the test achieves asymptotic level $\alpha$ while adapting to unknown smoothness up to $2q$ in the equal-length setting. Empirical validation via simulations and an EEG application demonstrates competitive power and practical utility, with an R implementation available in the sdf.test package.
Abstract
A novel nonparametric test for the equality of the covariance matrices of two Gaussian stationary processes, possibly of different lengths, is proposed. The test translates to testing the equality of two spectral densities and is shown to be minimax rate-optimal. Test performance is validated in a simulation study, and the practical utility is demonstrated in the analysis of real electroencephalography data. The test is implemented in the R-package sdf.test.
