Conditional mutual information Created 2026-09-24 Updated 2026-10-14
For finite discrete random variables, conditional mutual information measures the average reduction in uncertainty about from observing , when is already known. With base-two logarithms, it is measured in bits:
The second expression follows from the chain rule for conditional entropy and makes the symmetry in visible. Equivalently, compute the mutual information separately in each conditional probability distribution and then average:
Here is the Kullback-Leibler divergence, also computed with base-two logarithms; zero-probability terms contribute zero. The Gibbs inequality gives , with equality exactly when and have conditional independence given : the conditional joint probability mass function factors for every of positive probability.[ref]
For a fully computed example, take independent random variables that are fair bits, and let , where is exclusive or. The complete joint probability distribution has only these four positive entries:
Table 1.
Joint probabilities for two independent fair bits and their exclusive or
.
Every pair has probability , so . But . Given , the pairs each have conditional probability , while both conditional marginals are fair. Thus
Given , the pairs give the same calculation. Therefore
The conditional entropy calculation tells the same story: because either value of leaves fair, whereas because . Learning the exclusive or does not reveal either bit alone; it reveals whether they agree, so learning one then determines the other.
Figure 1.
Conditioning on the exclusive or reveals one bit of dependence between independent fair bits
. Details.
This example distinguishes conditional independence from ordinary independence. It also disproves the claim that conditioning always reduces mutual information, despite conditioning reduces entropy. There is no general ordering between and : the example above increases it from zero to one, while taking and for a fair bit decreases it from one to zero. The chain rule for mutual information explains why both are possible.[ref]
Conditional mutual information is useful for asking whether an additional observation tells us anything after information already available has been accounted for. Its zero case expresses conditional independence exactly; in a Markov chain, this is the step that turns the chain rule for mutual information into the data processing inequality.
Fano's inequality via an error indicator Created 2026-10-06 Updated 2026-10-14
Under the hypotheses of Fano's inequality, let , , and let be the indicator random variable of an error. Its probability of being one is . The in the displayed bound denotes binary entropy in bits. Since is a deterministic function of , . Applying the chain rule for conditional entropy in both orders gives the exact decomposition
The first term is bounded by , because conditioning reduces entropy. For the second term, fix a report : if , then is known; if , then lies among at most other symbols. Maximum entropy on a finite alphabet bounds the latter uncertainty by . Averaging over the reports and the error flag gives
This proves Fano's inequality. Events of zero probability contribute zero to this average, so the proof also covers without assigning a conditional distribution to an impossible event.[ref]
Figure 1.
The four-symbol entropy budget peaks at chance-level error and separates the error flag from the three alternatives
. Details.
The decomposition also explains equality. The first bound is exact when the indicator random variable and are independent random variables: knowing the report does not change the error probability. The second is exact when, for every report with positive error probability, the wrong-symbol conditional distribution is uniform on all alternatives. Both conditions hold in the four-symbol toy channel of Fano's inequality. At , the second condition is vacuous; at , the flag is constant but three alternatives remain, giving . For , there is just one alternative after an error, so the second term vanishes: all remaining uncertainty is whether the single alternative must replace the guess.
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 directly
Equivalently, 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.
The chain rule for entropy, with placed last, gives
Since includes all the preceding coordinates, conditioning monotonicity gives
This proves the first assertion for every , including . Sum over : the conditional terms on the right sum to by the ordinary chain rule. Thus
This is Han's entropy inequality.
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 . Therefore
Divide by to obtain the required averaged inequality. The case is excluded precisely because that denominator vanishes.
The chain rule for conditional entropy gives
Indeed, for every conditioning value of positive probability, each summand is nonnegative. Its sum is zero exactly when the conditional probability mass function is concentrated at one value. Averaging over therefore proves both the inequality and its equality criterion: equality holds exactly when almost surely for some function . Conditioning values of probability zero impose no restriction. This is a statement about discrete random variables; a differential entropy need not be nonnegative.
Let and let be the error indicator random variable. Because is determined by , the chain rule for conditional entropy in its two orders gives
By conditioning reduces entropy, . On , knowing determines , so the corresponding conditional entropy is zero. On , at most symbols remain possible for . The maximum Shannon entropy of a probability distribution on at most symbols is . Consequently
For an arbitrary function , repeat the argument with . This is still determined by ; when it is zero, , and when it is one, has at most possibilities for each . Thus Fano's inequality gives
Events of zero probability contribute zero to the conditional average, covering the error probabilities zero and one. If , the left side and error probabilities are zero; the trivial conclusion is handled separately instead of writing as an ordinary finite product.
Use logarithms to base two, so all entropies are in bits. For a discrete probability distribution and a density operator with eigenvalues , the Shannon entropy and Von Neumann entropy are respectively
Use . The second definition is basis-independent by the spectral theorem; for a density operator diagonal with probabilities , it agrees with the first.
The classical relative entropy, or Kullback-Leibler divergence, of from is
It is if some has . The quantum relative entropy is
when the support of is contained in that of , and is otherwise. Matrix logarithms are taken on the corresponding positive supports. In a common eigenbasis this reduces to classical relative entropy; both divergences are nonnegative and are generally asymmetric.
To prove Fano's inequality, let the finite alphabet size be and let indicate an incorrect guess. Since is determined by , the chain rule for conditional entropy first gives
Expanding in the opposite order gives
Conditioning reduces entropy, so , the binary entropy function. When , knowledge of determines and the conditional entropy is zero. When , can lie in at most the alphabet values other than . Entropy on values is at most : its deficit from that number is the nonnegative relative entropy from the uniform distribution. Averaging the two cases therefore gives
Combining the two expansions proves
This proof of Fano's inequality via an error indicator works for any alphabet-valued guessing rule, not just an optimal one. If , there is no guessing uncertainty and the claim is simply ; that case is treated separately rather than writing .
Apply the definitions of conditional entropy and insert :
Inserting instead gives the alternative chain rule for conditional entropy
Both are expansions of the same joint conditional uncertainty, with the variables exposed in opposite orders.
Because is determined by , its conditional entropy satisfies . Equate the two forms of the chain rule for conditional entropy to obtain
Conditioning cannot increase classical Shannon entropy: by nonnegativity of mutual information. Thus . When , the value of is exactly and . When and , the value is excluded, leaving at most possibilities. By maximum entropy on a finite alphabet,
Averaging the two conditional cases now yields
and consequently
This is Fano's inequality via an error indicator. Events of zero probability contribute zero to the average and need no conditional distribution. For , the inference is automatically correct and the entropy is zero; the displayed logarithmic form is intended for . Optimality of the guess is not needed for the inequality: it holds for every deterministic .