girgit.org

Probability

The algebra of events: not, or, and, but not

The big ideaBecause events are sets, the set operations you already know build new events: the complement A′ is "not A", the union A ∪ B is "A or B", the intersection A ∩ B is "A and B", and the difference A − B is "A but not B".

In simple words

Once you have two baskets of results, you can make new baskets from them. Take everything that is not in the first one. Pour both together. Keep only what is in both. Keep what is in the first but not the second. Each new basket is a new thing that can happen, and everyday words like "or", "and", "not" and "but not" tell you which one you mean.

The four operations

Let A and B be events of a sample space S. This is the algebra of events: the same operations as in the chapter on Sets, read in the language of chance.

NameSymbolRead it asPlain meaningAs a set
Complementary eventA′"not A"A does not happen{ω : ω ∈ S and ω ∉ A} = S − A
UnionA ∪ B"A or B"at least one of them happens (either one, or both){ω : ω ∈ A or ω ∈ B}
IntersectionA ∩ B"A and B"both happen together{ω : ω ∈ A and ω ∈ B}
DifferenceA − B"A but not B"A happens and B does notA ∩ B′

In probability, "or" always means the inclusive or: "A or B" is still true when both happen. Every outcome of S is either in A or in A′, never both, so A′ has exactly the outcomes A is missing.

Worked example 1: one die

A die is rolled. Let A: "a number greater than 3" and B: "an even number". Then S = {1, 2, 3, 4, 5, 6}, A = {4, 5, 6} and B = {2, 4, 6}.

  1. "A or B" = A ∪ B = {2, 4, 5, 6}.
  2. "A and B" = A ∩ B = {4, 6}: even and greater than 3.
  3. "A but not B" = A − B = {5}: greater than 3 but odd.
  4. "B but not A" = B − A = {2}. Notice A − B ≠ B − A.
  5. "not A" = A′ = {1, 2, 3}.

Turning exam words into sets

Questions rarely say "union" or "intersection". They use phrases. Here is how to translate the common ones for two events A and B.

Phrase in the questionEvent
At least one of A, BA ∪ B
Both A and BA ∩ B
Neither A nor BA′ ∩ B′ = (A ∪ B)′
Not both (at most one of them)(A ∩ B)′ = A′ ∪ B′
Only A (A but not B)A − B = A ∩ B′
Exactly one of A, B(A − B) ∪ (B − A)

The two lines "neither" and "not both" are De Morgan's laws from the chapter on Sets: \( (\text{A} \cup \text{B})' = \text{A}' \cap \text{B}' \) and \( (\text{A} \cap \text{B})' = \text{A}' \cup \text{B}' \). In words: "not (A or B)" is "not A and not B"; "not (A and B)" is "not A or not B".

With the die example above, "neither A nor B" is {1, 3}, and "exactly one of A, B" is {2, 5}.

Try it: these are the same A and B. Shade each phrase, then move the faces around and shade again.

Worked example 2: two dice

Two dice are rolled. Let A: "the first die shows 1" and B: "the sum is 4". Then A = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6)} and B = {(1, 3), (2, 2), (3, 1)}.

A ∩ B = {(1, 3)}: first die 1 and sum 4. B − A = {(2, 2), (3, 1)}: sum 4 without a 1 on the first die. A ∪ B has \( 6 + 3 - 1 = 8 \) outcomes, because (1, 3) is in both and must be counted once.

Don't mix these up

  • "Neither A nor B" is \( (\text{A} \cup \text{B})' \), not \( (\text{A} \cap \text{B})' \). The second one is "not both".
  • A − B is A ∩ B′, not A ∩ B.
  • Only one die result can come up at a time, but several events can occur together; A ∩ B is the set of outcomes where that happens.

Try it. Three coins are tossed. Let A: "the first coin shows a head" and B: "exactly two heads". Write A ∩ B and A − B.

Answer
A = {HHH, HHT, HTH, HTT}, B = {HHT, HTH, THH}. A ∩ B = {HHT, HTH}. A − B = {HHH, HTT}.

Words to know

Complement A′
"Not A": every outcome that is not in A.
Union A ∪ B
"A or B": outcomes in A, in B, or in both.
Intersection A ∩ B
"A and B": outcomes in both.
Difference A − B
"A but not B": outcomes in A that are not in B.
De Morgan's laws
"Not (A or B)" = "not A and not B"; "not (A and B)" = "not A or not B".

A die is rolled. A = {1, 2, 3} and B = {3, 4}. What is "neither A nor B"?

  1. {1, 2, 4}
  2. {5, 6}
  3. {1, 2, 4, 5, 6}

Which set is the event "B but not A"?

  1. A ∩ B′
  2. B ∩ A′
  3. A′ ∩ B′

E is "Meera passes" and F is "Sunil passes". What does E′ ∪ F′ mean?

  1. Both fail
  2. At least one of them fails
  3. Exactly one of them passes