Skip to main content
KetQat

Appearance

Proof · introductory

Proof of the classical data-processing inequality

Part 1 by expanding I(X;YZ) with the chain rule in two orders and using conditional independence; part 2 from the log-sum inequality, itself Jensen's inequality for t log t.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Part 1. By the chain rule for mutual information, in two orders,

I(X;YZ)=I(X;Z)+I(X;Y∣Z)=I(X;Y)+I(X;Z∣Y).I(X; YZ) = I(X; Z) + I(X; Y \mid Z) = I(X; Y) + I(X; Z \mid Y) .

The Markov property says that given Y=yY = y, XX and ZZ are independent, so I(X;Z∣Y=y)=0I(X; Z \mid Y = y) = 0 for each yy and I(X;Z∣Y)=0I(X; Z \mid Y) = 0. Hence I(X;Z)=I(X;Y)−I(X;Y∣Z)≤I(X;Y)I(X; Z) = I(X; Y) - I(X; Y \mid Z) \le I(X; Y), because conditional mutual information is nonnegative (Gibbs' inequality). For Z=g(Y)Z = g(Y) the chain X→Y→g(Y)X \to Y \to g(Y) is Markov.

Log-sum inequality. For nonnegative a1,…,aka_1, \dots, a_k and positive b1,…,bkb_1, \dots, b_k, with a=∑iaia = \sum_i a_i and b=∑ibib = \sum_i b_i, ∑iailog⁡2(ai/bi)≥alog⁡2(a/b)\sum_i a_i \log_2 (a_i / b_i) \ge a \log_2 (a / b). Indeed f(t)=tlog⁡2tf(t) = t \log_2 t is convex on [0,∞)[0, \infty), and Jensen's inequality with weights bi/bb_i / b at the points ti=ai/bit_i = a_i / b_i gives ∑i(bi/b)f(ti)≥f(∑iai/b)=f(a/b)\sum_i (b_i/b) f(t_i) \ge f(\sum_i a_i / b) = f(a/b); multiply by bb. Terms with bi=0b_i = 0 and ai=0a_i = 0 contribute nothing, and if some bi=0<aib_i = 0 < a_i the left side is +∞+\infty.

Part 2. For each output yy apply the log-sum inequality to ax=p(x)W(y∣x)a_x = p(x) W(y \mid x) and bx=q(x)W(y∣x)b_x = q(x) W(y \mid x), whose sums are (pW)(y)(pW)(y) and (qW)(y)(qW)(y):

(pW)(y)log⁡2(pW)(y)(qW)(y)≤∑xp(x)W(y∣x)log⁡2p(x)q(x).(pW)(y) \log_2 \frac{(pW)(y)}{(qW)(y)} \le \sum_x p(x) W(y \mid x) \log_2 \frac{p(x)}{q(x)} .

Summing over yy and using ∑yW(y∣x)=1\sum_y W(y \mid x) = 1 gives D(pW∥qW)≤D(p∥q)D(pW \Vert qW) \le D(p \Vert q). Part 1 is the chain-rule argument of chapter 2 of Cover and Thomas, where the log-sum inequality is also proved.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Thomas M. Cover, Joy A. Thomas (2005). Elements of Information Theory. Wiley (2nd edition). doi:10.1002/047174882X

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Each step re-derived: chain rule in two orders with I(X;Z|Y)=0 under the Markov property; log-sum inequality from Jensen for t log t with weights b_i/b, edge cases; part 2 by applying log-sum per output y and summing. Numerical check (python/numpy): 2000 random 4-symbol p, q and 4x3 channels W, plus random log-sum instances, all with nonnegative slack (min 0.0056). Cover and Thomas (2005) not openly readable; Crossref metadata match.

    The closing sentence said both arguments are those of chapter 2 of Cover and Thomas; the source could not be read to confirm that the relative-entropy part is proved there in this way. Narrowed the sentence to attribute only the chain-rule argument for part 1 to chapter 2 and to say the log-sum inequality is proved there (as the companion theorem record already states).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 4d4ad3de6a3e5322. Source file knowledge/records/proof/classical-data-processing-inequality.md in the content repository (readable there once it is public).