โ† Apps
๐Ÿ“

Jensen's Inequality

Drag control points to reshape a convex or concave function, place probability mass, then compare ฯ†(๐”ผ[X]) to ๐”ผ[ฯ†(X)] directly.

Neither
Challenges
โ—‹
Convex ฯ† โ€” drag the โ—† control points until the curve is convex (U-shaped). Jensen's inequality then guarantees ฯ†(๐”ผ[X]) โ‰ค ๐”ผ[ฯ†(X)] for any placement of X.
โ—‹
Concave ฯ† โ€” make the curve concave (โˆฉ-shaped). Jensen's inequality reverses: ฯ†(๐”ผ[X]) โ‰ฅ ๐”ผ[ฯ†(X)].
0/2
Both directions โ€” find a curve that is neither convex nor concave. Then, with that same curve, find two different placements of X: one where ฯ†(๐”ผ[X]) โ‰ค ๐”ผ[ฯ†(X)] and one where the inequality flips. Click Show Jensen's for each placement.

Drag โ—† to reshape ฯ† ยท Click the x-axis to place probability mass ยท Right-click axis to remove a point