Skip to content

Jensen's Inequality

For a convex function, the function of a mean is no greater than the mean of the function's values, under the required domain and expectation conditions.

Version
v1 · 2026-10-03 · History
Domain-specific #
13353
Aliases
Jensen Inequality

Core Idea

For a convex function \(f\) and a random input \(X\) with suitable domain and expectation conditions, Jensen's inequality states \(f(E[X])\leq E[f(X)]\). A concave function reverses the inequality. It compares transforming a mean with averaging transformed values under the same law. The gap is nonnegative for convex \(f\), but neither a strict gap nor an exact curvature–variance formula is universal. Equality can hold with nonconstant \(X\) when \(f\) is affine on the relevant supported mixtures; strict convexity at the mean supports the stronger constant-input equality conclusion.[1][2]

How would you explain it like I'm…

Which Goes First?

Some rules make big numbers grow extra big, like 'times itself': 1 becomes 1, 3 becomes 9. If you first find the middle of 1 and 3, which is 2, and then use the rule, you get 4. If you use the rule first and then find the middle of 1 and 9, you get 5. For rules shaped like a smile, doing the rule first always gives at least as much.

Average First or Last?

Jensen's Inequality is about doing two steps in different orders: averaging, and applying a rule to numbers. For rules whose graph curves upward like a bowl, called convex rules, "apply the rule first, then average" is always at least as big as "average first, then apply the rule." For example, with squaring and the numbers 2 and 4, squaring then averaging gives 10, but averaging then squaring gives 9. For rules that curve downward like a hill, the answer flips the other way.

Convexity and Averaging Order

For a convex function f, meaning any chord between two points of its graph lies on or above the graph, Jensen's Inequality says f(average of X) ≤ average of f(X). For two points this is exactly the chord condition: f(θx + (1−θ)y) ≤ θf(x) + (1−θ)f(y) for θ between 0 and 1. Taking an expected value extends the same comparison to any probability-weighted collection of values. For concave functions the inequality flips. A function that is neither convex nor concave has no guaranteed direction. The difference E[f(X)] − f(E[X]) is called the Jensen gap. Equality can happen even when X varies, as long as f is a straight line over the values X actually takes.

 

Jensen's Inequality states that if X takes values in a convex domain where f is convex, and the expectations exist, then f(E[X]) ≤ E[f(X)]. For concave f the direction reverses. The two-point version is exactly the definition of convexity, the chord condition f(θx+(1−θ)y) ≤ θf(x)+(1−θ)f(y). Taking expectations extends it to any probability-weighted collection. The content is a comparison between averaging then transforming and transforming then averaging; it says nothing universal about functions that are neither convex nor concave. The Jensen gap E[f(X)] − f(E[X]) is nonnegative in the convex case, but its size is not generally given by a simple curvature-times-variance formula. Equality does not require X to be constant or f to be affine everywhere: it suffices that f is affine on the region carrying X's probability mass. Under a stricter condition such as strict convexity at the mean, equality forces X = E[X] almost surely, and confusing these conditions is a common way weak bounds get mistaken for strict ones.

Scope of Application

MIT applies the concave form to an increasing expected-utility function \(u\) for wealth lotteries: \(E[u(X)]\leq u(E[X])\). This is a utility comparison, not a monetary risk premium; the latter needs a certainty equivalent \(u^{-1}(E[u(X)])\). Cover and Thomas apply log concavity to density ratios to prove relative entropy nonnegative. Their finite Jensen argument works on the positive-support ratio; if the reference density vanishes on positive target mass, divergence is infinite by convention.[3][4]

Clarity

State the probability law or normalized weights, the convexity/concavity domain, and whether all expressions are defined. A curved response alone does not determine the direction. A zero gap does not prove constant input under mere convexity, and a utility-valued gap cannot be relabeled as wealth.[2][3]

Manages Complexity

Convexity turns a potentially difficult expectation of nonlinear values into a directional bound without computing the full integral. The tradeoff is coarseness: it gives an order relation, not a general numeric gap. Distinct applications inherit this comparison while retaining their own support, unit and interpretation conditions.[1][4]

Abstract Reasoning

Verify the law or weights, finite relevant expectations, a convex domain containing the inputs and mean, and convexity on that domain. Only then compare \(f(E[X])\) with \(E[f(X)]\). For strict equality claims, add strict-convexity hypotheses; for KL claims, check where the reference density is zero before using finite log ratios.[2][4]

Knowledge Transfer

The same mean/transform ordering transfers literally from concave wealth utility to log-ratio information theory, but neither economic risk preferences nor density support conventions transfer automatically. Live prime Convexity supplies the broader chord-dominance skeleton. A direct DAG edge is deferred because its current live ancestry incorrectly makes Optimization a prerequisite to this theorem.[1][3][4]

Neighborhood in Abstraction Space

Jensen's Inequality sits in a sparse region of the domain-specific corpus (67th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Foundations of Probability & Inference (29 abstractions)

Nearest neighbors

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

References

[1] Stephen Boyd and Lieven Vandenberghe, Convex Optimization I, Stanford EE364a lecture slides, Convex Functions 3–12, PDF p. 49. registry ↩a ↩b ↩c

[2] John Duchi, Exercises for Theory of Statistics, Stanford Stats300b (Winter 2021), §2 Questions 2.1(e)–2.2, PDF p. 7. registry ↩a ↩b ↩c

[3] Alexander Wolitzky, Lecture 9: Attitudes toward Risk, MIT 14.121 (Fall 2015), PDF pp. 3–6. registry ↩a ↩b ↩c

[4] Thomas M. Cover and Joy A. Thomas, “Determinant Inequalities via Information Theory”, SIAM Journal on Matrix Analysis and Applications 9(3) (1988), §2 Lemma 1, PDF pp. 1–2. registry ↩a ↩b ↩c ↩d