39

One form of Jensen's inequality is

If $X$ is a random variable and $g$ is a convex function, then $\mathbb{E}(g(X))\geq g(\mathbb{E}(X))$.

Just out of curiosity, when do we have equality? If and only if $g$ is constant?

RobPratt
  • 50,938
eeeeeeeeee
  • 2,311

2 Answers2

16

Just for the sake of having an "answered" question (thanks to @hardmath and @Did), Jensen's inequality is equality when $g$ is affine or $X$ is constant almost surely.

Jacob A
  • 579
eeeeeeeeee
  • 2,311
1

I have come across this old question and I have noticed that while it states the result correctly it does not prove it. Let me prove it here for the benefit of the future readers.

If there is no set $A$ such that $\mathbb{P}(X\in A)=1$ and $g$ is affine on $A$, it must be the case that for all fixed $x\in \mathbb{R},b\in\partial g(x)$ (the set of subgradients of $g$ at $x$) $\mathbb{P}(g(X)>g(x)+b(X-x))>0$. Now, taking $x=\mathbb{E}(X)$ and any $b\in\partial g(x)$, it follows that $g(X)>g(\mathbb{E}(X))+b(X-\mathbb{E}(X))$ on a set of positive measure, so hence taking the expectations the inequality remains strict (since it holds weakly everywhere by convexity). Then we get $\mathbb{E}(g(X))>g(\mathbb{E}(X))+b(\mathbb{E}(X)-\mathbb{E}(X))=g(\mathbb{E}(X))$ and the result is proved.

No-one
  • 776