For a finite-alphabet erasure channel with input symbols, . Maximizing Shannon entropy at the uniform input gives channel capacity bits per use, by the Shannon second coding theorem.
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 gives
using 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 hence
Equivalently 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.
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 therefore
Equivalently, 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.
A reliable transmission rate means that length- codes can carry messages with tending to at least while the probability measure of the decoding-error event tends to zero. By the Shannon second coding theorem, the supremum of reliable rates is the binary symmetric channel capacity
For small positive , the binary entropy function has the asymptotic expansion
so starts at one bit per channel use and decreases rapidly from one as errors are introduced.
For a binary symmetric channel with crossover probability , the capacity is
where is the binary entropy. Shannon second coding theorem says that for every transmission rate and every , sufficiently long block codes exist with rate at least and decoding-error probability below ; conversely, a sequence of codes whose error tends to zero cannot have limiting rate above .
For the general channel let and be its input and output. Every conditional output distribution is a permutation of , hence
for every input distribution. Since ,
The uniform input makes every output probability equal to : the column-permutation assumption and the total sum imply that all column sums are equal to one. It therefore attains , proving
In the displayed four-output channel each row is a permutation of
With base-two logarithms,
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 below
admit 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 gives
Choose and independently with capacity-achieving input laws for their respective channels. Then the inequality becomes equality, so the product-channel capacity is
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 is
If , 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 identifies
For the present channel,
The output entropy is at most one bit, with equality for a uniform input. Hence the binary symmetric channel capacity is
bits per channel use.
Shannon second coding theorem states that the operational capacity of a discrete memoryless channel equals
every rate below is achievable with error probability tending to zero, while rates above are not.
Put . If , then , so is recovered exactly and bit. If , the two output supports
are disjoint, so again determines and .
If , one output value is common to both inputs and occurs with probability independently of the input, while either of the other two values reveals the input. The channel is therefore a binary erasure channel with erasure probability , whose capacity is bit. Hence