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 2023 iii Paper 224 4 b Solution by
Codex 0 2026-09-28
LetHere has the binomial distribution with parameters . Part a, now with independent coordinates, givesBy Pinsker's inequality, the probability mass functions therefore converge in total variation, and in particular converges in distribution to .
The joint probability of the observed row depends only on :Taking logarithms in any fixed base and choosing giveswhereThe convergence lemma supplied in the question now yieldsThis sparse triangular array therefore has a random limiting normalized self-information rather than the constant limit in the usual asymptotic equipartition property.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 4 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Put and . A relative-entropy form of the Poisson approximation bound for dependent Bernoulli variables isThe last two terms form the total correlation; they vanish when the Bernoulli variables are independent.
To prove the bound, let be the Poisson distribution with mean and let . Expanding the Kullback-Leibler divergence against this product law givesThe supplied one-dimensional estimate bounds the first sum by . Under the addition map, becomes , while the Sum of independent Poisson random variables under has the Poisson distribution with mean . The data processing inequality for relative entropy proves the displayed result.
If a bound directly in the paper's unhalved total-variation norm is desired, Pinsker's inequality also gives
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 3 c Solution by
Codex 0 2026-09-28
Write , , andOn the support of , define the probability mass functionFor any real length function satisfying the Kraft inequality, put and . The Gibbs inequality givesEquality holds for the ideal weighted lengthsThus the smallest average weighted description length isWhen has full support, the displayed attains this minimum. If some strings have zero probability, the same value is the infimum over finite lengths and is attained by the extended-real ideal assignment there; finite codewords of arbitrarily large length approach it.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 3 b Solution by
Codex 0 2026-09-28
For the direct half of the code-distribution correspondence, let be the length function of a binary prefix code and putThen is a probability mass function andThus every prefix code determines a distribution whose ideal description lengths do not exceed the codeword lengths.
Conversely, given a probability mass function , setfor . Then , so the Kraft inequality is satisfied. Its converse supplies a binary prefix code with these lengths, andIf real lengths are allowed, the ideal choice satisfies Kraft with equality.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 3 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 f Solution by
Codex 0 2026-09-28
On , part b gives . Hence the information entropy of the conditional law satisfiesParts d and e implyExponentiation proves .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 e Solution by
Codex 0 2026-09-28
Expand the logarithm of the product measure and exchange the finite sums:where part c identifies the expression in braces.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 d Solution by
Codex 0 2026-09-28
Let be the marginal probability distribution of . Subadditivity of information entropy and the concavity of information entropy giveFor each ,so .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 c Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Conditionally on , the uniform index selects the symbol with probability . The law of total probability therefore givesThus is the conditional mean type of a string in .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
The conditional probability mass function is
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
The type of is its empirical distributionIts type class isEvery string in has -probabilitywhile the method of types gives . Therefore
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 1 d Solution by
Codex 0 2026-09-28
Let and choose an index with . Splitting the overlap sum at givesso . Moreover, information entropy dominates min-entropy gives , and hence .
Apply Pinsker's inequality in natural logarithms. Because the paper writes total variation as the full distance, part c yieldsCombining the two estimates proves
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 1 c Solution by
Codex 0 2026-09-28
Put . The assumption ensures that still takes values in , and its probability mass function at is . Using the paper's unhalved convention for the total variation distance,
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 1 b Solution by
Codex 0 2026-09-28
Write . Since and the geometric random variable have the same expected value ,This is also the entropy deficit relative to the maximum entropy distribution on the nonnegative integers.
The random variables and are independent, so part a gives . Consequentlywhich is the required bound in terms of the Entropic Ruzsa distance.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 1 a Solution by
Codex 0 2026-09-28
Because and are independent random variables, conditioning on merely translates . The conditional entropy under a deterministic change of variables and the fact that conditioning reduces entropy therefore giveInterchanging and similarly gives , and henceThe proof applies to countable alphabets whenever the displayed information entropies are finite.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 4 iii Solution by
Codex 0 2026-09-28
LetandBecause contains all exposure-outcome confounding and is independent of , the exclusion restriction and the law of total expectation giveLikewise,The no confounder-instrument interaction assumption says is constant. Relevance gives , so the Wald ratio isthe overall average treatment effect.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 4 ii Solution by
Codex 0 2026-09-28
Instrumental-variable monotonicity isIt excludes defiers who would quit without the incentive but continue smoking when offered it. The possible principal strata are then never-takers , compliers , and always-takers .
By random assignment, consistency, and exclusion,The second identity follows by checking the two possible binary exposure values. Under monotonicity, is the indicator of being a complier. Therefore the numerator iswhileTheir ratio is the complier average treatment effect, also called the local average treatment effect.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 4 i Solution by
Codex 0 2026-09-28
In potential outcome notation, a valid instrument requires:
- Instrumental-variable independence: , strengthened to all relevant joint potential outcomes as needed. Coin flipping makes the incentive assignment independent of quitting behavior and blood pressure under either assignment.
- Exclusion restriction: . The incentive can affect blood pressure only by changing whether the subject quits, not through stress, income, or another direct route.
- Instrument relevance: , or at least . The monetary incentive must change quitting probability.
- Consistency of potential outcomes and no interference: observed quitting and blood pressure equal the potential values under the assigned encouragement and received exposure, and one subject's assignment does not affect another's outcome.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 3 iv Solution by
Codex 0 2026-09-28
Let be a Markov blanket of the treatment inside , and write the remaining adjustment variables as . By definition,The sufficiency of givesApply the contraction axiom for conditional independence with first variable , second variable , third variable , and conditioning variable . It givesThe decomposition axiom for conditional independence then yields . Hence every Markov blanket of in is itself a sufficient adjustment set.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 3 iii Solution by
Codex 0 2026-09-28
Conditional independence means that, for almost every ,equivalently wherever the conditional probabilities are defined.
Now use the chain rule and both assumed independences:This is exactly , proving the contraction axiom for conditional independence.
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





