Relabel the symbols so and assign all finite binary strings in nondecreasing length order, beginning with the empty string. The th string has length
Since ,
Thus the optimal one-to-one binary code satisfies
The Shannon lengths are . Their Competitive optimality of the Shannon code says that for every binary uniquely decodable code of lengths and every positive integer ,
On this event, . Summing and applying the Kraft inequality proves
The binary Kraft inequality states that codeword lengths of a prefix code, or more generally a uniquely decodable code, satisfy
Conversely, positive integer lengths obeying this inequality can be realized by a binary prefix code.
Writing for the th marginal and using ,
The analogous formula for omits coordinate . Consequently
Part b makes , so the last display is at least .
For , the chain rule for information entropy gives
Each summand is at least because conditioning reduces entropy. Summing over , each occurs times:
This is the required special case of Shearer's inequality.
For finite , independence and conditional subadditivity of information entropy give
The partial sums increase because mutual information is nonnegative. Taking proves .
For any region with , let
The weak law of large numbers gives , so . Therefore
Thus ; let .
Fix and choose
Under , the weak law of large numbers makes the normalized log likelihood ratio converge in probability to , so . On this Neyman-Pearson decision region,
and hence
Letting proves the direct bound.
The Neyman-Pearson lemma gives an optimal acceptance region for of the form
with possible boundary randomization. If is the empirical mass function, then
so equivalently
Stein's lemma states that for testing against , the smallest Type II error among tests with Type I error at most any fixed satisfies
The Markov inequality applied to the first exponential-moment bound gives
The second bound controls the lower tail. The union bound therefore gives
Since
putting ,
makes the exponent equal to . It follows that the Catoni mean estimator satisfies
The upper envelope for implies
Writing , taking expectations, and using gives
Independent random variables then yield
Applying the lower envelope to similarly gives
If , then has a scaled half-normal distribution with
Put . The population median is , and the asymptotic distribution of a sample median gives
Under , positivity of the scale means . If is the -quantile of the standard normal distribution, an asymptotically level- test rejects for
Larger scale makes the population median larger, so this is the appropriate one-sided rejection region.
Write . If is odd, the sample median equals one observation, with equally many below and above it; the corresponding terms cancel and the median term is zero. If is even, the conventional median lies strictly between the two middle observations when the are distinct, so exactly half the terms are and half are . In either case
Hence is a Scale M-estimator.
Let . If at most observations are replaced arbitrarily, every order statistic retained between ranks and remains between the minimum and maximum of the unreplaced observations. The trimmed mean is therefore bounded as the replacement values diverge.
If more than observations are replaced by a common value tending to , at least one replacement remains after the largest observations are trimmed, and the trimmed mean tends to . The analogous construction tends to . Thus the largest fraction of arbitrary replacements for which boundedness is guaranteed is
This is the convention for the finite-sample replacement breakdown point used in the question; the alternative convention based on the smallest breaking fraction reports .
Put and . Symmetry gives . Differentiating the trimmed mean functional along gives
Under the substitution , symmetry implies
while
Evaluating the last integral in the three regions , , and yields
This is the influence function of a trimmed mean, namely the Huber score with clipping parameter , divided by .

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