Skip to content

Jensen Inequality

Theorem

Let XX be an integrable random variable taking values in an interval on which gg is convex. If E[g(X)]\mathbb{E}[g(X)] exists (in the finite-valued form, E∣g(X)∣<∞\mathbb{E}|g(X)|<\infty), then

E[g(X)]≥g(EX).\begin{aligned} \mathbb{E}[g(X)]\geq g(\mathbb{E} X). \end{aligned}

The inequality reverses for concave gg.

The Expectation is the weighted average in this result. Convexity compares the function evaluated at that average with the average of the function values.


Interpretation

For a convex function, averaging before applying the function gives no larger a value than applying it first and then averaging: g(EX)≤E[g(X)]g(\mathbb{E}X)\le\mathbb{E}[g(X)]. In general an expectation cannot be moved through a nonlinear function, and convexity tells in which direction the error goes.

The convex curve g(x) = x squared with a chord between two points x1 and x2; above the mean of X the chord, giving the mean of g(X), lies above the curve value g at the mean.

In the figure XX takes two values x1x_1 and x2x_2 with probability 12\tfrac{1}{2} each, so EX\mathbb{E}X is their midpoint. The chord joins the points of the graph of g(x)=x2g(x)=x^2 above x1x_1 and x2x_2; above EX\mathbb{E}X its height is the average E[g(X)]\mathbb{E}[g(X)], while the curve has height g(EX)g(\mathbb{E}X). A convex graph lies below its chords, so g(EX)≤E[g(X)]g(\mathbb{E}X)\le\mathbb{E}[g(X)]. For a variable with two values this is exactly the definition of convexity, with the probabilities as weights; Jensen's inequality extends it to every distribution.

With g(x)=x2g(x)=x^2, Jensen gives (EX)2≤E[X2](\mathbb{E}X)^2\le\mathbb{E}[X^2], that is Var⁡(X)≥0\operatorname{Var}(X)\ge0, as in the first Example. For the concave log⁡\log the inequality reverses, E[log⁡X]≤log⁡EX\mathbb{E}[\log X]\le\log\mathbb{E}X.

A common slip is to replace E[g(X)]\mathbb{E}[g(X)] by g(EX)g(\mathbb{E}X) for a nonlinear gg. For positive XX, g(x)=1/xg(x)=1/x is convex on (0,∞)(0,\infty), so E[1/X]≥1/EX\mathbb{E}[1/X]\ge1/\mathbb{E}X; if XX is 11 or 33 with equal probability, these are 23\tfrac{2}{3} and 12\tfrac{1}{2}. This idea returns later in insurance: with a concave utility, the expected utility of an uncertain wealth is at most the utility of its expected value.


Key Results

  • For a concave function, the inequality reverses.
  • If gg is strictly convex and both sides are finite, equality holds exactly when XX is constant almost surely.

Examples

  • For g(x)=x2g(x)=x^2 and X∼Unif⁡(0,1)X\sim\operatorname{Unif}(0,1), g(EX)=1/4≤E[X2]=1/3g(\mathbb{E}X)=1/4\le\mathbb{E}[X^2]=1/3.
  • For X=1X=1 or 33 with equal probability, concavity of log⁡\log gives Elog⁡X=12log⁡3≤log⁡2=log⁡EX\mathbb{E}\log X=\frac{1}{2}\log3\le\log2=\log\mathbb{E}X.

Prerequisites

Sources

Aliases: Jensen's inequality Symbols: infinity

Last updated: 20 October 2026 03:02