Source paper: FOI request thread. The cover identifies Communication Theory, B11a, Friday 24 June 2011, 2.30pm to 4.00pm. Its four readable pages are original private Part B bundle pages 312–315.
Use the continuous convention . Let . Applying the allowed logarithm inequality to for givesHence . Equality forces . Since every is strictly positive, this makes the entire alphabet. Equality in every weighted logarithm inequality then forces for every . Conversely makes every summand zero. ThusThis is Gibbs inequality for relative entropy, with zero probabilities in the first argument handled explicitly.
For the uniform distribution , direct expansion givesPart (a) therefore proveswith equality exactly for for every . Thus the uniform distribution is the unique entropy maximizer.
Normalize the candidate distribution by settingThe supplied finite sum gives its meanThus it meets the constraint. Since , every other distribution with mean satisfiesNonnegativity and the equality case in part (a) proveThe maximum is unique; the entropy comparison uses the fixed mean rather than an unconstrained optimization.
The given logarithmic moment iswhere the term is zero. It is attained by the positive distributionwhose probabilities sum to one. Write , so . For any distribution with the required logarithmic moment,Consequently the unique maximizer and its entropy areThe increasing weights are consistent with the prescribed moment; they need not be a decreasing power law.
Write . For each row put ; the positive row entries form a probability distribution because the row sum is one. When , define the probability distributionPart (a), applied on this row support, gives . Its weighted sum expands asRows with contribute zero, since all in such a row vanish. Using the convention that zero-weight logarithmic terms are zero, the result isBoth stochasticity conditions have a role: row sums normalize the comparison distributions, while column sums preserve the total contribution from .
A binary code assigns a finite binary word to each source symbol . In the ordinary unframed convention these codewords are nonempty. It is uniquely decodable when concatenation gives an injective map from finite symbol strings to bit strings:The decoder can recover the entire symbol sequence without being told where codewords end. This is stronger than merely assigning distinct words to individual symbols.
An instantaneous code can decode each symbol as soon as its final bit arrives, without waiting for later bits. Equivalently it is prefix-free: no codeword is a proper prefix of another, and different symbols receive different codewords.
For nonempty codewords, decoding greedily from the start of the bit string identifies the first codeword unambiguously; repeating identifies the whole sequence. Thus an instantaneous code is uniquely decodable under the ordinary nonempty-word convention.
The codeword lengths are integers. For necessity, take and view codewords as nodes of the binary tree. A codeword of length has descendant words at depth . Prefix-freeness makes these descendant sets disjoint, soFor sufficiency, reorder the lengths nondecreasingly. Assign words successively. At depth , words extending previously assigned codewords numberThe asserted inequality, even after dropping the later nonnegative terms, givesThus at least one depth- word does not extend an earlier word. Choose it. Since lengths are nondecreasing, it cannot be a proper prefix of a shorter earlier word, and equal-length duplicates have been excluded. Induction constructs the required code. Therefore Kraft inequality is necessary and sufficient:
For the construction, take the Shannon lengths . Then , so Kraft's condition holds. Also for every . Averaging givesFor a nontrivial alphabet all , so these lengths are positive and the ordinary code convention applies. For a deterministic one-symbol source, the usual zero-bit convention uses when the number of source symbols is externally known. If strictly nonempty codewords and arbitrary unframed message lengths are required instead, that degenerate case has and cannot satisfy the printed strict upper bound. This convention issue does not affect sources with at least two symbols.
Let and let be the probability cell of symbol . Its midpoint is . Use the binary expansion terminating in zeros at a dyadic rational, so truncation to bits givesThe chosen codeword corresponds to the dyadic interval . It contains , and its width satisfies . ConsequentlyThus . The probability cells are disjoint, so the code intervals are disjoint. If one binary codeword were a prefix of another, its dyadic interval would contain the other's interval, contradicting this disjointness. Hence the code is instantaneous.
Finally, . Multiplying by and summing yieldsThis is the Shannon-Fano-Elias code: the extra bit makes the dyadic interval narrow enough to remain inside the cell around its midpoint.
For finite-valued random variables, their mutual information isEquivalently,with zero joint-probability terms omitted. It is the relative entropy of the joint law from the product of its marginals and is nonnegative, with equality exactly when the two variables are independent.
A discrete memoryless channel has finite input and output alphabets and fixed conditional probabilities , whose rows sum to one. Memorylessness means that for successive uses, conditional on the input sequence, the output probabilities factor as the product of these one-use conditional probabilities.
Its information capacity in bits per use isThe maximization varies the input distribution while keeping the channel matrix fixed. The output distribution is in the row-vector convention.
Let be the selected block, and write . Because both the input and output alphabets are disjoint across blocks, is determined by either the input or the output. The mutual-information chain rule therefore givesFor any fixed , equality is achievable by using a capacity-achieving distribution inside each block. It remains to maximize this binary expression.
Put and . A direct expansion of binary relative entropy yieldsPart 1(a) makes the maximum , uniquely at . HenceThe block choice itself communicates information, in addition to any information sent within the selected block.
There are three distinguishable output groups: columns can arise only from input one; column can arise from inputs two or three, whose rows are identical; and columns can arise only from input four.
Each group has zero internal channel capacity. A block with one input cannot carry a variable input choice, and the middle block has identical output laws for both of its inputs. Combining the three disjoint zero-capacity blocks therefore givesEquivalently, the output identifies exactly which of these three groups was used, so mutual information is the entropy of that group label. It is maximized when all group probabilities are one third. The capacity-achieving input distributions are preciselySplitting the middle probability arbitrarily cannot communicate an extra distinction because its two channel rows agree.
For any chosen input distribution, the chain rule and nonnegativity of conditional mutual information giveand likewise . Choosing an input distribution attaining either marginal capacity proves .
For the upper bound, conditional independence implies , while entropy subadditivity gives . ThereforeMaximizing over the input law givesMore precisely, under the conditional-independence assumption,The outputs may be dependent through the common input, and this final term measures the information they share rather than add independently.
Communication Theory, Thursday 17 June 2010, 9.30am–11.00am. The complete four-page source was supplied through the past-papers disclosure, in original Part B bundle pages 244–247. The private editable transcription retains the complete cover and all three questions. No exact worked-answer advertisement was found in the bounded availability check.
A binary code assigns a finite bit string to each source symbol. Use nonempty codewords for an unframed variable-length stream. The code is uniquely decodable if no two distinct finite sequences of source symbols produce the same concatenated bit string. It is a prefix-free code if no codeword is an initial segment of a different codeword.
To prove unique decoding of a prefix code, suppose two concatenations agree. Their first codewords both begin the same bit string, so the shorter is a prefix of the longer. The prefix condition forces the first codewords to be equal. Cancel them and repeat. Since the codewords are nonempty, this process ends with both symbol sequences exhausted at the same time; otherwise a nonempty remainder could not equal the empty string. Hence the source sequences agree.
The code is not a prefix code, since is a prefix of . Nevertheless it is uniquely decodable: decode from the right. A final forces the last codeword to be , whereas a final forces it to be . Removing that final word recursively gives a unique parsing. Thus the converse fails.
Put and let be the largest length. Expanding sums over all strings of source symbols, where is the total code length. By unique decodability, the concatenations of length in this sum are all distinct, so there are at most of them. Since ,Taking th roots and sending to infinity proves the Kraft–McMillan inequalityNow is a probability distribution. With base-two logarithms, Gibbs inequality givesTerms with contribute zero. ThereforeThe normalization by is important: the raw numbers need not sum to one.
For the nontrivial case , every andThe probability ordering makes . At a dyadic number, choose the terminating binary expansion followed by zeros. Let be the first bits of , and letbe its binary cylinder interval.
Suppose and were a prefix of . Since , the numbers and would have the same first bits, so both would lie in . In particular . Buta contradiction. A later word cannot be a shorter prefix of an earlier word because the lengths are nondecreasing; equal-length coincidences were also excluded. Thus the cumulative Shannon code is a prefix code.
The ceiling inequalities giveMultiply by and sum to obtainFor a one-symbol deterministic source the displayed construction assigns the empty word and gives . This zero-bit convention is valid when the number of source emissions is supplied separately. It is not an unframed uniquely decodable code: concatenating different numbers of empty words gives the same bit string. If positive-length unframed words are required, the shortest deterministic code has length , so the strict upper bound requires the nontrivial-source assumption.
For finite-valued random vectors, write and . The conditional entropy is the average entropy of the posterior distributions:Equivalently, . Since , splitting the logarithm givesUse the usual convention and omit conditionals at zero-probability outputs. The same identities hold for countable alphabets whenever the entropy sums are well-defined, without subtracting two infinite quantities.
Set . Given , the value of is certain, so . Applying the entropy identity in the two orders givesbecause conditional entropy is nonnegative. ConsequentlyA deterministic coarsening can merge distinguishable source outcomes, but cannot create additional Shannon entropy.
Choose a most probable symbol , and let . Its binary entropy isSince is a function of , part (a)(ii) gives . On , the concave function lies above the chord joining and . That chord has height . ThereforeThe endpoint is included by continuity and corresponds to a deterministic source.
Every positive atom has probability at most , so . Averaging yieldsFor , the supplied inequality gives . Rearranging provesThe two regimes combine into the entropy lower bound from the largest atom, valid for every finite probability distribution.
Given an output of positive probability, the ideal observer chooses a symbol maximizing the posterior:Ties may be broken arbitrarily, and the choice at an impossible output does not matter. This is maximum a posteriori decoding. It minimizes conditional error at each , because a deterministic decision is correct with probability ; a randomized decision is a weighted average of these success probabilities and cannot exceed their maximum.
Write . Then . Applying the two cases from part (b) to the posterior distribution givesAverage with respect to the output law to obtain the conditional entropy upper bound on minimum decoding error:This is an upper bound on the optimum error probability; it does not hold for arbitrary deliberately poor decoding rules.
For a finite joint distribution, the mutual information isZero-probability terms contribute zero. It measures the reduction in uncertainty about one variable upon observing the other.
A discrete memoryless channel has discrete input/output alphabets and a fixed transition matrix . Over successive uses it obeysThus the output at a use depends on that input and no other channel history. Its channel capacity isin bits per use for base-two logarithms. On finite alphabets the maximum exists by continuity on the probability simplex; for more general discrete alphabets one uses a supremum.
Fix the channel matrix . The mixed input induces the mixed output . The concavity of information entropy impliesFor completeness, the difference is by Gibbs inequality, including zero coordinates with the usual conventions.
On the other hand, conditional output entropy is linear in the input law:Subtracting gives the concavity of mutual information in the input distribution:This makes maximizing mutual information over the input probability simplex a concave optimization problem: a local maximum is global. It also justifies averaging input distributions over channel symmetries when searching for an optimum, since symmetry averaging cannot lower the achieved mutual information. The channel itself is held fixed throughout.
Let the input probabilities be and put . The output distribution and conditional entropy areFor fixed , the first and third output masses sum to . Their entropy is maximized when they are equal, so . Equivalently, if ,The same bound holds at by continuity. Therefore , with equality for symmetric outer input probabilities. Writing , differentiate:The unique zero is ; strict concavity makes it the global maximum. Thus andThe optimum output is .
Every row has Shannon entropy , so for every input law. Since the output alphabet has three symbols, Gibbs inequality gives . The uniform input givesso it attains the upper bound. ThereforeUniform output is necessary for equality in the entropy bound, and the three displayed equations then force the uniform input, so this optimum input law is unique.
Let the input law again be . The second output symbol has probability regardless of the input, and the two remaining output probabilities sum to . Hencewith equality when the first and third output symbols each have probability . The row entropies are , soTake and . The output is and both bounds are attained. ThereforeThe equality conditions also show uniqueness of the optimum input law. The middle row is the average of the outer rows and carries extra conditional entropy without introducing a new output law; removing a redundant input symbol from a channel explains why it need not be used.
Mutual information along symmetric input distributions for the three channels
. The first two channels attain log2(3/2) at uniform input, while the third attains one half bit by omitting its middle input. Details.Communication Theory, Trinity Term; Thursday 18 June 2009, 9.30am–11.00am. This shared Part B paper was set for Mathematics, Mathematics and Computer Science, Mathematics and Philosophy, and Mathematics and Statistics. The full three-page source and editable transcription are retained privately. The source was supplied through the past-papers disclosure, in original Part B bundle pages 184–186. No exact worked-answer advertisement was found in the bounded check.
For finite-valued random vectors, the conditional entropy is the average of the entropies of the conditional distributions:Use and omit zero-probability conditioning events. Equivalently,The base two makes all information quantities measured in bits; changing the logarithm base scales them by a positive constant and preserves the inequalities.
Apply Gibbs inequality to the joint distribution and the product of its marginals. Restrict to the Cartesian product of their positive supports, so the reference probabilities are strictly positive as the supplied inequality requires. Expanding givesThis proves the second inequality. For the first, apply the same argument to the conditional joint distribution of for each with , and average with those probabilities:Here the conditional support restriction again removes zero marginal probabilities. ThusThe nonnegative differences are conditional mutual information and mutual information, respectively.
Factoring a joint probability into successive conditional probabilities and taking the expected negative logarithm gives the chain rule for entropy:At this means the unconditional entropy. Removing conditioning can only increase each term by part (a), so .
Write for the vector omitting coordinate . Another application of the chain rule gives . ThereforeDivide by to obtain the required averaged inequality. The case is excluded precisely because that denominator vanishes.
The chain rule for entropy, with placed last, givesSince includes all the preceding coordinates, conditioning monotonicity givesThis proves the first assertion for every , including . Sum over : the conditional terms on the right sum to by the ordinary chain rule. ThusThis is Han's entropy inequality.
For each , conditioning on all the other coordinates gives no greater conditional entropy than conditioning only on the preceding ones. Summing and using the chain rule for entropy gives directlyEquivalently, the left side is , so the same conclusion follows from Han's entropy inequality. The direct proof also covers , interpreting conditioning on an empty vector as no conditioning.
In the terminology used here, a block code assigns a distinct word of the same length to every source symbol. For a binary code with symbols this common length must satisfy . The equal-length property is what matters in this question; elsewhere the term can also refer more generally to coding blocks of source symbols.
A prefix code has no codeword that is a proper prefix of another. Its code tree therefore places source symbols at leaves. It is instantaneous because the decoder knows that a source symbol has ended as soon as its leaf is reached, without needing to inspect later transmitted symbols.
A compact code or optimal prefix code minimizes the expected codeword length for the given source probabilities and coding alphabet. The relevant comparison here is among binary prefix codes. The minimum is also the minimum among uniquely decodable codes, since the Kraft-McMillan inequality permits every uniquely decodable length list to be realized by a prefix code with the same lengths.
Every internal node of an optimal binary prefix tree has two children. If one had only one child, remove that one-edge detour from all descendant words. Prefix-freeness is preserved and at least one positive-probability word becomes shorter, strictly lowering the expected length. Thus the tree is full.
Take a leaf at maximum depth . Its sibling exists because the tree is full. That sibling cannot be an internal node, since a descendant would be deeper than . Hence it is another leaf at depth , and the corresponding codewords differ only in their final bit. This is the deepest sibling property of an optimal prefix code.
A finite full binary tree satisfies Kraft equality, , by dividing mass equally down each branch from the root. If all lengths were at least , with at least one strictly greater, that sum would be less than , a contradiction. Since the code is not a block code, the alternative that all lengths equal is excluded. Therefore some word has length below . Also a longest word must have length above : if all lengths were at most and some shorter, the Kraft sum would exceed one.
Suppose every sum of two distinct probabilities exceeds every third probability. If an optimal code were not a block code, part (b) gives two deepest sibling leaves at depth and a leaf at depth . Replace the sibling pair by a leaf labelled , and replace the former leaf by two children labelled . The resulting tree is still a prefix tree, and other word lengths are unchanged. The change in expected length isHere . This contradicts optimality. Thus every optimal code is a block code.
Conversely, suppose distinct satisfy . Starting with the complete length- code, arrange as a sibling pair, which is possible by permuting the source labels. Its parent at depth does not contain . Label that parent , and split the old leaf into children . This gives lengths for , for , and otherwise, with expected lengthIf the optimal mean length is below , no optimal code can be a block code: any injective binary block code for symbols has length at least . If the optimal mean is , the constructed non-block code itself is optimal. In either case there is an optimal non-block code. This proves the reverse implication, including the equality case, and hence the strict inequality in the criterion is necessary.
Articles were limited to the first 100 out of 173 total.
Articles by others on the same topic
There are currently no matching articles.

