Probability Inequalities & Concentration

Jensen's inequality

/ YEN-sen /

Here is a question with a surprisingly general answer: if you average some numbers and then square them, do you get the same thing as squaring first and then averaging? Try 1 and 3. Averaging then squaring: (2)^2 = 4. Squaring then averaging: (1 + 9)/2 = 5. They differ, and the second is bigger. Jensen's inequality explains exactly when and which way 'average then transform' and 'transform then average' disagree.

The key word is convex: a function whose graph bows upward, so the curve sits below any chord (line segment) joining two of its points — squaring, the exponential, and -log are convex examples. Jensen's inequality says, for a convex function g, g(E[X]) <= E[g(X)]. Geometrically: the value of g at the average input lies below the average of g's values, because the curve dips beneath its chords. Reverse the inequality for concave functions (those bowing downward, like log or square root): g(E[X]) >= E[g(X)]. A handy memory aid is 'the convex function of the mean is at most the mean of the function.'

This single fact powers a remarkable amount of mathematics. It instantly proves E[X^2] >= (E[X])^2, which is why variance is non-negative. It gives the arithmetic-mean / geometric-mean inequality (via the concave log). In information theory it underpins the non-negativity of Kullback-Leibler divergence and entropy bounds. The honest caveat: the direction depends entirely on convexity versus concavity, and equality holds only if g is linear over the range of X, or X is a constant — otherwise the gap is strict and is a genuine, measurable error you make by swapping the order of averaging and transforming.

An investment doubles or halves your money with equal chance. Final multiplier averages E[X] = (2 + 0.5)/2 = 1.25, looking like a gain. But growth compounds via log, which is concave, so Jensen gives E[log X] <= log E[X]: the typical compounded outcome E[log X] = (log 2 + log 0.5)/2 = 0 — you actually go nowhere on average.

Averaging and transforming do not commute: a convex curve sits below its chords, a concave one above.

Common pitfall: people assume g(E[X]) = E[g(X)]. That holds only for linear g. For any genuinely curved g the two differ, and the gap is exactly what Jensen bounds.

Also called
Jensen inequality詹森不等式Jensen's inequality (convex functions)