The squared-norm test is omnibus: every fixed nonzero mean eventually changes . Its null law, however, is an infinite weighted chi-squared distribution and requires accurate estimation of enough covariance eigenvalues; noisy low-variance directions can also make calibration inefficient.
The FPCA mean test has the simple limit and standardizes retained directions by their variances. It is effective when the signal lies in the leading principal component subspace, but choosing introduces a tuning decision and truncation makes the test blind to alternatives orthogonal to that subspace. Close or repeated eigenvalues also make individual empirical eigenfunctions unstable.
The sign-flip randomization test can provide finite-sample calibration and avoids estimating a limiting covariance spectrum. Its exactness requires central symmetry, which is stronger than merely having zero mean, and exhaustive enumeration costs evaluations; Monte Carlo sign flips introduce simulation error. Its power still depends on the statistic used inside the randomization scheme.
Assume the null distribution is a centrally symmetric probability distribution, so and have the same law. A sign-flip randomization test draws signs independently and recomputes, for example,
The exact p-value averages over all sign vectors:
With random sign vectors, including the observed configuration, the standard Monte Carlo version is , where is the observed statistic. Joint sign invariance under the null makes this finite-sample valid.
Let be the leading eigenpairs of the sample covariance operator. For fixed with and , the FPCA mean test uses
Under the null, consistency of the empirical eigenpairs and the multivariate central limit theorem imply
The level- test therefore rejects above the quantile of the chi-squared distribution with degrees of freedom.
For a fixed mean , if at least one leading coordinate , , is nonzero, then in probability and the test is consistent. It has only null-level asymptotic power against means orthogonal to the first principal component functions. Under , the limit is noncentral chi-squared with noncentrality
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.
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 .
Part b shows that decreases continuously from to . Because is nonuniform, the variance in part b is positive, so for each intermediate there is a unique with .
To minimize subject to , the optimum lies on the boundary . The Lagrange multiplier equations for
give for some . The entropy constraint selects uniquely. Therefore
Let and . Then
Differentiation of this exponential family gives
The first-order terms cancel, leaving
For an IID finite-alphabet source and a fixed rate , let be the smallest probability that a block is not represented by a fixed-to-fixed code having at most codewords. The fixed-rate source-coding error exponent theorem states
For the direct part, encode all type classes whose empirical entropy is at most , where and . Since a type class has at most sequences and there are at most types, this codebook has at most entries for large . An error can occur only when . The method of types bounds its probability by
Taking the lower limit of the exponent and using compactness and continuity gives at least , proving achievability.
Define the closed set
It does not contain . Since the probability simplex is compact, has full support, and Kullback-Leibler divergence is continuous and vanishes only at ,
The event in the question is exactly . The upper-bound half of Sanov theorem gives probability at most a polynomial factor times , which tends to zero. This proves the weak law of large numbers.
Let be IID with full-support mass function on a finite alphabet , and let the empirical distribution be
Suppose is a set of probability mass functions satisfying and that the information projection minimizes over . Then the limiting Sanov theorem is
For each -type , the method of types gives
and there are at most types. Summing the upper bounds over types in gives the large-deviation upper bound. For the lower bound, choose types converging to an interior distribution arbitrarily close to and use the lower type-class bound. Polynomial factors disappear after applying , and continuity of divergence finishes the proof.
Let , so . For the finite code alphabet,
by differentiating the logarithmic moment-generating function at zero. Part a gives , so the inequality in part c converges to .
Use the distribution associated with the code in part b. Since ,
For , Holder inequality, equivalently the indicated Jensen inequality, gives
Therefore
The code-distribution correspondence starts from the Kraft inequality. For codeword lengths put
Conversely, a probability mass function determines ideal lengths , up to integer rounding. For the source law ,
using nonnegativity of Kullback-Leibler divergence and .
Let . Both and vanish at one. By L'Hopital rule, with logarithms to base two,
Terms with contribute zero by continuity.
The Markov property gives . The chain rule therefore yields
and
Conditional on , the factorization of the chain still gives . The conditional data-processing inequality thus gives
Rearranging proves
Stationarity gives . The Markov relation and the data processing inequality for mutual information imply
Using on both sides gives
Let be mutually independent, with identically distributed. Entropy submodularity for three independent sums gives
Independent addition cannot decrease discrete entropy, because . Hence
Take to have the distribution of and take to be independent copies of , all mutually independent. Then and both have the distribution of , whereas has the distribution of and . Hence
or
The denominator is nonnegative because conditioning on recovers from , so .

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact