The specified transition law is a binary erasure channel. For an input bit with , its Shannon entropy is the binary entropy . A non-erased output determines , whereas the erasure symbol leaves its probability distribution unchanged because the erasure event is independent of . ThusMaximizing the mutual information over the input probability distribution, with equality at , givesThis includes , a noiseless binary channel, and , a completely erased channel with zero channel capacity.
Past exam of the information theory course of the University of Oxford 2023 3 c iii Solution 2026-10-25
For , the total number of forward channel uses is , so the random code rate of a message with bits isThe independent and identically distributed random variables have finite expectation . By the strong law of large numbers,Thus the protocol reaches the binary erasure channel channel capacity in its asymptotic forward throughput while guaranteeing zero error on every completed message. Its random transmission length and use of channel feedback distinguish it from the fixed-length channel codes in part (b). Independent erasure indicators suffice for this calculation; the message bits themselves need not be independent or uniformly distributed. At , the algorithm never produces a completed transmission, so as a completed-code rate is undefined; the physical throughput is zero.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 35 3 Solution Created 2026-10-03 Updated 2026-10-14
The channel capacity is the supremum of reliable communication rates: a rate bits per use is achievable if block encoders and decoders using channel uses can transmit messages with error probability tending to zero and .
A discrete memoryless channel has fixed transition probabilities on finite input and output alphabets, andIts single-letter capacity formula iswith logarithms to base two. The Shannon second coding theorem identifies this maximum with the operational reliable rate.
For the binary erasure channel, use output symbols , where is a recognizable erasure flag. Given input , the output is with probability and with probability . If , the output probabilities are . Thus, writing for binary entropy,and . Its maximum is attained by the uniform input , givingIn particular the noiseless and complete-erasure endpoints have capacities one and zero. The erasure flag reveals which positions were lost; it does not reveal the erased input values.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 37 4 a Solution Created 2026-10-03 Updated 2026-10-14
A discrete memoryless channel is specified by discrete input and output alphabets and a transition probability , with and . Its successive outputs are conditionally independent given the inputs, with the same transition rule at every use:Operationally, its channel capacity is the supremum of communication rates in bits per use attainable by increasingly long block codes with decoding error probability tending to zero. For finite alphabets, the equivalent Shannon characterization iswhere is Shannon entropy, is classical conditional entropy, and the maximization is over the input probability distribution.
For the channel in question, the transition matrix, with input symbols indexing rows, isEvery row has the same Shannon entropy, namely the binary entropy . Consequently for every input probability distribution. Since the output has three symbols, the maximum entropy on a finite alphabet givesChoose a uniform input. Each column of sums to one, so for every output symbol and the upper bound is attained. FinallyThus the cyclic ternary channel capacity isachieved by a uniform input probability distribution. This is a weakly symmetric channel capacity calculation: the matrix rows are permutations and the column sums agree. The channel is not the usual ternary symmetric-error channel, since an error has only one possible changed output for each input.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 4 4J Solution Created 2026-09-24 Updated 2026-10-14
Reliable transmission at rate means that there is a sequence of binary block codes of lengths , message counts with , and decoding error probabilities tending to zero. The Shannon second coding theorem identifies the supremum of reliable rates with the channel capacity.
For a binary symmetric channel, the conditional entropy of the output given any input bit is . The output entropy is at most one bit and attains one for uniform input, so the maximum mutual information isAll rates strictly below are achievable, and rates above are not reliable; this states the supremum without claiming achievability of every boundary rate under every convention.
For very small , the capacity is close to one, with . At , the output is independent of the input and capacity is zero. For , flipping every received bit converts the channel to crossover probability ; its capacity is unchanged because . At the deterministic bit flip is perfectly reversible.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 30 3 b Solution Created 2026-10-03 Updated 2026-10-14
The Shannon second coding theorem says that a memoryless channel permits transmission at any fixed code rate with error probability tending to zero as block length tends to infinity. Conversely, a sequence of codes with error probability tending to zero cannot have a limiting rate above . The channel capacity, in bits per use, isFor a finite discrete memoryless channel with transition probabilities , the supremum is a maximum and its mutual information isFor a general memoryless channel, mutual information is the relative entropy of the joint input-output law with respect to the product of its marginal laws; the same supremum is taken over the admissible input laws.
For the binary symmetric channel, write with independent noise having Bernoulli distribution of parameter . Given either input bit, the output conditional entropy is . ThusAn input with uniform distribution makes the output have uniform distribution, attaining . The binary symmetric channel capacity is therefore
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 4G Solution Created 2026-09-24 Updated 2026-10-14
Shannon second coding theorem identifies the channel capacity of a discrete memoryless channel as : rates below admit block codes with error probability tending to zero, whereas a rate above cannot achieve vanishing error. Entropies here are measured in bits. For a binary erasure channel, a non-erased output determines its input exactly, while an erasure, independent of the input, leaves the original uncertainty unchanged. If , thenThe binary entropy function has maximum one at . ThereforeThis includes the noiseless case and the wholly erased case .
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 2010 ii Paper 1 12H Solution Created 2026-09-24 Updated 2026-10-14
A binary symmetric channel flips each transmitted bit independently with probability . A length- channel code specifies input words and a decoding rule; its rate is , and its error probability is the probability of a wrongly decoded message. The channel capacity is the supremum of asymptotically achievable rates with vanishing error. For , put , with . The Shannon second coding theorem here statesWe prove achievability and the converse rather than using the formula as a substitute for a coding argument. Output complementation reduces to , so first assume .
Fix . Choose such that and . Independently choose uniformly random input words. Decode a received word to the unique codeword within Hamming distance , declaring error if there is none or more than one. The weak law of large numbers says the empirical fraction of independent Bernoulli- errors tends in probability to , so exceeding this distance has probability tending to zero.
For any independently chosen competing codeword, its probability of lying in this ball is , whereIndeed follows by bounding the probability of exactly successes in a binomial experiment with parameter by one, and increases on . A union bound therefore bounds the ensemble-average decoding error bySome deterministic code is at least as good as this average. Expurgating the half of messages with greatest individual error makes the maximum message error at most twice the original average, and changes the rate by at most . This proves achievability even for maximum-error probability.
For the converse, take uniform messages and any deterministic code/decoder. The independent noise word has probability . Its normalized negative log-probability tends in probability to by the same law. Thus, outside an event of probability tending to zero, each noise word has probability at most . The decoder's disjoint decision regions contain at most received words in total. HenceAt rates bounded above capacity by a positive amount, choose smaller and obtain success probability tending to zero. This establishes the strong converse as well as the ordinary impossibility of reliable transmission above .
When the output is independent of the input, so success probability for uniform messages is at most and . At or the channel is noiseless or deterministically inverted; all words can be distinguished, so . These endpoints complete the theorem.
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 2015 iii Paper 66 4 iii Solution Created 2026-10-03 Updated 2026-10-06
Use the Shannon second coding theorem in its channel capacity form . The finite-alphabet erasure channel erases independently of the input. On an unerased output Bob knows exactly; on the erasure output his posterior distribution is still . Its classical conditional entropy is thereforeEquivalently, and , so the binary entropy terms cancel in the mutual information.
For an alphabet of size , Shannon entropy is at most , with equality for the uniform distribution. Maximizing the displayed mutual information proves the capacity of a finite-alphabet erasure channel:This includes , which transmits the whole symbol, and , which transmits no information.
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 2019 ii Paper 3 3G iii Solution Created 2026-09-24 Updated 2026-10-03
If , complementing every received bit converts the channel into a binary symmetric channel with crossover probability . This deterministic and invertible output relabelling does not change the channel capacity. Since ,Thus the capacity rises again from zero as increases beyond , reaching one at , where every bit is flipped deterministically and can be recovered by complementation.
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 2023 ii Paper 1 11I a Solution Created 2026-09-24 Updated 2026-09-25
A binary symmetric channel independently flips each input bit with probability , so, with rows indexed by the input and columns by the output, its channel matrix isIf , complementing every received bit converts the channel into one with crossover probability without changing its information-carrying ability. The case has identical rows and capacity zero, so it suffices to study .
The Shannon second coding theorem states that for every rate below the channel capacity there are arbitrarily long codes whose decoding error tends to zero, whereas no sequence of codes with rate above capacity can have vanishing error. It also identifiesFor the present channel,The output entropy is at most one bit, with equality for a uniform input. Hence the binary symmetric channel capacity isbits per channel use.
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.
With channel feedback, resend each message bit through a binary erasure channel until a non-erased copy arrives, then move to the next bit. The channel decoder deletes erasure symbols, giving the message without error whenever transmission completes. For , the waiting times have an independent and identically distributed geometric distribution with expectation , so every finite message completes almost surely. The strong law of large numbers gives forward code rate , matching channel capacity. At , transmission never completes. Independent erasure indicators, rather than independent message bits, are the essential hypothesis.
Three-input two-point additive-noise channel 2026-10-25
Let the input alphabet be and let the output be , where independent noise is uniform on two distinct integers. Translating the output alphabet reduces the noise to , . The reachable output alphabet has size : it is the union of two three-element intervals shifted by .
For , every row of the transition matrix has conditional information entropy one bit, so . Input probabilities make the output uniform and attain one bit per use. For , the two translated input alphabets are disjoint and every output identifies its input. A uniform input then attains bits per use.
For , reflection symmetry and concavity of information entropy permit restricting to input probabilities . Conditional on output parity, outputs whose labels are even integers have probabilities and outputs whose labels are odd integers have probabilities . Consequently . Its strictly negative second derivative and stationary equation give and channel capacity . All three values follow from overlap of translated input alphabets, rather than from output alphabet size alone.