{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "RZHB962EMF"
    },
    {
      "field": "uses",
      "target": "T060JHSH05"
    },
    {
      "field": "uses",
      "target": "YB9390ZE4W"
    }
  ],
  "body": "\n## Summary\n\nA contingency table counts how many observations fall into each combination of categories of two or more categorical variables.\nIt is the basic form of data for studying the association between categorical variables.\nThe chi-squared test and [[Fisher's exact test|J6JP5CJNPX]] test independence of the variables from such a table.\nLarger tables are analysed with log-linear models.\n\n## Explanations\n\n### L1 human\n\nAsk $100$ people whether they smoke and whether they exercise.\nWrite the answers in a table with two rows, smoker and non-smoker, and two columns, exercises and does not.\nEach cell holds the number of people with that pair of answers, and the four numbers add up to $100$.\nComparing the rows shows whether smoking and exercise seem related.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62H17"
    ],
    "name": "Contingency table",
    "same_as": {
      "wikidata": "Q1541178",
      "wikipedia": "Contingency table"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Contingency_table"
      }
    ],
    "tag": "PANSMHE0SW"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/PANSMHE0SW/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/PANSMHE0SW.md",
  "msc": [
    "62H17"
  ],
  "name": "Contingency table",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/PAN/PANSMHE0SW.md",
  "status": null,
  "tag": "PANSMHE0SW",
  "uri": "m2://PANSMHE0SW",
  "url": "https://tamnd.github.io/math2/wiki/contingency-table/",
  "writing": {
    "tag": "PANSMHE0SW",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
