Sharpening Jensen's Inequality

J. G. Liao, Arthur Berg

Introduction

Jensen’s inequality is a fundamental inequality in mathematics and it underlies many important statistical proofs and concepts. Some standard applications include derivation of the arithmetic-geometric mean inequality, non-negativity of Kullback and Leibler divergence, and the convergence property of the expectation-maximization algorithm (Dempster et al., 1977). Jensen’s inequality is covered in all major statistical textbooks such as Casella and Berger (2002, Section 4.7) and Wasserman (2013, Section 4.2) as a basic mathematical tool for statistics.

Let XX be a random variable with finite expectation and let φ(x)\varphi(x) be a convex function, then Jensen’s inequality (Jensen, 1906) establishes

We have incorporated the materials in this paper in our classroom teaching. With only slightly increased technical level and lecture time, we are able to present a much sharper version of the Jensen’s inequality that significantly enhances students’ understanding of the underlying concepts.

Main result

Let XX be a one-dimensional random variable with mean μ\mu, and P(X∈(a,b))=1P(X\in(a,b))=1, where −∞≤a<b≤∞-\infty\leq a<b\leq\infty. Let φ(x)\varphi(x) is a twice differentiable function on (a,b)(a,b), and define function

Let F(x)F(x) be the cumulative distribution function of XX. Applying Taylor’s theorem to φ(x)\varphi(x) about μ\mu with a mean-value form of the remainder gives

where g(x)g(x) is between xx and μ\mu. Explicitly solving for φ′′(g(x))/2\varphi^{\prime\prime}(g(x))/2 gives φ′′(g(x))/2=h(x;μ)\varphi^{\prime\prime}(g(x))/2=h(x;\mu) as defined above. Therefore

and the result follows because inf⁡x∈(a,b)h(x;μ)≤h(x;μ)≤sup⁡x∈(a,b)h(x;μ)\inf_{x\in(a,b)}h(x;\mu)\leq h(x;\mu)\leq\sup_{x\in(a,b)}h(x;\mu). ∎

Theorem 1 also holds when inf⁡h(x;μ)\inf h(x;\mu) is replaced by inf⁡φ′′(x)/2\inf\varphi^{\prime\prime}(x)/2 and sup⁡h(x;μ)\sup h(x;\mu) replaced by sup⁡φ′′(x)/2\sup\varphi^{\prime\prime}(x)/2 since

These less tight bounds are implied in the economics working paper Becker (2012). Our lower and upper bounds have the general form J⋅var(X)J\cdot\text{var}(X), where JJ depends on φ\varphi. Similar forms of bounds are presented in Abramovich and Persson (2016); Dragomir (2014); Walker (2014), but our JJ in Theorem 1 is much simpler and applies to a wider class of φ\varphi.

Inequality (2) implies Jensen’s inequality when φ′′(x)≥0\varphi^{\prime\prime}(x)\geq 0. Note also that Jensen’s inequality is sharp when φ(x)\varphi(x) is linear, whereas inequality (2) is sharp when φ(x)\varphi(x) is a quadratic function of xx.

In some applications the moments of XX present in (2) are unknown, although a random sample x1,…,xnx_{1},\ldots,x_{n} from the underlying distribution FF is available. A version of Theorem 1 suitable for this situation is given in the following corollary.

Let x1,…,xnx_{1},\ldots,x_{n} be any nn datapoints in (−∞,∞)(-\infty,\infty), and let

where a=min⁡{x1,…,xn}a=\min\{x_{1},\ldots,x_{n}\} and b=max⁡{x1,…,xn}b=\max\{x_{1},\ldots,x_{n}\}.

Consider the discrete random variable XX with probability distribution P(X=xi)=1/nP(X=x_{i})=1/n, i=1,…,ni=1,\ldots,n. We have E[X]=xˉE[X]=\bar{x}, E[φ(X)]=φx‾E[\varphi(X)]=\overline{\varphi_{x}}, and var(X)=S2\text{var}(X)=S^{2}. Then the corollary follows from application of Theorem 1. ∎

If φ′(x)\varphi^{\prime}\left(x\right) is convex, then h(x;μ)h(x;\mu) is monotonically increasing in xx, and if φ′(x)\varphi^{\prime}\left(x\right) is concave, then h(x;μ)h(x;\mu) is monotonically decreasing in xx.

We prove that h′(x;μ)≥0h^{\prime}(x;\mu)\geq 0 when φ′(x)\varphi^{\prime}(x) is convex. The analogous result for concave φ′(x)\varphi^{\prime}(x) follows similarly. Note that

