{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $(\\Omega, \\mathcal{F}, P)$ be a [[probability space|0ZYBZ34RT2]] and let $A, B \\in \\mathcal{F}$ with $0 \u003c P(B) \u003c 1$. Let $B^c = \\Omega \\setminus B$ be the [[complement|0B1FSS1VZW]] of $B$.\n2. By the [[complement rule|0PQEBTYDZM]], $P(B^c) = 1 - P(B)$. Since $P(B) \u003c 1$, we get $P(B^c) \u003e 0$.\n3. The events $B_1 = B$ and $B_2 = B^c$ are disjoint, and $B_1 \\cup B_2 = \\Omega$. Both have positive probability, by the hypothesis and step 2.\n4. The [[law of total probability|0E5G5FMT2R]] for the family $B_1, B_2$ gives $P(A) = P(A \\mid B) \\, P(B) + P(A \\mid B^c) \\, P(B^c)$.\n5. Substituting step 2 gives $P(A) = P(A \\mid B) \\, P(B) + P(A \\mid B^c) \\, (1 - P(B))$.\n\n## Idea\n\nAn event and its complement form the simplest partition of the sample space. The condition $0 \u003c P(B) \u003c 1$ makes both pieces have positive probability, so both conditional probabilities are defined.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "60A05"
    ],
    "name": "Proof of the law of total probability for an event and its complement",
    "proves": "0W62TKMW7V",
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Law_of_total_probability"
      }
    ],
    "tag": "EQP959VRYR",
    "uses": [
      "0ZYBZ34RT2",
      "0E5G5FMT2R",
      "0PQEBTYDZM",
      "0B1FSS1VZW"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/EQP959VRYR/",
  "links": [
    {
      "field": "proves",
      "target": "0W62TKMW7V"
    },
    {
      "field": "uses",
      "target": "0ZYBZ34RT2"
    },
    {
      "field": "uses",
      "target": "0E5G5FMT2R"
    },
    {
      "field": "uses",
      "target": "0PQEBTYDZM"
    },
    {
      "field": "uses",
      "target": "0B1FSS1VZW"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/EQP959VRYR.md",
  "msc": [
    "60A05"
  ],
  "name": "Proof of the law of total probability for an event and its complement",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/EQP/EQP959VRYR.md",
  "status": null,
  "tag": "EQP959VRYR",
  "uri": "m2://EQP959VRYR",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-law-of-total-probability-for-an-event-and-its-complement/",
  "writing": {
    "tag": "EQP959VRYR",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
