Use the test statistic
Under the null hypothesis, the Hilbert-space central limit theorem gives , where is centered Gaussian with covariance . If , its Karhunen–Loève expansion and the continuous mapping theorem give
for independent . Reject for above the quantile of this weighted chi-squared law; replacing the by empirical covariance eigenvalues gives a plug-in estimator of the critical value.
Under every fixed alternative , the weak law of large numbers gives , so and the test is consistent. Under a local alternative , the limit is , which describes its local power.