Historical Context & Motivation
The relationship between convex functions and averages has fascinated mathematicians for centuries, but it was the Danish mathematician Johan Ludwig William Valdemar Jensen who, in 1906, crystallized this relationship into the elegant inequality that bears his name. Jensen was not a professional academic — he spent most of his career as an engineer at the Copenhagen Telephone Company — yet his mathematical contributions proved foundational. His inequality generalized earlier observations about the arithmetic mean–geometric mean inequality and Hölder's inequality into a single, sweeping result about convex functions. The inequality answered a deceptively simple question: if you apply a curved function to the average of some numbers, how does the result compare to the average of the function applied to each number individually? This question turns out to be central to probability theory, optimization, and information theory alike.
The central question Jensen's inequality addresses is this: given a random variable X and a convex function φ, what is the relationship between φ(E[X]) and E[φ(X)]? The answer — that convexity forces the function of the mean to lie below the mean of the function — has profound consequences across mathematics and its applications.
Core Principles & Definitions
Before stating Jensen's inequality precisely, we must establish the key definitions that underpin it. The inequality rests on the interplay between convexity of a function and the expectation operator from probability theory. Convexity captures the idea that the chord connecting any two points on a function's graph lies on or above the graph itself. When this geometric condition is satisfied, taking expectations commutes with the function in a specific, predictable direction.
Convex Function
Concave Function
Supporting Hyperplane
Integrability Condition
Equality Condition
Visual Explanation
The geometric intuition behind Jensen's inequality is best understood graphically. For a convex function φ, the graph bows downward (or equivalently, the epigraph is a convex set). When we evaluate φ at the mean of two points, we land on the curve itself, but the weighted average of the function values at those two points lands on the chord above the curve. The following diagram illustrates this core geometric insight for the convex function φ(x) = x² and two points x₁ and x₂ with equal weight.
The diagram above captures the essence of Jensen's inequality in the finite, discrete case. The convex curve bows downward toward the x-axis, so any chord connecting two points on the curve lies above the curve in between. When we compute the expected value E[X] = (x₁ + x₂)/2, the value of the function at that mean — the green point — is strictly below the midpoint of the chord — the pink point. This vertical gap is precisely the quantity E[φ(X)] − φ(E[X]) ≥ 0. The more curvature the function has (the larger φ″), and the more spread X has, the larger this gap becomes.
Mathematical Framework
We now state Jensen's inequality in full generality and sketch its proof using the supporting hyperplane characterization of convex functions. Let (Ω, ℱ, P) be a probability space and let X : Ω → ℝ be an integrable random variable taking values in an interval I ⊆ ℝ. Let φ : I → ℝ be a convex function. Jensen's inequality asserts the following.
Proof via Supporting Hyperplane
The proof is elegant and relies on a single key fact: for a convex function φ and any point μ in the interior of its domain, there exists a constant a (a subgradient) such that φ(x) ≥ φ(μ) + a(x − μ) for all x ∈ I. This is the supporting hyperplane property. If φ is differentiable at μ, then a = φ′(μ). Set μ = E[X]. Then for all ω ∈ Ω we have φ(X(ω)) ≥ φ(E[X]) + a(X(ω) − E[X]). Taking expectations of both sides and noting that E[X − E[X]] = 0, we obtain E[φ(X)] ≥ φ(E[X]) + a · 0 = φ(E[X]), completing the proof.
Key Applications & Classification of Consequences
Jensen's inequality is remarkable not only for its elegance but for the sheer breadth of its consequences. Many classical inequalities in analysis, probability, and statistics can be derived as special cases by choosing a particular convex (or concave) function φ. The following diagram organizes the most important applications by domain, showing how a single inequality spawns results across disparate fields.
| Choose φ(x) = | Convex / Concave | Result | Named Inequality |
|---|---|---|---|
x² | Convex | (E[X])² ≤ E[X²] | Variance non-negativity |
|x|ᵖ (p ≥ 1) | Convex | |E[X]|ᵖ ≤ E[|X|ᵖ] | Lyapunov's inequality |
−ln(x) | Convex | −ln(E[X]) ≤ E[−ln(X)] | AM–GM inequality |
eˣ | Convex | exp(E[X]) ≤ E[exp(X)] | MGF bound / risk premium |
ln(x) | Concave | ln(E[X]) ≥ E[ln(X)] | Entropy maximization |
Worked Example: Non-Negativity of KL Divergence
One of the most celebrated applications of Jensen's inequality is proving that the Kullback–Leibler divergence DKL(P ‖ Q) is always non-negative, a result known as Gibbs' inequality. Let P and Q be two probability distributions on the same measurable space with P absolutely continuous with respect to Q.
Strengths, Limitations, and Common Pitfalls
Jensen's inequality is a remarkably versatile tool, but like any mathematical instrument, its power comes with boundary conditions. Understanding when the inequality provides a tight bound versus a loose one, and recognizing situations where it does not apply, is essential for effective use in proofs and applications.
| Strengths | Limitations / Pitfalls |
|---|---|
| Applies to any convex or concave function — no smoothness or differentiability is required. | The bound can be very loose if the distribution has high variance or φ has mild curvature in the relevant region. |
| Works in infinite-dimensional settings (conditional expectations, Bochner integrals) with minimal modifications. | Requires integrability: both E[|X|] and E[|φ(X)|] must be finite. Fails for heavy-tailed distributions lacking moments. |
| Subsumes many classical inequalities (AM–GM, Cauchy–Schwarz, Lyapunov) as special cases. | Only provides a one-sided bound. For two-sided bounds, one needs complementary tools (e.g., the Hermite–Hadamard inequality). |
| The equality condition (X constant a.s. or φ affine on support) is fully characterized, enabling tight analysis. | Common error: applying the inequality in the wrong direction (forgetting to check convexity vs. concavity of φ). |
| The conditional version provides the key link between convexity and martingale theory. | Does not quantify the gap E[φ(X)] − φ(E[X]). Refined versions (e.g., using Var(X) and φ″) are needed for quantitative bounds. |
Connection to Advanced Theory
Jensen's inequality sits at a crossroads of modern probability and analysis. Its conditional version is the gateway to martingale theory, and quantitative refinements of the inequality lead to concentration inequalities that are indispensable in high-dimensional statistics and machine learning. The following table compares Jensen's basic inequality with some of its more advanced relatives.
| Concept | Relationship to Jensen | Additional Assumptions |
|---|---|---|
| Submartingale property | If (Mₙ) is a martingale and φ is convex, then φ(Mₙ) is a submartingale — a direct consequence of conditional Jensen. | E[|φ(Mₙ)|] < ∞ for all n. |
| Hermite–Hadamard inequality | Provides both an upper and lower bound for ∫φ over an interval, refining Jensen for uniform distributions. | X ~ Uniform[a, b]; φ convex. |
| Efron–Stein inequality | Bounds the variance of a function of independent r.v.'s using a leave-one-out approach. Uses Jensen internally in its proof. | Independence of components. |
| EM algorithm (ELBO) | The E-step of EM uses Jensen to construct a lower bound (ELBO) on the log-likelihood, exploiting concavity of log. | Latent variable model structure. |
| Chernoff bound | Applies Markov's inequality to exp(tX), then optimizes over t. Jensen on φ(x) = eˣ provides the initial exponential bound. | Moment generating function exists. |
Practice Problems
Summary
Jensen's inequality states that for any convex function φ and integrable random variable X, φ(E[X]) ≤ E[φ(X)], with the inequality reversing for concave functions. The proof relies on the supporting hyperplane property of convex functions: at any point, there exists a tangent line that lies entirely below the function, and taking expectations of this affine bound yields the result. Equality holds if and only if X is constant almost surely or φ is affine on the support of X.
The inequality's importance extends far beyond a single theorem. By choosing specific convex functions, one recovers the AM–GM inequality, non-negativity of KL divergence, and the variance lower bound. The conditional version connects convexity to martingale theory, establishing that convex transforms of martingales are submartingales — a foundational result in stochastic analysis. In applications, Jensen's inequality appears in the EM algorithm, risk analysis in finance, entropy bounds in information theory, and the derivation of concentration inequalities.