Quant Memo
Core

Jensen's Inequality

For a curved function, the average of the outputs isn't the output of the average — curvature creates a predictable gap. It explains volatility drag, why insurance exists, and why geometric returns trail arithmetic ones.

Prerequisites: Expected Value, Expectation, Variance & Moments

There's a trap that catches people constantly: they compute an average and then plug it into a formula, assuming the answer is the average of what the formula would have given. When the formula is a straight line, that's fine. When it curves, it's wrong — and Jensen's inequality tells you exactly which way it's wrong and by how much.

A function is convex if it bows upward, like a cup or a bowl — think x2x^2, or exe^x, or 1/x1/x for positive xx. For a convex function φ\varphi, the average of the outputs always sits at or above the output of the average:

E[φ(X)]φ(E[X]).E\bigl[\varphi(X)\bigr] \ge \varphi\bigl(E[X]\bigr) .

If the function bows downwardconcave, like logx\log x or x\sqrt{x} — the inequality flips, and the average output sits at or below the output of the average. The two sides are equal only when the function is a straight line, or when XX has no randomness at all. Every bit of spread in XX, combined with every bit of curvature in φ\varphi, opens a gap between the two — the Jensen gap.

Jensen gap E[φ(X)] — average output φ(E[X]) — output of average low X E[X] high X
For a convex (bowl-shaped) function, the straight chord between two outcomes lies above the curve. Averaging the two outputs lands you on the chord; feeding in the average first lands you on the lower curve. The vertical distance is the Jensen gap, and it grows with the spread of X.

The most important special case

Set φ(x)=x2\varphi(x) = x^2, which is convex. Jensen says E[X2](E[X])2E[X^2] \ge (E[X])^2, and the gap between the two is exactly the variance. So the fact that variance can never be negative is just Jensen's inequality in disguise. This is the template for everything else: curvature turns randomness into a systematic, one-directional bias.

For a convex (bowl) function, E[φ(X)]φ(E[X])E[\varphi(X)] \ge \varphi(E[X]); for a concave (dome) function it flips. The gap is created by spread times curvature — the more XX varies, the wider it opens.

Worked example: volatility drag

This is where Jensen pays rent for a trader. Suppose an investment gains 50%50\% one period and loses 50%50\% the next. The arithmetic average return is (+50%)+(50%)2=0%\tfrac{(+50\%) + (-50\%)}{2} = 0\%, which sounds like you broke even. But wealth compounds by multiplying, and $100 becomes

100×1.5×0.5=75.100 \times 1.5 \times 0.5 = 75 .

You're down 25%25\%. Where did the money go? Growth over time is governed by the log of the return factors, and log\log is concave. Jensen (flipped, for concave) says the average of the logs is below the log of the average:

E[log(1+R)]log(1+E[R]).E\bigl[\log(1+R)\bigr] \le \log\bigl(1 + E[R]\bigr) .

The left side drives compound growth; the right side is what the naive arithmetic mean would promise. The gap between them is volatility drag — the steady tax that swings impose on compounded wealth. Per period here the geometric growth is 0.75113.4%\sqrt{0.75} - 1 \approx -13.4\%, a real loss, even though the arithmetic mean was a cheerful zero. This concavity gap is the mathematical heart of the The Kelly Criterion and of why lower-volatility paths compound faster.

Another quick one: averages of reciprocals

Because 1/x1/x is convex for positive xx, Jensen gives E[1/X]1/E[X]E[1/X] \ge 1/E[X]. So the average of reciprocals overshoots the reciprocal of the average — a trap when someone averages ratios, speeds, or per-unit costs and expects the "obvious" answer. If a route is driven at 3030 mph out and 6060 mph back, the average speed is not 4545 but the harmonic mean 4040 mph, and that is Jensen at work.

Mnemonic: convex catches the expectation on topE[φ(X)]E[\varphi(X)] is the larger side for a bowl-shaped φ\varphi. Whenever you're tempted to "average, then plug in," ask whether the function curves. If it does, the shortcut is biased, and you now know which direction.

The direction of the inequality flips entirely between convex and concave, and mixing them up is a classic error. log\log, \sqrt{\,}, and utility-of-wealth curves are concave, so for them the average output is the smaller side — the opposite of the x2x^2 case most people memorize first.

Where it shows up

Jensen underlies the arithmetic-mean-beats-geometric-mean fact, the existence of a risk premium (a risk-averse investor has concave utility, so they'll pay to remove variance — that's insurance), the non-negativity of KL divergence and entropy bounds, and the log-optimal growth logic behind position sizing. Any time a curved function meets a random input, Jensen is quietly setting the direction of the error.

Related concepts

Practice in interviews

Further reading

  • Blitzstein & Hwang, Introduction to Probability, ch. 10
  • Boyd & Vandenberghe, Convex Optimization, ch. 3
ShareTwitterLinkedIn