Gibbs' inequality (nonnegativity of relative entropy)
The relative entropy between two probability distributions is nonnegative and vanishes only when they are equal. Nonnegativity of mutual information, the bound H(X) <= log|X| and the fact that conditioning reduces entropy all follow.
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.
For probability distributions p and q on a finite set X,
Consequences, for random variables with finite alphabets:
H(X)≤log2∣X∣, with equality iff X is uniform, because
log2∣X∣−H(X)=D(pX∥u) for the uniform distribution u;
I(X;Y)≥0, with equality iff X and Y are independent, because
I(X;Y)=D(pXY∥pX⊗pY);
H(X∣Y)≤H(X), since the difference is I(X;Y), and likewise
I(X;Y∣Z)≥0 by averaging (2) over Z.
The statement and these corollaries are in chapter 2 of
Cover and Thomas. The quantum analogue, nonnegativity of the
quantum relative entropy, is known as Klein's
inequality.
If some x has p(x)>0=q(x), then D(p∥q)=+∞>0 and p=q. Otherwise
let S={x:p(x)>0}. Since log2 is strictly concave, Jensen's inequality for the
probability weights p(x), x∈S, gives
Equality in the first step holds iff q(x)/p(x) takes one value c on S, and in the
second iff ∑x∈Sq(x)=1. Together these give c=1, i.e. q=p on S, and
q=0 off S, so p=q. The corollaries follow from the identities quoted in the
statement. This is the proof in chapter 2 of Cover and Thomas.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Statement with equality case and the three corollaries re-derived (identities log|X| - H = D(p||u) and I = D(p_XY||p_X p_Y) checked numerically); consistent with Polyanskiy and Wu, Information Theory: From Coding to Learning (authors' open PDF) chapter 2. Cover and Thomas chapter 2 title confirmed via Crossref; Klein's inequality naming is standard.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 566102a6be1a1235. Source file knowledge/records/theorem/gibbs-inequality.md in the content repository (readable there once it is public).