{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $I$ be an interval and let $f \\colon I \\to \\mathbb{R}$ be [[convex|0VV0HSW1ZS]].\nLet $x_1, \\dots, x_n \\in I$, and let $w_1, \\dots, w_n \\ge 0$ with $w_1 + \\cdots + w_n = 1$.\nThen\n$$f\\Big( \\sum_{i=1}^{n} w_i x_i \\Big) \\le \\sum_{i=1}^{n} w_i f(x_i).$$\n\n## Remarks\n\nThe case $n = 2$ is the definition of convexity. Induction on $n$ gives the general case.\nFor a concave function, the inequality is reversed. With $f = \\ln$ this gives the [[AM–GM inequality|0DRF0F3XC9]].\nMathlib states it as `ConvexOn.map_sum_le`.\n\n## History\n\nJohan Jensen proved the inequality in 1906.\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.\nThe weights $w_i$ say how much each point counts in the average.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "26D15"
    ],
    "name": "Jensen's inequality",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q518131",
      "wikipedia": "Jensen's inequality"
    },
    "sources": [
      {
        "locator": "Finite form",
        "url": "https://en.wikipedia.org/wiki/Jensen%27s_inequality"
      }
    ],
    "tag": "0RWMRTPC87",
    "uses": [
      "0VV0HSW1ZS"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0RWMRTPC87/",
  "links": [
    {
      "field": "uses",
      "target": "0VV0HSW1ZS"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0RWMRTPC87.md",
  "msc": [
    "26D15"
  ],
  "name": "Jensen's inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0RW/0RWMRTPC87.md",
  "status": null,
  "tag": "0RWMRTPC87",
  "uri": "m2://0RWMRTPC87",
  "url": "https://math2.tamnd.com/wiki/jensens-inequality/",
  "writing": {
    "tag": "0RWMRTPC87",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
