Why Convexity Controls Averages
A convex function bends in a way that makes averaging its outputs different from applying it to an average input. For a random variable \(X\), the basic comparison is between \(\varphi(\mathbb{E}X)\) and \(\mathbb{E}[\varphi(X)]\). Convexity says that the second quantity cannot be smaller, provided both sides are defined and the expectations are meaningful.
This principle is useful for turning information about a mean into a bound on a transformed expectation. Powers yield lower bounds on moments, while the exponential function yields bounds on moment-generating expectations. The argument rests on a geometric fact: at the mean, a convex function has a supporting line lying below its graph.
The inequality compares the function at a point between \(x\) and \(y\) with the corresponding weighted average of its values. Jensen’s inequality extends that two-point comparison to a random variable, which may take many values or a continuum of values.
Jensen’s Inequality for an Expectation
Here integrability means \(\mathbb{E}|X|<\infty\) and \(\mathbb{E}|\varphi(X)|<\infty\). The domain condition matters: the expression \(\varphi(\mathbb{E}X)\) must be defined. Since \(X\) lies almost surely in an open interval and is integrable, its expectation lies in that interval as well. For example, if \(X\in(a,b)\) almost surely, then \(X-a>0\) and \(b-X>0\) almost surely; each positive random variable has strictly positive expectation, giving \(a<\mathbb{E}X<b\). The same argument applies when an endpoint is infinite, omitting the corresponding bound.
We prove the theorem by finding a line that touches the graph at \(m=\mathbb{E}X\) and lies below it everywhere on \(I\). First, convexity implies that for \(a<b<c\) in \(I\), the secant slopes satisfy \[ \frac{\varphi(b)-\varphi(a)}{b-a} \leq \frac{\varphi(c)-\varphi(a)}{c-a} \leq \frac{\varphi(c)-\varphi(b)}{c-b}. \] Indeed, write \(b\) as a convex combination of \(a\) and \(c\), apply the definition of convexity, and rearrange. This slope ordering is what ensures that a supporting line exists.
The proof does not require differentiability. For a differentiable convex function, the supporting-line slope can be chosen as \(s=\varphi'(m)\); the secant argument also works at a point where the derivative does not exist.
When Does Equality Hold?
For a strictly convex function, the inequality is strict unless \(X\) is constant almost surely. This gives a useful diagnostic: equality is not generally expected when the random variable genuinely varies.
Worked Example: A Two-Point Variable and a Square
Worked Example: A Two-Point Variable and a Square
Let \(X\) take the values \(0\) and \(2\), each with probability \(1/2\). The function \(\varphi(x)=x^2\) is convex on \(\mathbb{R}\), and both \(X\) and \(\varphi(X)\) are integrable. First calculate the mean: \[ \mathbb{E}X=\tfrac12(0)+\tfrac12(2)=1. \] Then \[ \varphi(\mathbb{E}X)=1^2=1, \qquad \mathbb{E}[\varphi(X)] =\tfrac12(0^2)+\tfrac12(2^2)=2. \] Thus Jensen’s inequality gives \(1\leq2\). The inequality is strict because \(X\) is not constant and \(x^2\) is strictly convex.
Application to Powers
For every real \(p\geq1\), the function \(\varphi(x)=|x|^p\) is convex on \(\mathbb{R}\). Jensen’s inequality therefore gives a useful comparison between the absolute value of the mean and the \(p\)-th absolute moment.
To verify the hypotheses, \(|X|^p\) is integrable by assumption, and \(X\) is integrable by assumption. The function \(x\mapsto|x|^p\) is convex for \(p\geq1\), so the theorem applies on \(I=\mathbb{R}\). Its conclusion is exactly the displayed bound. For \(p=1\), the result reads \(|\mathbb{E}X|\leq\mathbb{E}|X|\); for larger \(p\), it bounds the mean using a higher absolute moment.
Worked Example: A Third Absolute Moment
Let \(X\) equal \(-1\) or \(3\), each with probability \(1/2\), and take \(p=3\). The mean is \[ \mathbb{E}X=\tfrac12(-1)+\tfrac12(3)=1, \] so \(|\mathbb{E}X|^3=1\). On the other hand, \[ \mathbb{E}|X|^3 =\tfrac12|-1|^3+\tfrac12|3|^3 =\tfrac12(1)+\tfrac12(27)=14. \] Hence \(1\leq14\), as Jensen’s inequality requires. The strict inequality is consistent with the fact that \(X\) is not constant and \(x\mapsto|x|^3\) is strictly convex.
Application to Exponential Expectations
For each fixed \(t\in\mathbb{R}\), the function \(\varphi(x)=e^{tx}\) is convex on \(\mathbb{R}\), since its second derivative is \(t^2e^{tx}\geq0\). If \(X\) is integrable and \(e^{tX}\) is integrable, Jensen’s inequality gives \[ e^{t\mathbb{E}X}\leq\mathbb{E}[e^{tX}]. \] The extra integrability condition is important: integrability of \(X\) alone does not guarantee that its exponential is integrable.
Worked Example: A Symmetric Two-Point Variable
Suppose \(X\) equals \(-a\) and \(a\), each with probability \(1/2\), where \(a>0\). Its mean is zero. For any \(t\in\mathbb{R}\), the exponential of \(tX\) has only two finite values, so it is integrable. Direct calculation gives \[ \mathbb{E}[e^{tX}] =\tfrac12 e^{-ta}+\tfrac12 e^{ta} =\frac{e^{ta}+e^{-ta}}{2}. \] Jensen’s inequality gives \[ e^{t\mathbb{E}X}=e^0=1 \leq \frac{e^{ta}+e^{-ta}}{2}. \] The final inequality can also be checked directly: for \(u=ta\), \(e^u+e^{-u}\geq2\), since \((e^{u/2}-e^{-u/2})^2\geq0\). If \(t\ne0\), the variable \(tX\) is nonconstant and the exponential is strictly convex as a function of its input, so the inequality is strict.
Assumptions and a Common Pitfall
Jensen’s inequality is sometimes remembered only as a formula, while its domain and integrability conditions are overlooked. The formula compares \(\varphi(\mathbb{E}X)\) with \(\mathbb{E}[\varphi(X)]\), so both expressions must be defined. In the theorem above, \(X\) lies in an open interval \(I\), its mean lies in \(I\), and \(\varphi(X)\) is integrable. These conditions ensure the comparison is an inequality between finite real numbers.
The direction also depends on convexity. For a concave function, the corresponding inequality is reversed, provided the expectations exist. Finally, Jensen’s inequality is a general statement about convex functions, not a rule that can be applied to an arbitrary transformation: one must establish convexity on an interval containing the values of \(X\).
Check Your Understanding
Use the assumptions and proof strategy above to answer the following questions.
- Why must \(\mathbb{E}X\) belong to the domain of \(\varphi\) for Jensen’s inequality to make sense?
- What role does the supporting line at \(m=\mathbb{E}X\) play in the proof?
- If \(X\) is integrable and \(\mathbb{E}|X|^4<\infty\), what bound does Jensen’s inequality give for \(|\mathbb{E}X|^4\)?
- What additional integrability condition is needed to apply Jensen’s inequality to \(e^{tX}\)?
- For a strictly convex function, what does equality in Jensen’s inequality imply about \(X\)?