{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "7T98FQFGYY"
    },
    {
      "field": "uses",
      "target": "969F3AWBKC"
    },
    {
      "field": "uses",
      "target": "AHYMBCMW11"
    },
    {
      "field": "uses",
      "target": "J2GWK27Y15"
    },
    {
      "field": "uses",
      "target": "M9SVV4FDZV"
    },
    {
      "field": "uses",
      "target": "P4DFMJTD09"
    },
    {
      "field": "uses",
      "target": "RNV041SNCT"
    },
    {
      "field": "uses",
      "target": "SZ7QZBDPYJ"
    },
    {
      "field": "specializes",
      "target": "RATW595XR9"
    },
    {
      "field": "defines",
      "target": "RE02MP1H45"
    }
  ],
  "body": "\n## Summary\n\nA loss function assigns a number to each pair of a true state of nature and an action.\nThe number measures the cost of taking that action in that state.\nIn statistics the state is an unknown parameter and the action is often an estimate.\nLoss functions are the starting point of [[statistical decision theory|CPFSBBHXT5]]: averaging the loss over the data gives the risk, by which procedures are compared.\n\n## Explanations\n\n### L1 human\n\nA loss function says how bad a guess is when the truth is known.\nGuessing $7$ when the truth is $5$ costs $(7 - 5)^2 = 4$ under squared error loss, and $\\abs{7 - 5} = 2$ under absolute error loss.\nDifferent losses express different priorities: squared error punishes large mistakes heavily, while a $0$-$1$ loss only cares whether the answer is right.\nThe choice of loss changes which estimator is best.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62C05"
    ],
    "name": "Loss function",
    "same_as": {
      "wikidata": "Q1036748",
      "wikipedia": "Loss function"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Loss_function"
      }
    ],
    "tag": "3BTG6VVCGZ"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/3BTG6VVCGZ/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/3BTG6VVCGZ.md",
  "msc": [
    "62C05"
  ],
  "name": "Loss function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3BT/3BTG6VVCGZ.md",
  "status": null,
  "tag": "3BTG6VVCGZ",
  "uri": "m2://3BTG6VVCGZ",
  "url": "https://tamnd.github.io/math2/wiki/loss-function/",
  "writing": {
    "tag": "3BTG6VVCGZ",
    "kind": "concept",
    "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
      }
    ]
  }
}
