{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $x_1, \\dots, x_n \u003e 0$ be real numbers and let $w_1, \\dots, w_n \u003e 0$ be weights with $w_1 + \\dots + w_n = 1$.\nFor a real number $p \\ne 0$, let\n$$M_p = \\Big( \\sum_{i=1}^{n} w_i x_i^{p} \\Big)^{1/p}, \\qquad M_0 = \\prod_{i=1}^{n} x_i^{w_i}.$$\nIf $p \u003c q$, then $M_p \\le M_q$, with equality if and only if $x_1 = x_2 = \\dots = x_n$.\n\n## Remarks\n\nProof idea: for $0 \u003c p \u003c q$, the function $t \\mapsto t^{q/p}$ is strictly convex on $(0, \\infty)$, and [[Jensen's inequality|0RWMRTPC87]] applied to the numbers $x_i^p$ gives $M_p^q \\le M_q^q$.\nThe case $p \u003c q \u003c 0$ follows by applying this to the numbers $1 / x_i$, since $M_{-r}(x) = 1 / M_r(1/x)$.\nThe cases with $p = 0$ or $q = 0$ follow from the weighted [[AM–GM inequality|0DRF0F3XC9]], or from the limit $M_p \\to M_0$ as $p \\to 0$.\n\nExample: the cases $p = -1, 0, 1, 2$ give harmonic mean $\\le$ geometric mean $\\le$ arithmetic mean $\\le$ quadratic mean.\nFor $x = (1, 4)$ with equal weights these are $8/5$, $2$, $5/2$ and $\\sqrt{17/2} \\approx 2.92$.\n\nMathlib states a related form as `Real.rpow_arith_mean_le_arith_mean_rpow`.\n\n## Explanations\n\n### L1 human\n\nThere are many ways to average positive numbers: the usual average, the geometric mean, the root mean square, and more.\nThey form one family indexed by an exponent $p$.\nThe inequality says that a larger exponent always gives a larger average, unless all the numbers are equal.\n\n### L2 human\n\nThe power mean inequality packages the AM–GM inequality, the AM–HM inequality and the AM–QM inequality into one statement.\nIt is a direct consequence of Jensen's inequality for the power functions.\nAs $p \\to \\infty$ the mean $M_p$ tends to $\\max_i x_i$, and as $p \\to -\\infty$ it tends to $\\min_i x_i$, so all the means lie between the smallest and the largest number.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "0RWMRTPC87"
    ],
    "kind": "statement",
    "msc": [
      "26E60",
      "26D15"
    ],
    "name": "Generalized mean inequality",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Generalized_mean"
      }
    ],
    "tag": "XZ1EXQPJ6S",
    "uses": [
      "0RWMRTPC87",
      "0DRF0F3XC9"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/XZ1EXQPJ6S/",
  "links": [
    {
      "field": "about",
      "target": "0RWMRTPC87"
    },
    {
      "field": "uses",
      "target": "0RWMRTPC87"
    },
    {
      "field": "uses",
      "target": "0DRF0F3XC9"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/XZ1EXQPJ6S.md",
  "msc": [
    "26E60",
    "26D15"
  ],
  "name": "Generalized mean inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/XZ1/XZ1EXQPJ6S.md",
  "status": null,
  "tag": "XZ1EXQPJ6S",
  "uri": "m2://XZ1EXQPJ6S",
  "url": "https://math2.tamnd.com/wiki/generalized-mean-inequality/",
  "writing": {
    "tag": "XZ1EXQPJ6S",
    "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
      }
    ]
  }
}
