Skip to content

Log-Sum Inequality

For nonnegative sequences aᵢ and bᵢ with totals A and B, the inequality ∑aᵢ log(aᵢ/bᵢ) ≥ A log(A/B), under standard zero conventions, with equality when the positive ratios aᵢ/bᵢ are constant.

Version
v2 · 2026-11-14 · History
Domain-specific #
10473
Domain group
Formal Sciences
Origin domain
Information Theory
Subdomain
Information Inequalities → Information Theory
Aliases
Log Sum Inequality, Log-Sum Lemma

Core Idea

The log-sum inequality says convex information cost cannot be reduced below the cost computed after aggregating corresponding masses. Local ratio variation adds nonnegative excess beyond the total ratio.

Its proof and equality condition reveal the mechanism: Jensen compares the weighted average of x log x with the function at the weighted average, and equality means all supported local ratios coincide.

How would you explain it like I'm…

 

No faithful explanation at this level. Two of three generators judge that a five-year-old picture collapses into 'lumping hides differences' or 'splitting makes cost bigger', which suggests it holds for any score and loses that the excess comes from varying ratios under the convex x log x cost and vanishes when ratios coincide.

Piece-by-Piece Beats Totals

Imagine several pairs of piles, like apples and oranges in different baskets. Scientists who study information have a special way to score how lopsided the apples-to-oranges ratio is. The log-sum inequality says: if you score each basket separately and add up, you never get less than if you pour all the baskets together and score that once. The two scores are equal only when every basket has the same ratio. Differences between baskets can only add extra to the total score.

Aggregation Can't Lower Cost

The log-sum inequality compares two lists of positive amounts, a's and b's. Summing a_i log(a_i/b_i) over the pieces always gives at least (total a) times log(total a / total b). In words: a convex information cost computed piece by piece can't be lower than the cost computed after aggregating the matching amounts. Any variation among the local ratios a_i/b_i adds a nonnegative excess. Equality holds exactly when all the ratios where amounts are present are the same. It is proved with Jensen's inequality for the convex function x log x.

 

The log-sum inequality states that for nonnegative a_i and b_i, the sum of a_i log(a_i/b_i) is at least A log(A/B), where A and B are the totals. Interpreted as information cost, a convex cost evaluated term by term cannot fall below the cost evaluated after aggregating corresponding masses; heterogeneity of the local ratios a_i/b_i contributes a nonnegative excess over the aggregate ratio. The proof applies Jensen's inequality to the convex function x log x: writing the left side as B times a b-weighted average of t log t at t = a_i/b_i, convexity bounds this below by the function evaluated at the weighted average ratio A/B. The equality condition follows from strict convexity: all supported local ratios must coincide. This is the mechanism behind many nonnegativity and monotonicity results for divergences in information theory.

Scope of Application

  • Information theory. Proves divergence and data-processing bounds.
  • Statistics. Analyzes relative entropy and likelihood ratios.
  • Convex analysis. Provides an aggregation form of Jensen.
  • Probability. Derives Gibbs' inequality and related inequalities.

Clarity

State index set, nonnegativity, totals and whether positive, log base, zero and infinity conventions, support condition, finite versus extended-real result, equality condition including zero terms, normalization, partition or aggregation, and the precise consequence being derived. Inclusion test: Require nonnegative aligned sequences, declared logarithm and zero conventions, finite or extended-real interpretation, and the log-sum comparison between coordinate and aggregated ratios. Exclusion test: Exclude log of a sum inequalities with different form, Gibbs' inequality stated without the underlying two-sequence aggregation, Jensen applied to unrelated weights, negative inputs, and algebra that silently divides by zero. Nearest boundary: Gibbs' inequality is a probability-specialized consequence obtained by totals A=B=1; log-sum is the more general nonnormalized statement. Exit condition: The statement changes with negative entries, zero totals, unsupported positive mass, logarithm base, infinite index sets, or alternative generalized functions. Common misclassifications: It is not the elementary identity log(xy)=log x+log y. Negative inputs are outside the standard statement. Zeros cannot be handled by ordinary division. Equality is not merely A=B unless local ratios also match. Nearest named distinctions: Gibbs' inequality: Is the normalized probability consequence. Jensen's inequality: Is the general convex theorem used in the proof. Sum–log inequality: May refer informally to unrelated concavity bounds for log. KL divergence: Is a quantity whose nonnegativity follows from log-sum.

Manages Complexity

The formula compresses support, normalization, convexity, and equality subtleties. Many incorrect applications are numerically plausible because zero terms or unnormalized measures are silently treated as probabilities.

Abstract Reasoning

  1. Verify aligned nonnegative sequences and support conditions.
  2. Compute totals and separate zero-total edge cases.
  3. Rewrite the sum using b-weights and f(x)=x log x.
  4. Apply Jensen under normalized weights and restore the scale B.
  5. Analyze equality and limiting zero cases before specializing to information quantities.

Knowledge Transfer

The convex aggregation pattern transfers to f-divergences and integral forms when the generating function and measure conditions are rebuilt. The logarithmic formula and equality condition should not be copied to nonconvex functions.

Relationships to Other Abstractions

Local relationship map for Log-Sum InequalityParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Log-Sum InequalityDOMAINPrime abstraction: Convexity — presupposesConvexityPRIME

Current abstraction Log-Sum Inequality Domain-specific

Parents (1) — outgoing typed relations

  • Log-Sum Inequality presupposes Convexity Prime

    Log-Sum Inequality presupposes Convexity: the parent's defining role is necessary to the child's frozen mechanism or criterion.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Log-Sum Inequality sits in a crowded region of the domain-specific corpus (25th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Matrices, Measures & Numeric Structures (30 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14