Discrete Memoryless Channels, Mutual Information Maximization, and Channel Capacity
Anchor (Master): Cover & Thomas 2006 Elements of Information Theory 2e (Wiley) §7.1-7.5; Csiszár & Körner 2011 Information Theory: Coding Theorems for Discrete Memoryless Systems 2e (Cambridge) §3.1-3.3; Shannon 1948 A Mathematical Theory of Communication §§11-12 (the channel capacity theorem and its operational significance)
Intuition Beginner
Imagine you are sending a single bit — a 0 or a 1 — across a noisy wire. Most of the time the bit arrives intact, but occasionally the wire flips it. The wire does not remember what it did to the previous bit; each transmission is an independent event. This is a channel: a physical (or mathematical) process that takes an input symbol and produces an output symbol, with some probability of corrupting it.
A channel is completely described by a simple table: for every input, what is the probability of each possible output? For the noisy wire, the table says: if you send 0, you receive 0 with probability 0.99 and 1 with probability 0.01; if you send 1, you receive 1 with probability 0.99 and 0 with probability 0.01. This table is the transition matrix, and it captures everything there is to know about the noise.
Not all channels are binary. A printer might receive a pixel value and produce one of three outputs: the correct colour, a smeared version, or a blank. An optical fibre might receive a light pulse and detect either a pulse, no pulse, or an ambiguous signal. In every case, the channel is defined by its transition matrix: a row for each input, a column for each output, and probabilities in each cell that sum to one across each row.
The central question is: how much information can you push through a given channel per symbol, reliably, in the limit of many uses? That quantity is the channel capacity, measured in bits per channel use. A noiseless binary channel carries 1 bit per use — you get out exactly what you put in. A very noisy channel carries almost 0 bits per use — the output tells you almost nothing about the input. The capacity is a single number that captures the maximum reliable communication rate.
Visual Beginner
Figure: two channel diagrams side by side. On the left, a binary symmetric channel (BSC) with crossover probability : two input nodes (0 and 1) on the left, two output nodes (0 and 1) on the right. Arrows from each input to each output are labelled with probabilities: 0→0 at 0.9, 0→1 at 0.1, 1→1 at 0.9, 1→0 at 0.1. On the right, a binary erasure channel (BEC) with erasure probability : two input nodes (0 and 1), three output nodes (0, e, 1). Arrows: 0→0 at 0.8, 0→e at 0.2, 1→1 at 0.8, 1→e at 0.2.
| Channel | Input alphabet | Output alphabet | Capacity | Key parameter |
|---|---|---|---|---|
| Noiseless binary | {0, 1} | {0, 1} | 1 bit/use | none |
| BSC (p = 0.1) | {0, 1} | {0, 1} | 0.531 bit/use | crossover p |
| BSC (p = 0.5) | {0, 1} | {0, 1} | 0 bit/use | crossover p |
| BEC (e = 0.2) | {0, 1} | {0, 1, e} | 0.8 bit/use | erasure e |
| BEC (e = 1.0) | {0, 1} | {0, 1, e} | 0 bit/use | erasure e |
The pattern: more noise means less capacity. At the extremes, a perfectly reliable channel carries 1 bit per use (for binary input), and a completely noisy channel carries 0.
Worked example Beginner
A binary symmetric channel flips each bit independently with probability . What is its capacity?
Step 1. The channel takes 0 or 1 as input and produces 0 or 1 as output. Each bit is flipped with probability 0.1 and transmitted correctly with probability 0.9.
Step 2. The mutual information measures how much the output tells you about the input. For this channel, if you use a fair coin at the input (send 0 with probability 0.5 and 1 with probability 0.5), then:
- bit (the output is also uniform, because the symmetry preserves balance).
- bits.
So bits.
Step 3. The capacity is the maximum of over all input distributions. For the binary symmetric channel, the uniform input is already optimal (we prove this later), so:
What this tells us. You cannot send more than about 0.531 bits reliably per use of this channel. If you try to send at 0.6 bits per use, the error probability will not go to zero, no matter how clever your coding scheme. If you send at any rate below 0.531, there exists a code that makes the error as small as you like, provided you use the channel enough times.
Now consider a binary erasure channel with erasure probability . It either delivers the bit correctly (probability 0.7) or replaces it with an erasure symbol "?" (probability 0.3). When you see a "?", you know the bit was lost — you just do not know which one it was. The capacity is:
The erasure channel is more capacious than the symmetric channel at the same raw error rate (0.3 vs 0.1) because the erasure tells you where the error happened. Knowing where the damage is turns out to be extremely valuable.
Check your understanding Beginner
Formal definition Intermediate+
Let and be finite sets (the input and output alphabets). A discrete memoryless channel (DMC) is a collection of conditional probabilities for , , satisfying:
- for all .
- for all .
The matrix with rows indexed by and columns by is the transition matrix (or channel matrix). "Memoryless" means that the output at time depends only on the input at time , not on past inputs or outputs. "Discrete" means both alphabets are finite.
Given an input distribution on , the joint distribution on is , and the output distribution is .
Definition (Channel capacity). The capacity of a DMC is
where the maximum is taken over all probability distributions on , and is the mutual information between the channel input and output:
The units of are bits per channel use (with base-2 logarithm).
Counterexamples to common slips
Capacity is a property of the channel, not the input distribution. The capacity is the maximum of over all input distributions. A particular choice of gives a mutual information , but the capacity itself does not depend on the input distribution — it is a single number attached to the channel.
Mutual information depends on the input distribution; capacity does not. Students often confuse (a function of the input distribution) with (the maximum over all input distributions). The capacity is a property of the transition matrix alone.
"Memoryless" is a modelling assumption, not a theorem. Physical channels may have memory (intersymbol interference, fading correlations). The DMC model restricts to the memoryless case; channels with memory have a different (usually larger) capacity.
Key theorem with proof Intermediate+
Theorem (Binary symmetric channel capacity). For a BSC with crossover probability , the capacity is
where is the binary entropy function. The capacity is achieved by the uniform input distribution .
Proof. For any input distribution on , the mutual information is . By the chain rule for conditional entropy:
For the BSC, for both and , since the channel treats both inputs symmetrically. Therefore regardless of the input distribution.
Since is constant, maximising is equivalent to maximising . The output is a binary random variable, so with equality when is uniform. The output is uniform when the input is uniform: if , then . Hence:
Theorem (Binary erasure channel capacity). For a BEC with erasure probability , the capacity is
Proof. For the BEC with output alphabet , we have , , and . The key observation is that when the output is 0 or 1, the input is known exactly; uncertainty exists only when the output is "?".
For any input distribution on with :
The conditional entropy (the binary entropy of the erasure event) for each input value, giving . The output distribution is , , .
Now where is the entropy of a three-outcome distribution. The mutual information simplifies (by direct computation or by the chain rule ) to:
This is because : when (probability ), we learn nothing about , so ; when or (probability ), is determined, so .
Maximising over : with equality at , so:
Bridge. The capacity formula builds toward the noisy-channel coding theorem in 46.03.02, which establishes that any rate below is achievable with arbitrarily small error probability over channel uses, giving its operational meaning. The decomposition appears again in Fano's inequality 46.03.03 as the foundational reason why the conditional entropy controls the minimum decoding error. The symmetry arguments used here for the BSC and BEC generalises to the class of symmetric channels treated below, where uniform inputs are always optimal. The convexity of in the transition matrix and its concavity in the input distribution is dual to the rate-distortion problem 46.04.01, putting these together reveals a shared optimisation structure across channel coding and source coding.
Exercises Intermediate+
Lean formalization Intermediate+
Mathlib does not define discrete memoryless channels, channel capacity, or the mutual information optimisation. The PMF type exists for discrete distributions, and there is machinery for conditional probability via PMF.bind, but no stochastic-matrix abstraction tying input and output alphabets. The capacity computation requires entropy on PMF (which is also absent), the chain rule for mutual information, and a concavity proof to justify that the maximum exists and is unique. The KKT conditions for the capacity-achieving distribution require Lagrange-multiplier machinery on the probability simplex. A Codex.InformationTheory.Channel module defining the DMC as a stochastic matrix on finite types and proving the BSC/BEC capacity formulas would be the load-bearing first step; this unit ships without it.
Advanced results Master
Symmetric channels and the uniform-input theorem
A DMC is symmetric if the set of output columns can be partitioned into subsets such that within each subset, the rows of the channel matrix are permutations of each other, and the column sums within each subset are equal. More precisely, the channel matrix is symmetric if there exists a partition of the output alphabet such that for each , the submatrix has the property that every row is a permutation of every other row, and the column sums are equal for all .
A simpler sufficient condition is weak symmetry: every row of the channel matrix is a permutation of the first row, and the column sums are all equal. The BSC is weakly symmetric (rows are and ; column sums are both 1).
Theorem (Uniform input achieves capacity for symmetric channels). If the channel is weakly symmetric, then the uniform input distribution achieves capacity, and
where is any fixed input and is the entropy of any row of the channel matrix.
Proof. Since each row is a permutation of every other row, is the same for all . Call this value . Then for any input distribution.
For uniform input, , so . The column-sum condition says is the same for all , so , i.e., the output is uniform. Therefore and:
This is the maximum because for any input distribution, and is constant. So , with equality when is maximised, which the uniform input achieves.
KKT conditions for the capacity-achieving distribution
For a general (not necessarily symmetric) DMC, finding the capacity requires solving the concave programme . Since is concave in and the constraint set (the probability simplex) is convex, the maximum is unique and characterised by the KKT (Karush-Kuhn-Tucker) conditions.
Theorem (KKT conditions for channel capacity). An input distribution achieves capacity if and only if, for all :
where is the output distribution induced by , and is the channel capacity.
Proof sketch. The Lagrangian for the constrained problem subject to , is:
where and (complementary slackness). Setting for gives:
and the partial derivative of with respect to is (the "information density" at , adjusted for the base). The condition for active inputs, and for inactive ones, follows. The constant is the same for all active inputs.
The KKT conditions have a compelling interpretation: at the optimum, every input symbol that is used with positive probability conveys exactly bits of mutual information, and no unused symbol could convey more. The capacity is the "level water line" in the water-filling analogy: information flows equally through all active inputs.
Convexity and concavity properties
The mutual information has a dual convexity structure that underpins the computational theory:
Theorem (Convexity of in the channel). For a fixed input distribution , is convex in the transition probabilities .
Proof. Write . The KL divergence is convex in the pair . The joint distribution is linear in , and the product distribution is also linear in . Convexity of KL divergence in its arguments then gives convexity of in .
Theorem (Concavity of in the input distribution). For a fixed channel , is concave in the input distribution .
Proof. As shown in Exercise 5: , where is concave in (hence concave in via the linear map ), and is linear in . The difference of a concave function and a linear function is concave.
The concavity in guarantees that the capacity-achieving distribution is unique (strict concavity of on the interior of the simplex propagates). The convexity in means that degrading a channel (replacing it with a convex combination of worse channels) cannot increase capacity, which is the foundation of the "less noisy" and "less capable" partial orders on channels.
Synthesis. The discrete memoryless channel is defined by a transition matrix on finite alphabets; its capacity is a concave maximisation whose solution is characterised by the KKT conditions — every active input achieves the same mutual information . For symmetric channels the uniform input achieves capacity by symmetry; for general channels the Arimoto-Blahut algorithm exploits concavity to converge to the optimum iteratively. The central insight is that capacity is the fundamental limit of reliable communication, builds toward the noisy-channel coding theorem 46.03.02 which gives it operational teeth, appears again in rate-distortion theory 46.04.01 as the mathematical dual, and generalises to continuous channels via differential entropy and to network settings via region-valued capacity. The convexity of in the channel and concavity in the input distribution is exactly the structure that makes the optimisation tractable.
Full proof set Master
Proposition (Data processing inequality for channels). Let be a Markov chain where is the output of a DMC with input and is obtained by processing through another channel (i.e., ). Then .
Proof. By the chain rule for mutual information:
Since forms a Markov chain, and are conditionally independent given , so . Therefore:
Since mutual information is non-negative, , so .
Proposition (Capacity of a cascade). Let and be two DMCs with transition matrices and . The cascade channel has transition matrix . Then:
Proof. By the data processing inequality, any input distribution on gives . Since for all input distributions, .
For the other bound, note that . But also, , because is the output of channel with some input distribution (induced by ), and the maximum mutual information of over all input distributions is . More precisely, for any fixed input , is not guaranteed; instead, follows because the pair respects the channel and the data processing inequality gives .
Proposition (Capacity of a -ary symmetric channel). A -ary symmetric channel has input and output alphabets and transition probabilities if and if . Its capacity is:
Proof. The channel is symmetric: each row is a permutation of every other row (they all have one entry and entries ), and the column sums are all equal to . By the uniform-input theorem for symmetric channels:
where is the entropy of any row. Each row has distribution , giving:
Connections Master
46.01.01— Entropy and the chain rule are the algebraic engine behind mutual information ; the capacity optimisation depends on these quantities.46.03.02— Shannon's noisy-channel coding theorem gives capacity its operational meaning: any rate below is achievable with vanishing error probability over channel uses.46.03.03— Fano's inequality bounds the decoding error probability using , which depends on the channel model and input distribution defined here.46.04.01— The rate-distortion function is the mathematical dual of channel capacity — one minimises, the other maximises mutual information.37.01.01— The probability-space formalism underpinning the DMC definition; the transition matrix is a conditional distribution on finite measurable spaces.45.07.01— PAC learning theory uses information-theoretic bounds (mutual information, KL divergence) to bound sample complexity; the channel model provides the noise structure.
Historical & philosophical context Master
Shannon introduced the discrete channel model and the capacity formula in Part III of his 1948 paper "A Mathematical Theory of Communication" (Bell System Technical Journal 27, 379-423 and 623-656). His central insight was that the maximum rate of reliable communication is determined entirely by the statistical properties of the channel, not by the semantics of the messages. The formula is a single number that separates the achievable from the impossible, and the noisy-channel coding theorem (which he proved in the same paper) establishes that the boundary is sharp.
The binary symmetric channel was Shannon's running example. He computed its capacity as and noted that for , the capacity is about 0.919 bits per use — meaning that roughly 92% of the channel's raw capacity survives 1% noise. The binary erasure channel was analysed by Elias (1955, unpublished course notes at MIT) and later by Gallager in his 1968 textbook Information Theory and Reliable Communication (Wiley). The erasure channel's capacity is remarkably simple because erasures are "honest" errors — they tell you where the information was lost.
The KKT conditions for the capacity-achieving distribution appear in the information-theory literature via several routes. Shannon himself noted (without proof) that the optimal input distribution equalises the "information density" across all active inputs. The formal KKT characterisation was given by Muroga (1953) and developed systematically by Gallager (1968, Chapter 4). The Arimoto-Blahut algorithm (independently discovered by Arimoto and Blahut in 1972) exploits concavity to compute capacity iteratively and is still the standard numerical method.
The symmetry classification of channels is due to Cover and Thomas (1991, 1st edition of Elements of Information Theory, Wiley), though the underlying observation — that uniform inputs are optimal when the channel treats all inputs equally — goes back to Shannon. The distinction between weak and strong symmetry is from Gallager (1968), who used it to simplify the computation of capacity for a broad class of practical channels.
Bibliography Master
@article{shannon1948,
author = {Shannon, C. E.},
title = {A Mathematical Theory of Communication},
journal = {Bell System Technical Journal},
volume = {27},
pages = {379--423 and 623--656},
year = {1948},
}
@book{cover-thomas2006,
author = {Cover, T. M. and Thomas, J. A.},
title = {Elements of Information Theory},
edition = {2nd},
publisher = {Wiley},
year = {2006},
}
@book{csiszar-korner2011,
author = {Csisz{\'a}r, I. and K{\"o}rner, J.},
title = {Information Theory: Coding Theorems for Discrete Memoryless Systems},
edition = {2nd},
publisher = {Cambridge University Press},
year = {2011},
}
@book{gallager1968,
author = {Gallager, R. G.},
title = {Information Theory and Reliable Communication},
publisher = {Wiley},
year = {1968},
}
@article{arimoto1972,
author = {Arimoto, S.},
title = {An Algorithm for Computing the Capacity of Arbitrary Discrete Memoryless Channels},
journal = {IEEE Transactions on Information Theory},
volume = {18},
number = {1},
pages = {14--20},
year = {1972},
}
@article{blahut1972,
author = {Blahut, R. E.},
title = {Computation of Channel Capacity and Rate-Distortion Functions},
journal = {IEEE Transactions on Information Theory},
volume = {18},
number = {4},
pages = {460--473},
year = {1972},
}