Lably
Skip to content

Jensen's inequality

Theorem of convex functions

  • 10 min read
  • 4 chapters

Related on Lably

Through Mathematics, Integral and Inequality (mathematics)

Jensen's inequality generalizes the statement that the secant line of a convex function lies above the graph of the function, which is Jensen's inequality for two points: the secant line consists of weighted means of the convex function (for t ∈ [0,1]),

tf(x1)+(1−t)f(x2),

while the graph of the function is the convex function of the weighted means,

f(tx1+(1−t)x2).

Thus, Jensen's inequality in this case is

f(tx1+(1−t)x2)≤tf(x1)+(1−t)f(x2).

In the context of probability theory, it is generally stated in the following form: if X is a random variable and φ is a convex function, then

φ(E⁡[X])≤E⁡[φ(X)].

The difference between the two sides of the inequality, E⁡[φ(X)]−φ(E⁡[X]), is called the Jensen gap.

Statements

The classical form of Jensen's inequality involves several numbers and weights. The inequality can be stated quite generally using either the language of measure theory or (equivalently) probability. In the probabilistic setting, the inequality can be further generalized to its full strength.

Finite form

For a real convex function φ, numbers x1,x2,…,xn in its domain, and positive weights ai, Jensen's inequality can be stated as:

and the inequality is reversed if φ is concave, which is

Equality holds if and only if x1=x2=⋯=xn or φ is linear on a domain containing x1,x2,⋯,xn.

As a particular case, if the weights ai are all equal, then (1) and (2) become

For instance, the function log(x) is concave, so substituting φ(x)=log⁡(x) in the previous formula (4) establishes the (logarithm of the) familiar arithmetic-mean/geometric-mean inequality:

log(∑i=1nxin)≥∑i=1nlog(xi)n exp(log(∑i=1nxin))≥exp(∑i=1nlog(xi)n) x1+x2+⋯+xnn≥x1⋅x2⋯xnn

A common application has x as a function of another variable (or set of variables) t, that is, xi=g(ti). All of this carries directly over to the general continuous case: the weights ai are replaced by a non-negative integrable function f (x), such as a probability distribution, and the summations are replaced by integrals.

Measure-theoretic form

Let (Ω,A,μ) be a probability space. Let f:Ω→R be a μ-integrable function and φ:R→R be convex. Then: φ(∫Ωfdμ)≤∫Ωφ∘fdμ

In real analysis, we may require an estimate on

φ(∫abf(x)dx)

where a,b∈R, and f:[a,b]→R is a non-negative Lebesgue-integrable function. In this case, the Lebesgue measure of [a,b] need not be 1. However, by integration by substitution, the interval can be rescaled so that it has measure 1. Then Jensen's inequality can be applied to get

φ(1b−a∫abf(x)dx)≤1b−a∫abφ(f(x))dx.

Probabilistic form

The same result can be equivalently stated in a probability theory setting, by a simple change of notation. Let (Ω,F,P) be a probability space, X an integrable real-valued random variable and φ a convex function. Then φ(E⁡[X])≤E⁡[φ(X)].

In this probability setting, the measure μ is intended as a probability P, the integral with respect to μ as an expected value E, and the function f as a random variable X.

Note that the equality holds if and only if φ is a linear function on some convex set A such that P(X∈A)=1 (which follows by inspecting the measure-theoretical proof below).

General inequality in a probabilistic setting

More generally, let T be a real topological vector space, and X a T-valued integrable random variable. In this general setting, integrable means that there exists an element E⁡[X] in T, such that for any element z in the dual space of T: E⁡|⟨z,X⟩|<∞, and ⟨z,E⁡[X]⟩=E⁡[⟨z,X⟩]. Then, for any measurable convex function φ and any sub-σ-algebra G of F:

φ(E⁡[X∣G])≤E⁡[φ(X)∣G].

Here E⁡[⋅∣G] stands for the expectation conditioned to the σ-algebra G. This general statement reduces to the previous ones when the topological vector space T is the real axis, and G is the trivial σ-algebra {∅, Ω} (where ∅ is the empty set, and Ω is the sample space).

A sharpened and generalized form

Let X be a one-dimensional random variable with mean μ and variance σ2≥0. Let φ(x) be a twice differentiable function, and define the function

h(x)≜φ(x)−φ(μ)(x−μ)2−φ′(μ)x−μ.

Then

σ2infφ″(x)2≤σ2infh(x)≤E[φ(X)]−φ(E[X])≤σ2suph(x)≤σ2supφ″(x)2.

In particular, when φ(x) is convex, then φ″(x)≥0, and the standard form of Jensen's inequality immediately follows for the case where φ(x) is additionally assumed to be twice differentiable.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Calculus and analysis