Sub topic 6
The Addition Rule for “Or”
Assume you can simplify fractions, count outcomes, and interpret basic set notation. In probability, “or” usually includes the possibility that both events occur.
Combining events with “or”
Let \(A\) and \(B\) be events. The event \(A \text{ or } B\) occurs when at least one of them occurs. This includes three possibilities:
- \(A\) occurs but \(B\) does not.
- \(B\) occurs but \(A\) does not.
- Both \(A\) and \(B\) occur.
The general addition rule is
\[ P(A \text{ or } B)=P(A)+P(B)-P(A \text{ and } B) \]
The subtraction prevents the overlap from being counted twice. The notation \(P(A \text{ and } B)\) is also written \(P(A \cap B)\).
Mutually exclusive events
Two events are mutually exclusive if they cannot happen at the same time. For mutually exclusive events,
\[ P(A \text{ and } B)=0 \]
so the rule becomes
\[ P(A \text{ or } B)=P(A)+P(B) \]
For example, on one roll of a six-sided die, rolling a 2 and rolling a 5 are mutually exclusive. The probability of rolling a 2 or a 5 is
\[ \frac{1}{6}+\frac{1}{6}=\frac{1}{3} \]
Do not assume events are mutually exclusive just because they have different descriptions. Check whether one outcome can satisfy both descriptions.
An overlapping example
Roll one fair six-sided die. Let:
- \(A\): the result is even, so \(A=\{2,4,6\}\)
- \(B\): the result is greater than 4, so \(B=\{5,6\}\)
The overlap is \(\{6\}\). Therefore,
\[ P(A)=\frac{3}{6},\qquad P(B)=\frac{2}{6},\qquad P(A \text{ and } B)=\frac{1}{6} \]
Thus,
\[ P(A \text{ or } B) =\frac{3}{6}+\frac{2}{6}-\frac{1}{6} =\frac{4}{6} =\frac{2}{3} \]
The favorable outcomes are \(2,4,5,6\), which confirms the result.
| Situation | Formula |
|---|---|
| Events overlap | \(P(A\text{ or }B)=P(A)+P(B)-P(A\text{ and }B)\) |
| Events are mutually exclusive | \(P(A\text{ or }B)=P(A)+P(B)\) |
GRE traps
The word “or” generally means inclusive or. If a question says “a student studies biology or chemistry,” a student who studies both may count unless the question explicitly excludes that case.
A common error is adding probabilities without subtracting the overlap. Another is subtracting an overlap when the events are already mutually exclusive. First identify whether both events can occur in the same outcome.
from fractions import Fraction
from itertools import product
space = list(product(range(1, 7), repeat=2))
def prob(event):
return Fraction(sum(1 for outcome in space if event(outcome)), len(space))
A = lambda outcome: outcome[0] == 6
B = lambda outcome: outcome[1] == 6
left = prob(lambda outcome: A(outcome) or B(outcome))
right = prob(A) + prob(B) - prob(lambda outcome: A(outcome) and B(outcome))
print(left) # 11/36
print(right) # 11/36Exercise
A number is selected at random from 1 through 10. What is the probability that it is even or greater than 7?
Show answer
Let A be even: P(A)=5/10. Let B be greater than 7: P(B)=3/10. The overlap is {8, 10}, so P(A and B)=2/10. Therefore, P(A or B)=5/10+3/10-2/10=6/10=3/5.