Category: Probability Level: 301
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
To find the chance of A or B, add their chances and subtract the overlap once, because the overlap got counted in both.
Each dot is one card, and each card is equally likely. There are 52 dots.
52 equally likely cards
Event A is drawing a heart. It holds 13 cards.
P(A) = 13/52
Event B is drawing a jack, queen, or king. It holds 12 cards, and 3 of them are hearts too.
P(B) = 12/52
Adding 13 and 12 gives 25, but the 3 heart face cards sit in both circles and got counted twice.
13 + 12 = 25 ≠ 22
Take the 3 extra counts back out. The union, A or B, holds 22 cards.
P(A ∪ B) = 13/52 + 12/52 - 3/52 = 22/52 = 11/26
cd svg-generator python3 -m svgmath render addition-rule-venn --out /tmp/addition-rule-venn
Source: svgmath/diagrams/probability.py