{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "SZ7QZBDPYJ"
    }
  ],
  "body": "\n## Summary\n\nCross-validation estimates how well a fitted model predicts new data by repeatedly fitting it on part of the data and testing it on the rest.\nEach observation is used for testing exactly once, with a model that did not see it.\nIt is the standard tool to choose tuning parameters, such as a bandwidth or a penalty, and to compare predictive models.\n\n## Explanations\n\n### L1 human\n\nChecking a model on the same data that built it is too optimistic, like grading students on questions they saw in advance.\nCross-validation hides a part of the data, fits the model on the rest, and checks the predictions on the hidden part.\nIn $5$-fold cross-validation, the data are cut into $5$ pieces and each piece is hidden once.\nThe average error over the $5$ rounds estimates the error on new data.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62G09",
      "62J05"
    ],
    "name": "Cross-validation",
    "same_as": {
      "wikidata": "Q541014",
      "wikipedia": "Cross-validation (statistics)"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Cross-validation_(statistics)"
      }
    ],
    "tag": "HA1KJ3B9DX"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/HA1KJ3B9DX/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/HA1KJ3B9DX.md",
  "msc": [
    "62G09",
    "62J05"
  ],
  "name": "Cross-validation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/HA1/HA1KJ3B9DX.md",
  "status": null,
  "tag": "HA1KJ3B9DX",
  "uri": "m2://HA1KJ3B9DX",
  "url": "https://tamnd.github.io/math2/wiki/cross-validation/",
  "writing": {
    "tag": "HA1KJ3B9DX",
    "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
      }
    ]
  }
}
