Let (Ω,F,μ) be a probability space.
Let X:Ω→R be a random variable, s.t., X−1(B)∈F, ∀B∈R, where R is the collection of Borel sets in R.
Suppose that φ is a convex function defined on the interval I=[a,b], and that X(Ω)⊂I.
Assume that both X and φ∘X are integrable.
Theorem. (Jensen's Inequality)
φ(E[X])=φ(∫Xdμ)≤∫φ(X)dμ=E[φ(X)].
Proof. Since X(Ω)⊂I, by monotonicity of integration, it holds that
x∗≐E[X]=∫Xdμ∈I.
Case 1. Suppose that x∗∈(a,b).
As φ is convex, there exits a linear function h(x)=c(x−x∗)+φ(x∗) such that
φ(x)≥h(x) for all x∈I.
Hence, by monotonicity of integration,
E[φ(X)]=∫φ(X)dμ≥∫c(X−x∗)+φ(x∗)dμ=φ(x∗)=φ(E[X]).
Case 2.x∗=a (or b). Then
∫(X−a)dμ=0.
It follows that X(ω)=a a.e. ω∈Ω.
Clearly
φ(∫Xdμ)=φ(a)=∫φ(X)dμ.
□
Example. Let φ(x)=−lnx,∀x>0.
Let x1,…,xn∈(0,∞).
Denote xˉ=(1/n)∑ixi.
φ(xˉ)≤n1i∑(−lnxi).
Instead invoking the theorem directly, we apply the same technique to prove this again.
The claim is trivial if x1=…=xn.
Otherwise, consider the tangent line of φ(x) at xˉ:
h(x)=−xˉ1⋅(x−xˉ)−lnxˉ.
It holds that φ(xi)≥h(xi), for all i∈[n].
Therefore,