Without loss of generality we assume x>μx>\mu. Convexity of φ′(x)\varphi^{\prime}(x) gives

Lemma 1 makes Theorem 1 easy to use as the follow results hold:

Note the limits of h(x;μ)h(x;\mu) can be either finite or infinite. The proof of Lemma 1 borrows ideas from Bennish (2003). Examples of functions φ(x)\varphi(x) for which φ′\varphi^{\prime} is convex include φ(x)=exp⁡(x)\varphi(x)=\exp(x) and φ(x)=xp\varphi(x)=x^{p} for p≥2p\geq 2 or p∈(0,1]p\in(0,1]. Examples of functions φ(x)\varphi(x) for which φ′\varphi^{\prime} is concave include φ(x)=−log⁡x\varphi(x)=-\log x and φ(x)=xp\varphi(x)=x^{p} for p<0p<0 or p∈p\in.

Examples

For any random variable XX supported on (a,b)(a,b) with a finite variance, we can bound the moment generating function E[etX]E[e^{tX}] using Theorem 1 to get

For t>0t>0 and (a,b)=(−∞,∞)(a,b)=(-\infty,\infty), we have

So Theorem 1 provides no improvement over Jensen’s inequality. However, on a finite domain such as a non-negative random variable with (a,b)=(0,∞)(a,b)=(0,\infty), a significant improvement in the lower bound is possible because

The less sharp lower bound using inf⁡φ′′(x)/2\inf\varphi^{\prime\prime}(x)/2 is 0.125. Utilizing elaborate approximations and numerical optimizations Walker (2014) yielded a more accurate lower bound of 0.271.

Let XX be a positive random variable on interval (a,b)(a,b) with mean μ\mu. Note that −log⁡(x)-\log(x) is convex whose derivative is concave. Applying Theorem 1 and Lemma 1 leads to

Now consider a sample of nn positive data points x1,…,xnx_{1},\ldots,x_{n}. Let xˉ\bar{x} be the arithmetic mean and xˉg=(x1x2⋯xn)1n\bar{x}_{g}=(x_{1}x_{2}\cdots x_{n})^{\frac{1}{n}} be the geometric mean. Applying Corollary 1.1 gives

where aa, bb, S2S^{2} are as defined in Corollary 1.1. To give some numerical results, we generated 100 random numbers from uniform distribution on . For these 100 numbers, the arithmetic mean xˉ\bar{x} is 54.830 and the geometric mean xˉg\bar{x}_{g} is 47.509. The above inequality becomes

which are fairly tight bounds. Replacing h(xn;xˉ)h(x_{n};\bar{x}) by φ′′(xn)/2\varphi^{\prime\prime}(x_{n})/2 and h(x1;xˉ)h(x_{1};\bar{x}) by φ′′(x1)/2\varphi^{\prime\prime}(x_{1})/2 leads to a less accurate lower bound 1.0339 and upper bound 21.698.

Let XX be a positive random variable on a positive interval (a,b)(a,b) with mean μ\mu. For any real number s≠0s\not=0, define the power mean as

Jensen’s inequality establishes that Ms(X)M_{s}(X) is an increasing function of ss. We now give a sharper inequality by applying Theorem 1. Let r≠0r\not=0, Y=xrY=x^{r}, μy=EY\mu_{y}=EY, p=s/rp=s/r and φ(y)=yp\varphi(y)=y^{p}. Note that EXs=E{φ(Y)}EX^{s}=E\{\varphi(Y)\}. Applying Theorem 1 leads to

To apply Lemma 1, note that φ′(y)\varphi^{\prime}(y) is convex for p≥2p\geq 2 or p∈(0,1]p\in(0,1] and is concave for p<0p<0 or p∈p\in as noted in Section 2.

Applying the above result to the case of r=1r=1 and s=−1s=-1, we have Y=XY=X, p=−1p=-1. Therefore

For the same sequence x1,…,xnx_{1},\ldots,x_{n} generated in Example 2, we have xˉharmonic=39.113\bar{x}_{\text{harmonic}}=39.113. Applying Corollary 1.1 leads to

Note that the upper bound 48.905 is much smaller than the arithmetic mean xˉ=54.830\bar{x}=54.830 by the Jensen’s inequality. Replacing h(b;xˉ)h(b;\bar{x}) by φ′′(b)/2\varphi^{\prime\prime}(b)/2 and h(a;xˉ)h(a;\bar{x}) by φ′′(a)/2\varphi^{\prime\prime}(a)/2 leads to a less accurate lower bound 0.8298 and 51.0839.

