{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $(M, d)$ be a [[metric space|0VKD1TP7F3]] and let $X$ be a random element of $M$ with $E[d(X, q)^2] \u003c \\infty$ for some $q \\in M$.\nThe *Fréchet function* of $X$ is $F(p) = E[d(X, p)^2]$ for $p \\in M$, an [[expected value|0WQNRCNY3M]].\nA *Fréchet mean* of $X$ is a point $\\mu \\in M$ with\n$$F(\\mu) = \\inf_{p \\in M} F(p).$$\nFor points $x_1, \\dots, x_n \\in M$ and weights $w_i \u003e 0$, a *Fréchet mean* is a minimiser of $p \\mapsto \\sum_{i=1}^{n} w_i \\, d(x_i, p)^2$; with equal weights it is the *sample Fréchet mean*.\n\n## Remarks\n\nThe condition on $q$ and the triangle inequality give $F(p) \u003c \\infty$ for every $p$.\nThe set of Fréchet means may be empty or have several points.\nOn a complete Riemannian manifold a local minimiser of $F$ is called a Karcher mean.\nReplacing $d^2$ by $d$ gives the Fréchet median.\n\nExample: in $M = \\R^k$ with the Euclidean distance, $\\sum_i \\norm{x_i - p}^2 = \\sum_i \\norm{x_i - \\bar x}^2 + n \\norm{\\bar x - p}^2$, where $\\bar x$ is the [[sample mean|03Y6AQ2S0J]].\nSo the sample Fréchet mean is unique and equals $\\bar x$.\n\nNon-uniqueness: on the unit sphere with the great-circle distance, take two antipodal points $x$ and $-x$.\nIf $p$ is at distance $\\theta$ from $x$, it is at distance $\\pi - \\theta$ from $-x$, and $\\theta^2 + (\\pi - \\theta)^2$ is smallest exactly at $\\theta = \\pi/2$.\nSo every point of the equator between them is a Fréchet mean, and the \"midpoint\" is not a single point.\n\nNon-example: if $X$ is real with the Cauchy distribution, then $E[(X - q)^2] = \\infty$ for every $q \\in \\R$.\nThe moment condition fails, $F$ is infinite everywhere, and $X$ has no Fréchet mean, just as it has no ordinary mean.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "E3GQVC04BC",
    "kind": "definition",
    "msc": [
      "62R20",
      "62R30"
    ],
    "name": "Fréchet mean",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Fréchet_mean"
      }
    ],
    "tag": "KMBHAYAGZ9",
    "uses": [
      "0VKD1TP7F3",
      "0WQNRCNY3M",
      "0PNRKMRC55",
      "03Y6AQ2S0J"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/KMBHAYAGZ9/",
  "links": [
    {
      "field": "defines",
      "target": "E3GQVC04BC"
    },
    {
      "field": "uses",
      "target": "0VKD1TP7F3"
    },
    {
      "field": "uses",
      "target": "0WQNRCNY3M"
    },
    {
      "field": "uses",
      "target": "0PNRKMRC55"
    },
    {
      "field": "uses",
      "target": "03Y6AQ2S0J"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/KMBHAYAGZ9.md",
  "msc": [
    "62R20",
    "62R30"
  ],
  "name": "Fréchet mean",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KMB/KMBHAYAGZ9.md",
  "status": null,
  "tag": "KMBHAYAGZ9",
  "uri": "m2://KMBHAYAGZ9",
  "url": "https://tamnd.github.io/math2/wiki/frechet-mean-definition/",
  "writing": {
    "tag": "KMBHAYAGZ9",
    "kind": "definition",
    "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
      }
    ]
  }
}
