{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\set{P_\\theta : \\theta \\in \\Theta}$ be a statistical model with a [[loss function|3BTG6VVCGZ]] $L$, and let $\\pi$ be a [[prior|00NBBSXRQS]] on $\\Theta$.\nFor an [[estimator|0SSS6ERQ0S]] $\\delta$, let $r(\\pi, \\delta)$ be its [[Bayes risk|VEBDNCJJTN]], the [[risk|N26TSVRH2S]] $R(\\theta, \\delta)$ averaged over $\\pi$.\nAn estimator $\\delta_\\pi$ is a *Bayes estimator* with respect to $\\pi$ if $r(\\pi, \\delta_\\pi) \u003c \\infty$ and\n$$r(\\pi, \\delta_\\pi) = \\inf_{\\delta} r(\\pi, \\delta),$$\nwhere the infimum is over all estimators $\\delta$.\n\n## Remarks\n\nIf $r(\\pi) \u003c \\infty$, an estimator that minimizes the [[posterior|0KJ7ZS8AJA]] expected loss $E[L(\\theta, \\delta(x)) \\mid X = x]$ for almost every $x$ is a Bayes estimator.\nUnder squared error loss $L(\\theta, a) = (a - \\theta)^2$, the Bayes estimator is the posterior mean $E[\\theta \\mid X]$.\nUnder absolute error loss, it is a posterior median.\n\nExample: let $X$ be [[binomial|0WCWA1KT3M]] with parameters $n$ and $\\theta$, and let $\\pi$ be the [[beta distribution|0EW824Z7G2]] with parameters $a, b \u003e 0$.\nThe posterior is the beta distribution with parameters $a + X$ and $b + n - X$.\nSo under squared error loss the Bayes estimator is its mean $(a + X)/(a + b + n)$.\n\nNon-example: for the uniform prior, $a = b = 1$, the Bayes estimator is $(X + 1)/(n + 2)$.\nThe proportion $X/n$ differs from it whenever $X \\ne n/2$, and for $n \\ge 1$ its Bayes risk $1/(6n)$ is larger, so $X/n$ is not the Bayes estimator for this prior.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "PP1A0JB47Q",
    "kind": "definition",
    "msc": [
      "62C10",
      "62F15"
    ],
    "name": "Bayes estimator",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Bayes_estimator"
      }
    ],
    "tag": "7T98FQFGYY",
    "uses": [
      "VEBDNCJJTN",
      "N26TSVRH2S",
      "3BTG6VVCGZ",
      "00NBBSXRQS",
      "0KJ7ZS8AJA",
      "0SSS6ERQ0S",
      "0EW824Z7G2",
      "0WCWA1KT3M"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/7T98FQFGYY/",
  "links": [
    {
      "field": "defines",
      "target": "PP1A0JB47Q"
    },
    {
      "field": "uses",
      "target": "VEBDNCJJTN"
    },
    {
      "field": "uses",
      "target": "N26TSVRH2S"
    },
    {
      "field": "uses",
      "target": "3BTG6VVCGZ"
    },
    {
      "field": "uses",
      "target": "00NBBSXRQS"
    },
    {
      "field": "uses",
      "target": "0KJ7ZS8AJA"
    },
    {
      "field": "uses",
      "target": "0SSS6ERQ0S"
    },
    {
      "field": "uses",
      "target": "0EW824Z7G2"
    },
    {
      "field": "uses",
      "target": "0WCWA1KT3M"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/7T98FQFGYY.md",
  "msc": [
    "62C10",
    "62F15"
  ],
  "name": "Bayes estimator",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/7T9/7T98FQFGYY.md",
  "status": null,
  "tag": "7T98FQFGYY",
  "uri": "m2://7T98FQFGYY",
  "url": "https://tamnd.github.io/math2/wiki/bayes-estimator-definition/",
  "writing": {
    "tag": "7T98FQFGYY",
    "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
      }
    ]
  }
}