In a recent article published in the American Statistician, de Carvalho (2016) revisited Kolmogorov’s formulation of generalized mean as

where φ\varphi is a continuous monotone function with inverse φ−1\varphi^{-1}. The Example 2 corresponds to φ(x)=−log⁡(x)\varphi(x)=-\log(x) and Example 3 corresponds to φ(x)=xs\varphi(x)=x^{s}. We can also apply Theorem 1 to bound φ−1(Eφ(X))\varphi^{-1}(E\varphi(X)) for a more general function φ(x)\varphi(x).

Rao-Blackwell theorem (Theorem 7.3.17 in Casella and Berger, 2002; Theorem 10.42 in Wasserman, 2013) is a basic result in statistical estimation. Let θ^\hat{\theta} be an estimator of θ\theta, L(θ,θ^)L(\theta,\hat{\theta}) be a loss function convex in θ^\hat{\theta}, and TT a sufficient statistic. Then the Rao-Blackwell estimator, θ^∗=E[θ^∣T]\hat{\theta}^{*}=E[\hat{\theta}\mid T], satisifies the following inequality in risk function

We can improve this inequality by applying Theorem 1 to φ(θ^)=L(θ,θ^)\varphi(\hat{\theta})=L(\theta,\hat{\theta}) with respect to the conditional distribution of θ^\hat{\theta} given TT:

where function hh is defined as in Theorem 1 for φ(θ^)\varphi(\hat{\theta}) and P(θ^∈(a,b)∣T)=1P(\hat{\theta}\in(a,b)\mid T)=1. Further taking expectations over TT gives

In particular for square-error loss, L(θ,θ^)=(θ^−θ)2L(\theta,\hat{\theta})=(\hat{\theta}-\theta)^{2}, we have

Using the original Jensen’s inequality only establishes the cruder inequality in Equation (4).

Improved bounds by partitioning

As discussed in Example 1 above, Theorem 1 does not improve on Jensen’s inequality if inf⁡h(x;μ)=0\inf h(x;\mu)=0. In such cases, we can often sharpen the bounds by partitioning the domain (a,b)(a,b) following an approach used in Walker (2014). Let

Ij=[xj−1,xj)I_{j}=\left[x_{j-1},x_{j}\right), ηj=P(X∈Ij)\eta_{j}=P(X\in I_{j}), and μj=E(X∣X∈Ij)\mu_{j}=E(X\mid X\in I_{j}). It follows from the law of total expectation that

Let YY be a discrete random variable with distribution P(Y=μj)=ηj,j=1,2,…,mP(Y=\mu_{j})=\eta_{j},j=1,2,\ldots,m. It is easy to see that EY=EXEY=EX. It follows by Theorem 1 that

We can also apply Theorem 1 to each E[φ(X∣X∈Ij)]−φ(μj)E[\varphi(X\mid X\in I_{j})]-\varphi(\mu_{j}) term:

Combining the above two equations, we have

Replacing inf⁡\inf by sup⁡\sup in the righthand side gives the upper bound.

The Jensen gap on the left side of (5) is positive if any of the m+1m+1 terms on the right is positive. In particular, the Jensen gap is positive if there exists an interval I⊂(a,b)I\subset(a,b) that satisfies inf⁡x∈Iφ′′(x)>0\inf_{x\in I}\varphi^{\prime\prime}(x)>0, P(X∈I)>0P(X\in I)>0 and var(X∣X∈I)>0\text{var}(X\mid X\in I)>0. Note that a finer partition does not necessarily lead to a sharper lower bound in (5). The focus of the partition should therefore be on isolating the part of interval (a,b)(a,b) in which φ′′(x)\varphi^{\prime\prime}(x) is close to 0.

Consider example X∼N(μ,σ2)X{\sim}N\left(\mu,\sigma^{2}\right) with μ=0\mu=0 and σ=1\sigma=1 and φ(x)=ex\varphi(x)=e^{x}. We divide (−∞,∞)(-\infty,\infty) into three intervals with equal probabilities. This gives

The actual Jensen gap is eμ+σ2−eμ=0.649e^{\mu+\frac{\sigma}{2}}-e^{\mu}=0.649. The lower bound from (5) is 0.409, which is a huge improvement over Jensen’s bound of 0. The upper bound ∞\infty, however, provides no improvement over Theorem 1.

To summarize, this paper proposes a new sharpened version of the Jensen’s inequality. The proposed bound is simple and insightful, is broadly applicable by imposing minimum assumptions on φ(x)\varphi(x), and provides fairly accurate result in spite of its simple form. It can be incorporated in any calculus-based statistical course.

References