Let
and estimate it by the average of the two within-sample empirical covariance operators. Let be its leading empirical eigenpairs and let be the sample means. Use the Two-sample FPCA mean statistic
Under , the Hilbert-space central limit theorem gives
where is a centered Gaussian random element with covariance . Distinct eigenvalues give consistent empirical eigenpairs, up to signs, and the standardized leading scores are independent standard normal variables. Hence
Rejecting above the quantile gives an asymptotic level- test.
Under a fixed alternative ,
The test is consistent whenever one retained projection is nonzero. Alternatives orthogonal to the first eigenfunctions are invisible at fixed . Under local alternatives , the limit is noncentral chi-squared with noncentrality .
Write for the rank-one operator . The estimator is the kernel representation of the empirical covariance operator
Since ,
Thus the estimator has the fixed bias of an estimator for .
The fourth-moment assumption makes square-integrable in the Hilbert space of Hilbert-Schmidt operators. The weak law of large numbers therefore gives
Consequently consistency for holds exactly when . More precisely, if , then
The Hilbert-space central limit theorem also yields
where is a centered Gaussian random element in the Hilbert-Schmidt operator space with covariance determined by . Relative to , the same fluctuation is displaced by and hence does not have a finite centered limit when .