Let denote whether or was sent, and write
where are independent Bernoulli variables of parameter . Because is uniform, is uniform, while . Thus the mutual information in the first received digit is
By the chain rule for mutual information, the extra information in the second digit is . Conditional on , the second channel error is independent of the first output, so
Moreover,
Given either value of , the second output therefore differs from it with probability , and
Consequently the incremental information in a twofold binary repetition code is
bits.
If is a Markov chain, the two forms of the data processing inequality for mutual information are
The chain rule for mutual information and the Markov property give
Using the other order,
because conditional mutual information is nonnegative. This proves the first inequality. Applying the same result to the reversed Markov chain , which has the same conditional-independence statement, proves the second.
Suppose is a Markov chain, so . The chain rule for mutual information gives
and also
because conditional mutual information is nonnegative. Therefore . Similarly,
while , so . These are the two data processing inequalities. In particular, applying any deterministic function or Markov kernel to either argument cannot increase mutual information.