Skip to main content
KetQat

Appearance

Proof · introductory

Proof of Gibbs' inequality

Jensen's inequality for the concave logarithm, applied to the likelihood ratio q/p averaged over p, with equality analysis.

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.

If some xx has p(x)>0=q(x)p(x) > 0 = q(x), then D(p∥q)=+∞>0D(p \Vert q) = +\infty > 0 and p≠qp \ne q. Otherwise let S={x:p(x)>0}S = \{x : p(x) > 0\}. Since log⁡2\log_2 is strictly concave, Jensen's inequality for the probability weights p(x)p(x), x∈Sx \in S, gives

−D(p∥q)=∑x∈Sp(x)log⁡2q(x)p(x)  ≤  log⁡2∑x∈Sp(x)q(x)p(x)=log⁡2∑x∈Sq(x)  ≤  log⁡21=0.-D(p \Vert q) = \sum_{x \in S} p(x) \log_2 \frac{q(x)}{p(x)} \;\le\; \log_2 \sum_{x \in S} p(x) \frac{q(x)}{p(x)} = \log_2 \sum_{x \in S} q(x) \;\le\; \log_2 1 = 0 .

Equality in the first step holds iff q(x)/p(x)q(x)/p(x) takes one value cc on SS, and in the second iff ∑x∈Sq(x)=1\sum_{x \in S} q(x) = 1. Together these give c=1c = 1, i.e. q=pq = p on SS, and q=0q = 0 off SS, so p=qp = q. The corollaries follow from the identities quoted in the statement. This is the proof in chapter 2 of Cover and Thomas.

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 · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Proof checked line by line: infinite case, Jensen for the strictly concave log2 with weights p(x) on the support S, the bound sum_{S} q <= 1, and the equality analysis (q/p constant on S and q vanishing off S force p = q). The theorem statement in theorem/gibbs-inequality was used for the hypotheses. Cover and Thomas (2005) not openly readable (Crossref metadata match); this is the standard Jensen proof.

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 945e0affe49bb30f. Source file knowledge/records/proof/gibbs-inequality.md in the content repository (readable there once it is public).