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 gives
Hence . 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. Thus
This is Gibbs inequality for relative entropy, with zero probabilities in the first argument handled explicitly.
For the uniform distribution , direct expansion gives
Part (a) therefore proves
with equality exactly for for every . Thus the uniform distribution is the unique entropy maximizer.
Normalize the candidate distribution by setting
The supplied finite sum gives its mean
Thus it meets the constraint. Since , every other distribution with mean satisfies
Nonnegativity and the equality case in part (a) prove
The maximum is unique; the entropy comparison uses the fixed mean rather than an unconstrained optimization.
The given logarithmic moment is
where the term is zero. It is attained by the positive distribution
whose probabilities sum to one. Write , so . For any distribution with the required logarithmic moment,
Consequently the unique maximizer and its entropy are
The 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 distribution
Part (a), applied on this row support, gives . Its weighted sum expands as
Rows with contribute zero, since all in such a row vanish. Using the convention that zero-weight logarithmic terms are zero, the result is
Both 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, so
For sufficiency, reorder the lengths nondecreasingly. Assign words successively. At depth , words extending previously assigned codewords number
The asserted inequality, even after dropping the later nonnegative terms, gives
Thus 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:
First consider any instantaneous code. Put and . Part 1(a) gives
so .
For the construction, take the Shannon lengths . Then , so Kraft's condition holds. Also for every . Averaging gives
For 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 gives
The chosen codeword corresponds to the dyadic interval . It contains , and its width satisfies . Consequently
Thus . 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 yields
This is the Shannon-Fano-Elias code: the extra bit makes the dyadic interval narrow enough to remain inside the cell around its midpoint.
Figure 1. . An original example with probabilities two fifths, three tenths, one fifth, and one tenth. Each orange dyadic code interval contains its black midpoint and lies inside its blue probability cell, proving that the displayed codewords cannot be prefixes of one another. Details.
For finite-valued random variables, their mutual information is
Equivalently,
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 is
The 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 gives
For 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 yields
Part 1(a) makes the maximum , uniquely at . Hence
The 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 gives
Equivalently, 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 precisely
Splitting 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 give
and likewise . Choosing an input distribution attaining either marginal capacity proves .
For the upper bound, conditional independence implies , while entropy subadditivity gives . Therefore
Maximizing over the input law gives
More 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.

Articles by others on the same topic (0)

There are currently no matching articles.