Functional mean test (source code)

= Functional mean test
{title2=$n\lVert\overline X\rVert^2$}

A <functional mean test> asks whether the <expectation> $\mu$ of a <Hilbert-space-valued random variable> is zero. Suppose $X_1,\ldots,X_n$ are <independent and identically distributed> in a <Hilbert space> with a countable dense <subset> $H$, with $\mathbb E\lVert X_1\rVert^2<\infty$. Write $C$ for their <covariance operator> and $\overline X=n^{-1}\sum_iX_i$. Under the <null hypothesis> $\mu=0$, the <Hilbert-space central limit theorem> gives
$$
\sqrt n\,\overline X\xrightarrow{d}G,\qquad
n\lVert\overline X\rVert^2\xrightarrow{d}\lVert G\rVert^2
=\sum_{j\ge1}\lambda_jZ_j^2,
$$
where $G$ is a centered <Gaussian random element> in $H$, the $\lambda_j$ are the <eigenvalues> of $C$, and the $Z_j$ are <independent> standard <normal random variables>. The second assertion follows by the <continuous mapping theorem>. Since $\sum_j\lambda_j=\mathbb E\lVert X_1-\mu\rVert^2<\infty$, the nonnegative series is finite <almost surely>. Limits given by <Gaussian random elements> for functional <sample means> and the corresponding weighted squared-norm laws also extend to suitable dependent observations.<Estimation of the Mean of Functional Time Series and a Two-Sample Problem by Lajos Horváth and others>[Section 2, Theorem 1; Section 3, Theorem 3]{ref}

The <eigenvalues> determine the calibration: the limit is generally a weighted sum of <random variables> with a <chi-squared distribution>, rather than a single ordinary <chi-squared distribution>. The squared <norm> measures deviations across all <covariance operator> directions. An <FPCA mean test> instead retains finitely many <eigenvectors> and divides their squared coordinates by their <eigenvalues>, producing a different statistic with a simpler limiting calibration.