{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $(X, \\Sigma, \\mu)$ be a measure space with $\\mu$ a [[probability measure|0VGMEBVW1M]], that is, $\\mu(X) = 1$.\nLet $-\\infty \\le a \u003c b \\le \\infty$ and let $g \\colon X \\to (a, b)$ be an [[integrable function|X7GTF3D98F]].\nLet $\\varphi \\colon (a, b) \\to \\R$ be a [[convex function|0VV0HSW1ZS]].\nThen $\\int_X g \\, d\\mu$ lies in $(a, b)$, and the negative part of $\\varphi \\circ g$ is integrable.\nMoreover,\n$$\\varphi\\Big( \\int_X g \\, d\\mu \\Big) \\le \\int_X \\varphi \\circ g \\, d\\mu,$$\nwhere the integrals are [[Lebesgue integrals|DWJF7ABPR1]] and the right side may be $+\\infty$.\n\n## Remarks\n\nProof idea: let $m = \\int g \\, d\\mu$.\nA convex function on an open interval has a supporting line at $m$: there is $c \\in \\R$ with $\\varphi(y) \\ge \\varphi(m) + c (y - m)$ for all $y \\in (a, b)$.\nPut $y = g(x)$ and integrate over $X$; the term $c(g - m)$ has integral $0$ because $\\mu(X) = 1$.\n\nExample: with $\\varphi(y) = y^2$ it gives $(\\int g \\, d\\mu)^2 \\le \\int g^2 \\, d\\mu$.\nIn probability this is $\\operatorname{Var}(Y) \\ge 0$.\nWith $\\varphi = \\exp$ it gives $\\exp(\\int g \\, d\\mu) \\le \\int e^{g} \\, d\\mu$.\n\nThe normalisation $\\mu(X) = 1$ is needed.\nFor $\\mu = 2 \\cdot$ Lebesgue measure on $[0, 1]$, $g = 1$ and $\\varphi(y) = y^2$, the left side is $4$ and the right side is $2$.\nWhen $\\mu$ is the probability measure with masses $w_i$ at finitely many points, the statement is the finite [[Jensen's inequality|0RWMRTPC87]].\n\n## Explanations\n\n### L1 human\n\nThe value of a convex function at an average is at most the average of its values.\nHere the average is an integral against a probability measure, so it covers both weighted sums and continuous averages.\nThe graph of a convex function bends upwards, which is why averaging after applying the function gives the larger result.\n\n### L2 human\n\nIn probability the inequality reads $\\varphi(\\mathbb{E}[Y]) \\le \\mathbb{E}[\\varphi(Y)]$ for an integrable random variable $Y$.\nIt yields the comparison $\\norm{f}_p \\le \\norm{f}_q$ for $p \\le q$ on probability spaces, the AM–GM inequality, and the non-negativity of the Kullback–Leibler divergence.\nThere is also a version for conditional expectations, used in martingale theory.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "0VV0HSW1ZS",
      "DWJF7ABPR1"
    ],
    "kind": "statement",
    "msc": [
      "26D15",
      "28A25",
      "60E15"
    ],
    "name": "Jensen's inequality for integrals",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Jensen%27s_inequality"
      }
    ],
    "tag": "JYRZ927BMQ",
    "uses": [
      "0VGMEBVW1M",
      "0VV0HSW1ZS",
      "X7GTF3D98F",
      "DWJF7ABPR1"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/JYRZ927BMQ/",
  "links": [
    {
      "field": "about",
      "target": "0VV0HSW1ZS"
    },
    {
      "field": "about",
      "target": "DWJF7ABPR1"
    },
    {
      "field": "uses",
      "target": "0VGMEBVW1M"
    },
    {
      "field": "uses",
      "target": "0VV0HSW1ZS"
    },
    {
      "field": "uses",
      "target": "X7GTF3D98F"
    },
    {
      "field": "uses",
      "target": "DWJF7ABPR1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/JYRZ927BMQ.md",
  "msc": [
    "26D15",
    "28A25",
    "60E15"
  ],
  "name": "Jensen's inequality for integrals",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/JYR/JYRZ927BMQ.md",
  "status": null,
  "tag": "JYRZ927BMQ",
  "uri": "m2://JYRZ927BMQ",
  "url": "https://math2.tamnd.com/wiki/jensens-inequality-for-integrals/",
  "writing": {
    "tag": "JYRZ927BMQ",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
