Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 3 c Solution 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 ii Paper 2 37A b Solution Created 2026-09-24 Updated 2026-09-25
The mean extension in an ensemble of molecules iswith constraints and . For occupancies , the number of assignments of the distinguishable ensemble members to the states is the multinomial coefficientThus maximizing the probability at fixed and is equivalent to maximizing the stated Lagrange multiplier expression.
Because , the Stirling formula gives . Differentiating with respect to each givesNormalization by therefore yields the probability mass functionHere is the fixed-tension partition function that normalizes the probabilities.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 3I a i Solution Created 2026-09-24 Updated 2026-09-25
A Bernoulli source is a sequence of independent and identically distributed random variables with a common probability mass function on the finite alphabet .
The source is reliably encodable at rate if, for each block length , there are an encoder with at most outputs and a decoder such that the block error probabilitytends to zero as .
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 224 2 a Solution Created 2026-09-24 Updated 2026-09-25
Let be probability mass functions on a finite alphabet, with absolutely continuous with respect to . A decision region accepts the null law . Writefor its type-I and type-II errors. Stein's lemma states that for every fixed ,where logarithms and relative entropy use base two.
For achievability, letUnder , the normalized log-likelihood ratio converges in probability to by the weak law of large numbers, so . On , , whence .
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 224 3 e Solution Created 2026-09-24 Updated 2026-09-25
Let and define the exponentially tilted probability mass functionFor this choice every ratio equals , so equality holds in the Jensen inequality used in part (d). Henceand is the maximizer. This is the finite-alphabet Gibbs variational principle for relative entropy.
Weakly typical sequence 2026-10-05
For an IID random variable source with probability mass function , a word is weakly typical when . It has probability on the scale . The weak law of large numbers makes the typical set probable, but does not make every word in it representative: for a uniform source every possible word is weakly typical.
Zero-truncated Poisson distribution 2026-10-05