Past exam of the mathematics course of the University of Cambridge 2007 ii Paper 2 11G Solution Created 2026-09-24 Updated 2026-10-14
For a discrete memoryless channel, its channel capacity in bits per use is . The Shannon second coding theorem identifies this with the supremum of rates achievable by arbitrarily long block codes with error probability tending to zero: every rate below is achievable, and no rate above can have vanishing error. The channel is used independently at each transmission, and coding rate is measured using base-two logarithms.
Let be the probability of using the second input symbol. The second output symbol occurs with probability , so . The first input has deterministic output and the second has one bit of conditional output Shannon entropy; hence andFor , its derivative is , which vanishes at . Strict concavity of binary entropy makes this the unique global maximum. Substituting givesThus Shannon's theorem supplies operational coding rates arbitrarily close to this value from below, and rules out reliable transmission above it.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 60 2 i b Solution Created 2026-10-03 Updated 2026-10-06
The Shannon second coding theorem states that the operational channel capacity of a finite discrete memoryless channel is : rates below this maximum admit block codes with error tending to zero, and rates above it cannot have vanishing error. For this channel the preceding calculation givesusing maximum entropy on a finite alphabet. The transition matrix is a doubly stochastic matrix. Therefore the uniform input has uniform output: . It achieves the entropy upper bound, and henceEquivalently this is the weakly symmetric channel capacity theorem: permutations of a common row and equal column sums make the uniform input optimal. If is uniform, the output contains no information about the input and the formula gives zero.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 11G Solution Created 2026-09-24 Updated 2026-10-05
For a discrete random variable with probabilities , its Shannon entropy in bits is , with . Gibbs inequality states thatwith equality exactly when . If , the left side is infinite. Otherwise apply to for :Equality requires on the support and no remaining mass outside it. In particular, comparison with the uniform probability distribution on two outcomes gives binary Shannon entropy at most .
Write . For , grouping the last two outcomes givesEquality holds if ; if it also holds, and then both are zero. Thus equality holds exactly when .
For the discrete memoryless channel, assume and , and set . Both conditional output probability distributions have Shannon entropy . The third output has probability regardless of the input; the first two have total probability . Their Shannon entropy is maximized by making them equal, which a uniform input achieves. Hence the channel capacity isand thereforeThe usual zero-times-log convention includes , when . If , the rows coincide and every input achieves zero mutual information; otherwise the uniform input is the unique maximizing input.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 3I a Solution Created 2026-09-24 Updated 2026-09-29
For a discrete memoryless channel with input and output , its information capacity iswhere is the mutual information and the maximum is over all input distributions. Capacity is measured in bits when logarithms have base two.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 3K Solution Created 2026-09-23 Updated 2026-09-25
A discrete memoryless channel has finite input alphabet , finite output alphabet , and transition probabilities ; successive outputs are conditionally independent given the corresponding inputs. The Shannon second coding theorem states that rates belowadmit block codes with error probability tending to zero, whereas rates above cannot have vanishing error.
For any joint input law of , conditional independence of the product channel givesChoose and independently with capacity-achieving input laws for their respective channels. Then the inequality becomes equality, so the product-channel capacity is
Suppose one row of a finite discrete memoryless channel is a convex combination of other rows: . Deleting input leaves the channel capacity unchanged. Given any input law with mass on , move that mass to the other symbols in proportions . The output law stays the same. By the concavity of information entropy, , so this replacement cannot increase conditional entropy and cannot decrease mutual information. Taking maxima proves the claim; the smaller channel is also trivially a restriction of the original one. If the entropy inequality is strict, every positive use of the redundant row is strictly suboptimal compared with its redistribution.
Weakly symmetric channel capacity Created 2026-09-24 Updated 2026-10-25
For a discrete memoryless channel with output symbols, suppose every row of the transition matrix is a permutation of every other row and all column sums agree. Such a communication channel hasThe row Shannon entropy is the same for every input, so has that fixed value for every input probability distribution. The remaining term is at most by maximum entropy on a finite alphabet.
A uniform input attains the bound. If there are input symbols, the total of all transition probabilities in the matrix is ; equal column sums must therefore each be . Multiplication by the uniform input mass gives output mass in each column. Hence , which proves the displayed formula. The cyclic ternary channel capacity, binary symmetric channel capacity, and ternary symmetric channel capacity are concrete applications of this symmetry calculation.