{
  "aliases": [
    "bayes-rule",
    "bayes-law",
    "bayes-formula"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "00NBBSXRQS"
    },
    {
      "field": "uses",
      "target": "0E44JMG6NV"
    },
    {
      "field": "uses",
      "target": "0JWRJX2RMP"
    },
    {
      "field": "uses",
      "target": "0KJ7ZS8AJA"
    },
    {
      "field": "uses",
      "target": "0PBWWQD9KY"
    }
  ],
  "body": "\n## Statement\n\nLet $(\\Omega, \\mathcal{F}, P)$ be a probability space and let $A, B \\in \\mathcal{F}$ with $P(A) \u003e 0$ and $P(B) \u003e 0$.\nThen\n$$P(A \\mid B) = \\frac{P(B \\mid A) \\, P(A)}{P(B)}.$$\n\n## Remarks\n\nLet $A_1, A_2, \\dots$ be a finite or countable partition of $\\Omega$ into events of positive probability. With the [[law of total probability|0E5G5FMT2R]], $P(A_j \\mid B) = \\dfrac{P(B \\mid A_j) \\, P(A_j)}{\\sum_i P(B \\mid A_i) \\, P(A_i)}$.\nIn Bayesian language, $P(A)$ is the [[prior probability|00NBBSXRQS]], $P(B \\mid A)$ is the likelihood and $P(A \\mid B)$ is the [[posterior probability|0KJ7ZS8AJA]].\nThe proof: both $P(A \\mid B) \\, P(B)$ and $P(B \\mid A) \\, P(A)$ are equal to $P(A \\cap B)$.\n\n## History\n\nThe theorem is named after Thomas Bayes. Pierre-Simon Laplace found it independently and developed it further.\n\n## Explanations\n\n### L1 human\n\nBayes' theorem turns \"the chance of the evidence given the cause\" into \"the chance of the cause given the evidence\".\nA medical test tells you how often sick people test positive. Bayes' theorem tells you how likely a person with a positive test is to be sick.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "bayes-rule",
      "bayes-law",
      "bayes-formula"
    ],
    "kind": "statement",
    "msc": [
      "62F15"
    ],
    "name": "Bayes' theorem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q182505",
      "wikipedia": "Bayes' theorem"
    },
    "sources": [
      {
        "locator": "Statement of theorem",
        "url": "https://en.wikipedia.org/wiki/Bayes'_theorem"
      }
    ],
    "tag": "0NM6E9VW04",
    "uses": [
      "0FJB06AD2P",
      "0E5G5FMT2R"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0NM6E9VW04/",
  "links": [
    {
      "field": "uses",
      "target": "0FJB06AD2P"
    },
    {
      "field": "uses",
      "target": "0E5G5FMT2R"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0NM6E9VW04.md",
  "msc": [
    "62F15"
  ],
  "name": "Bayes' theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0NM/0NM6E9VW04.md",
  "status": null,
  "tag": "0NM6E9VW04",
  "uri": "m2://0NM6E9VW04",
  "url": "https://math2.tamnd.com/wiki/bayes-theorem/",
  "writing": {
    "tag": "0NM6E9VW04",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
