= Solution
Let $(\lambda_j,\phi_j)$ be the ordered eigenpairs of the common <covariance operator> $C_X$, and write $\delta=\mu-\mu^*$. Estimate $C_X$ by the <pooled covariance operator>
$$
\widehat C
=\frac1{2n}\sum_{i=1}^n\left[
(X_i-\overline X)\otimes(X_i-\overline X)
+(X_i^*-\overline X^*)\otimes(X_i^*-\overline X^*)
\right]
$$
and denote its first $K$ eigenpairs by $(\widehat\lambda_j,\widehat\phi_j)$. The sign ambiguity of each eigenfunction disappears after squaring. Consider the <Two-sample FPCA mean statistic>
$$
T_{n,K}=\frac n2\sum_{j=1}^K
\frac{\langle\overline X-\overline X^*,\widehat\phi_j\rangle^2}
{\widehat\lambda_j}.
$$
Under $H_0$, the <Hilbert-space central limit theorem> gives
$$
\sqrt{\frac n2}(\overline X-\overline X^*)
\xrightarrow{d}G,
$$
where $G$ is a centered <Gaussian random element> with covariance $C_X$. The assumed eigenvalue gaps give consistency of the estimated eigenvalues and eigenfunctions, so <Slutsky theorem>[Slutsky's theorem] yields
$$
T_{n,K}\xrightarrow{d}\sum_{j=1}^K
\frac{\langle G,\phi_j\rangle^2}{\lambda_j}
\sim\chi_K^2.
$$
An asymptotic level-$\alpha$ test therefore rejects when $T_{n,K}$ exceeds the $(1-\alpha)$-quantile of the <chi-squared distribution> with $K$ degrees of freedom.
Under a fixed alternative,
$$
\frac{T_{n,K}}n\xrightarrow{p}
\frac12\sum_{j=1}^K\frac{\langle\delta,\phi_j\rangle^2}{\lambda_j}.
$$
The test is consequently consistent whenever the mean difference has a nonzero projection onto one of the retained principal components. A difference orthogonal to their span is invisible to this fixed-$K$ test, so $\mu\ne\mu^*$ alone does not guarantee consistency. Increasing $K$ with $n$ can recover such alternatives, but requires additional eigenvalue and approximation control.
Back to article page