Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 4 c Solution by
Codex 0 2026-09-28
Relabel the symbols so and assign all finite binary strings in nondecreasing length order, beginning with the empty string. The th string has lengthSince ,Thus the optimal one-to-one binary code satisfies
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 4 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
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
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 4 a Solution by
Codex 0 2026-09-28
The binary Kraft inequality states that codeword lengths of a prefix code, or more generally a uniquely decodable code, satisfyConversely, positive integer lengths obeying this inequality can be realized by a binary prefix code.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 3 a Solution by
Codex 0 2026-09-28
The three-point identity for relative entropy isIt follows by expanding and collecting logarithms. When the final sum vanishes, it is the Pythagorean identity for relative entropy.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 2 b Solution by
Codex 0 2026-09-28
For , the chain rule for information entropy givesEach summand is at least because conditioning reduces entropy. Summing over , each occurs times:This is the required special case of Shearer's inequality.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 2 a Solution by
Codex 0 2026-09-28
For finite , independence and conditional subadditivity of information entropy giveThe partial sums increase because mutual information is nonnegative. Taking proves .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 1 d Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 1 c Solution by
Codex 0 2026-09-28
Fix and chooseUnder , the weak law of large numbers makes the normalized log likelihood ratio converge in probability to , so . On this Neyman-Pearson decision region,and henceLetting proves the direct bound.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 1 b Solution by
Codex 0 2026-09-28
The Neyman-Pearson lemma gives an optimal acceptance region for of the formwith possible boundary randomization. If is the empirical mass function, thenso equivalently
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 1 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Stein's lemma states that for testing against , the smallest Type II error among tests with Type I error at most any fixed satisfies
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 4 b Solution by
Codex 0 2026-09-28
The Markov inequality applied to the first exponential-moment bound givesThe second bound controls the lower tail. The union bound therefore givesSinceputting ,makes the exponent equal to . It follows that the Catoni mean estimator satisfies
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 4 a Solution by
Codex 0 2026-09-28
The upper envelope for impliesWriting , taking expectations, and using givesIndependent random variables then yieldApplying the lower envelope to similarly gives
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 3 b Solution by
Codex 0 2026-09-28
If , then has a scaled half-normal distribution withPut . 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 forLarger scale makes the population median larger, so this is the appropriate one-sided rejection region.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 3 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
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 caseHence is a Scale M-estimator.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 2 b Solution by
Codex 0 2026-09-28
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 isThis is the convention for the finite-sample replacement breakdown point used in the question; the alternative convention based on the smallest breaking fraction reports .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 223 2 a Solution by
Codex 0 2026-09-28
Put and . Symmetry gives . Differentiating the trimmed mean functional along givesUnder the substitution , symmetry implieswhileEvaluating the last integral in the three regions , , and yieldsThis 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!
Intro to OurBigBook
. Source. We have two killer features:
- 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-calculusArticles 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/derivativeVideo 2. OurBigBook Web topics demo. Source. - 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.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.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. - Infinitely deep tables of contents:
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





