Jensen's Inequality as an Intuition Tool (2021)
blog.moontower.ai
blog.moontower.ai
Goes to wikipedia
"In mathematics, Jensen's inequality, named after the Danish mathematician Johan Jensen, relates the value of a convex function of an integral to the integral of the convex function. It was proved by Jensen in 1906,[1] building on an earlier proof of the same inequality for doubly-differentiable functions by Otto Hölder in 1889.[2] Given its generality, the inequality appears in many forms depending on the context, some of which are presented below. In its simplest form the inequality states that the convex transformation of a mean is less than or equal to the mean applied after convex transformation; it is a simple corollary that the opposite is true of concave transformations"
I still have no idea what it means.
\ /
\ /
\ /
\/
If you connect any two points, it lies outside the curve. Which is basically the intuition for Jensen's inequality: if you go partway between two points it's above the curve, so the weighted average of the curve at those two points is bigger than the curve at their weighted average.There are a bunch of generalizations to this. It works for any convex combination of points. A convex combination of points is a weighted sum of points where the weights are positive and add to 1. If one is careful, eventually this can become an infinite convex combination of points, which means that the inequality holds with integrals.
In my opinion, the wiki article is not well written.
It applies in scenarios that are "convex", which means that the derivative is monotonically increasing or decreasing, so "closer to 0" is a consistent direction.
I skimmed several section looking for it. :(
Definitely recommend reading a little of this first:
https://en.m.wikipedia.org/wiki/Jensen%27s_inequality
(Could just provide a link to it near the beginning of the article for reference.)
(People might say, well isn't it obvious what convex means. My response is no, it's dealer's choice)
...the inequality the way I learned it²:
E[f(x)] ≥ f(E[x])
…if f(x) is convex
I like the visualizations of the expected value against the individual probabilistic components as well, though I wish there were more non-uniform distributions visualized. Perhaps if we take the traffic example and tweak the distribution to be non-uniform, that might make for a cool interactive viz.
The point of Jensen’s inequality if I understand correctly is that you’d underestimate the value of holding using a basic estimate approach, because you’ll underestimate the compounding cash flow from growth?
I don't think that's true. It's that if X is a random variable and φ is a convex function, then
φ(E[X]) ≤ E[φ(X)].
It's not necessary for X to be Gaussian, only that φ is convex.An intuitive way of thinking about it is if φ is convex then it is cup-shaped. So if I sample two points from X and draw a line φ(x_1) to φ(x_2) then that line will clearly lie above the points in x that are between x_1 and x_2 in the cup right? Jensen's inequality just generalises that to say what if I take all the points from X, then the expectation of φ(X) is going to sit above φ(E[X]). Because E[X] is just going to sit somewhere in the middle of X so φ(E[X]) is going to be down in the middle of the cup so is going to be smaller than (φ(x_1)+φ(x_2)+...φ(x_n))/n, which is E[φ(X)].