{
  "aliases": [
    "inclusion-exclusion-for-two-events"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $(\\Omega, \\mathcal{F}, P)$ be a [[probability space|0ZYBZ34RT2]] and let $A, B \\in \\mathcal{F}$ be [[events|00SQGJNRTB]].\nThen\n$$P(A \\cup B) + P(A \\cap B) = P(A) + P(B).$$\nEquivalently, $P(A \\cup B) = P(A) + P(B) - P(A \\cap B)$.\n\n## Remarks\n\nIf $A$ and $B$ are mutually exclusive, then $P(A \\cap B) = 0$ and $P(A \\cup B) = P(A) + P(B)$.\nThe rule is the probabilistic form of [[inclusion–exclusion for two sets|0C4YEQ9H5E]]. The [[inclusion–exclusion principle|0FF7726C7P]] gives the version for $n$ events.\nA consequence is $P(A \\cup B) \\le P(A) + P(B)$, the case $n = 2$ of [[Boole's inequality|0EGSEE9J9R]].\n\n## Explanations\n\n### L1 human\n\nWhen you add $P(A)$ and $P(B)$, you count the outcomes in both events twice, so you subtract $P(A \\cap B)$ once.\nFor one card from a deck, $P(\\text{heart or king}) = 13/52 + 4/52 - 1/52 = 16/52$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "inclusion-exclusion-for-two-events"
    ],
    "kind": "statement",
    "msc": [
      "60A05"
    ],
    "name": "Addition rule for two events",
    "role": "proposition",
    "sources": [
      {
        "locator": "Elementary consequences",
        "url": "https://en.wikipedia.org/wiki/Probability_axioms"
      }
    ],
    "tag": "0BZQ6ZX584",
    "uses": [
      "0ZYBZ34RT2",
      "00SQGJNRTB",
      "0C4YEQ9H5E"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0BZQ6ZX584/",
  "links": [
    {
      "field": "uses",
      "target": "0ZYBZ34RT2"
    },
    {
      "field": "uses",
      "target": "00SQGJNRTB"
    },
    {
      "field": "uses",
      "target": "0C4YEQ9H5E"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0BZQ6ZX584.md",
  "msc": [
    "60A05"
  ],
  "name": "Addition rule for two events",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0BZ/0BZQ6ZX584.md",
  "status": null,
  "tag": "0BZQ6ZX584",
  "uri": "m2://0BZQ6ZX584",
  "url": "https://math2.tamnd.com/wiki/addition-rule-for-two-events/",
  "writing": {
    "tag": "0BZQ6ZX584",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
