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.

Structural Signature

Sig role-phrases:

  • Sequence a — Supplies numerator masses and total A. It is input. Counterfactual: Positive a where b is zero yields an infinite term.
  • Sequence b — Supplies denominator masses, weights, and total B. It is reference. Counterfactual: B must support the normalization used in the proof.
  • Coordinate ratios — Measure local proportionality aᵢ/bᵢ. It is local quantity. Counterfactual: Undefined forms require limits rather than cancellation.
  • Convex function x log x — Creates the aggregation inequality. It is mathematical engine. Counterfactual: Changing the function requires a new convexity condition.
  • Totals A and B — Form the coarsened comparison. It is aggregate. Counterfactual: Aggregation cannot increase the resolved divergence contribution.
  • Equality condition — Requires common ratios across positive support. It is sharpness. Counterfactual: Zeros demand careful statement of which indices count.

What It Is Not

  • 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.
  • Closest near-miss. Gibbs' inequality is a probability-specialized consequence obtained by totals A=B=1; log-sum is the more general nonnormalized statement.

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.

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.

Examples

Canonical

For probability vectors p and q with q positive wherever p is positive, log-sum gives ∑pᵢ log(pᵢ/qᵢ) ≥ log(1)=0, establishing nonnegative KL divergence and its equality condition.

Mapped back: a → p; b → q; totals → 1 and 1; left → KL divergence; right → 0.

Applied / In Practice

Applying the displayed formula to a negative aᵢ makes x log x and the probability-style proof leave their real nonnegative domain, so the theorem does not apply.

Mapped back: input → negative term; domain → violated; verdict → outside theorem.

Structural Tensions

T1 — Fine-Grained Divergence versus Coarse Aggregation. Coordinate resolution reveals heterogeneity while merging categories loses distinguishability and lowers the bound.

Diagnostic: Which partition preserves information relevant to the claim?

T2 — Compact Formula versus Boundary Conventions. The positive-input proof is short while zero support cases determine whether values are finite, zero, or infinite.

Diagnostic: Are limiting conventions and support conditions explicit?

Structural–Framed Character

Log-Sum Inequality is structural as a convex lower bound under aggregation and framed by nonnegative mass ratios.

Structural Core vs. Domain Accent

The broad pattern is convexity penalizing heterogeneity hidden by aggregation. Information theory adds mass support, likelihood ratios, relative entropy, and data processing.

This entry presupposes Convexity.

  • Approved inequality root. No frozen parent entails the exact log-sum statement and equality condition.

  • Related — Jensen's inequality, Gibbs' inequality, Kullback–Leibler divergence, f-divergence, convexity, and data-processing inequality. They are proof engine, consequences, generalization, and interpretation.

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

Not to Be Confused With

  • Gibbs' inequality. Tell: Is the normalized probability consequence.
  • Jensen's inequality. Tell: Is the general convex theorem used in the proof.
  • Sum–log inequality. Tell: May refer informally to unrelated concavity bounds for log.
  • KL divergence. Tell: Is a quantity whose nonnegativity follows from log-sum.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Log_sum_inequality (revision 1354492474).