Lesson 25 of 42 · Counting, probability and statistics

Union, intersection and complement of events

Use the addition rule, complements and independence to find "or", "and", "neither" and "at least one" probabilities, with a frequency table as a check.

About 22 minutes

In this lesson

  • Apply the addition rule for "A or B" and know when the overlap term vanishes.
  • Move between "both", "neither", "exactly one" and "at least one" with complements.
  • Tell mutually exclusive events from independent events and use the product rule for independent ones.

The idea

Events are sets

An event is a set of outcomes, so the language of sets carries over directly.

Words Set notation Meaning
AA or BB (or both) A∪BA \cup B at least one of them happens
AA and BB A∩BA \cap B both happen
not AA A‾\overline{A} AA does not happen
AA and BB cannot both happen A∩B=∅A \cap B = \varnothing mutually exclusive (disjoint)

In probability, "or" is inclusive unless the question says "exactly one" or "either … but not both".

The addition rule

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)

Adding P(A)P(A) and P(B)P(B) counts the overlap twice, once inside each, so it is subtracted once. Draw a Venn diagram with the overlap in the middle and the reason is visible. Only when AA and BB are mutually exclusive is the overlap empty, and then P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B).

For three events the same idea gives

P(A∪B∪C)=P(A)+P(B)+P(C)−P(A∩B)−P(A∩C)−P(B∩C)+P(A∩B∩C).P(A \cup B \cup C) = P(A) + P(B) + P(C) - P(A \cap B) - P(A \cap C) - P(B \cap C) + P(A \cap B \cap C).

Complements and De Morgan

P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A). The two rules that link complements with "and" and "or" are De Morgan's laws:

A∪B‾=A‾∩B‾,A∩B‾=A‾∪B‾.\overline{A \cup B} = \overline{A} \cap \overline{B}, \qquad \overline{A \cap B} = \overline{A} \cup \overline{B}.

In words: "not (AA or BB)" is "neither"; "not (AA and BB)" is "not both", which still allows one of them. So

P(neither)=1−P(A∪B),P(not both)=1−P(A∩B).P(\text{neither}) = 1 - P(A \cup B), \qquad P(\text{not both}) = 1 - P(A \cap B).

These two are easy to swap under time pressure, and a multiple-choice question may well offer both.

The four regions

Two events split the sample space into four regions: only AA, only BB, both, neither. Most questions give you three numbers and ask for a fourth, and the safest way to work is to fill in the four regions:

  • both =P(A∩B)= P(A \cap B)
  • only A=P(A)−P(A∩B)A = P(A) - P(A \cap B), only B=P(B)−P(A∩B)B = P(B) - P(A \cap B)
  • neither =1−P(A∪B)= 1 - P(A \cup B)
  • exactly one == only AA ++ only BB =P(A∪B)−P(A∩B)= P(A \cup B) - P(A \cap B)

The four regions must add up to 1. Using a group of 100 people (or 1000) instead of decimals turns the regions into whole numbers, which is quicker without a calculator and makes mistakes visible.

Independent events

AA and BB are independent when knowing that one happened does not change the probability of the other. Then

P(A∩B)=P(A)×P(B).P(A \cap B) = P(A) \times P(B).

Separate coin tosses, separate dice and draws with replacement are independent. Draws without replacement are not.

Independence is not the same as mutual exclusivity; for events with positive probability the two ideas are opposites. If AA and BB are mutually exclusive, knowing that AA happened tells you BB did not happen, which is as far from independence as it gets. Read the question for which one it states.

At least one, for independent events

The complement of "at least one happens" is "none happens", and for independent events "none" is a product:

P(at least one)=1−P(A‾) P(B‾)⋯P(\text{at least one}) = 1 - P(\overline{A})\,P(\overline{B})\cdots

For two events this agrees with the addition rule. If P(A)=0.3P(A) = 0.3 and P(B)=0.5P(B) = 0.5 independently, then 1−0.7×0.5=0.651 - 0.7 \times 0.5 = 0.65, and 0.3+0.5−0.15=0.650.3 + 0.5 - 0.15 = 0.65 too.

Divisibility questions

"A whole number from 1 to NN is chosen at random; what is the probability that it is divisible by 3 or 4?" is a union question. Count multiples of each, then subtract the multiples of both, which are the multiples of the least common multiple, here 12. A second check: the pattern repeats every 12 numbers, so count within one block of 12 and scale up.

Worked examples

Example 1: Divisible by 3 or by 4

A whole number from 1 to 60 is chosen at random. What is the probability that it is divisible by 3 or by 4?

  1. Multiples of 3 up to 60: 603=20\frac{60}{3} = 20. Multiples of 4: 604=15\frac{60}{4} = 15. Multiples of both are multiples of 12: 6012=5\frac{60}{12} = 5.

  2. Addition rule in counts: 20+15−5=3020 + 15 - 5 = 30, so P=3060=12P = \frac{30}{60} = \frac{1}{2}.

  3. Check with one block of 12: the numbers divisible by 3 or 4 are 3, 4, 6, 8, 9, 12, six of them. There are 5 blocks in 60, so 6×5=306 \times 5 = 30.

Answer

12\frac{1}{2}. Forgetting to subtract the overlap gives 3560=712\frac{35}{60} = \frac{7}{12}, because 12, 24, 36, 48 and 60 are counted twice.

Example 2: Filling the four regions

In a town, 60% of adults read a daily newspaper, 50% listen to a news podcast, and 20% do neither. What percentage do both? What percentage do exactly one?

  1. At least one: P(N∪Q)=1−0.20=0.80P(N \cup Q) = 1 - 0.20 = 0.80.

  2. Addition rule rearranged: P(N∩Q)=P(N)+P(Q)−P(N∪Q)=0.60+0.50−0.80=0.30P(N \cap Q) = P(N) + P(Q) - P(N \cup Q) = 0.60 + 0.50 - 0.80 = 0.30.

  3. Exactly one: P(N∪Q)−P(N∩Q)=0.80−0.30=0.50P(N \cup Q) - P(N \cap Q) = 0.80 - 0.30 = 0.50.

  4. Check with 100 adults: both 30, newspaper only 60−30=3060 - 30 = 30, podcast only 50−30=2050 - 30 = 20, neither 20. Total 30+30+20+20=10030 + 30 + 20 + 20 = 100.

Answer

30% do both and 50% do exactly one. Taking "both" as 60%×50%=30%60\% \times 50\% = 30\% happens to match here, but it assumes independence, which the data do not state; the addition rule is the method that always works.

Example 3: At least one failure

Two machines work independently. On a given day the first breaks down with probability 0.1 and the second with probability 0.2. Find the probability that at least one breaks down, and that exactly one breaks down.

  1. None breaks down: by independence, 0.9×0.8=0.720.9 \times 0.8 = 0.72. At least one: 1−0.72=0.281 - 0.72 = 0.28.

  2. Check with the addition rule: P(both)=0.1×0.2=0.02P(\text{both}) = 0.1 \times 0.2 = 0.02, so 0.1+0.2−0.02=0.280.1 + 0.2 - 0.02 = 0.28.

  3. Exactly one: first only 0.1×0.8=0.080.1 \times 0.8 = 0.08, second only 0.9×0.2=0.180.9 \times 0.2 = 0.18, total 0.260.26.

  4. Check: the four regions are both 0.02, first only 0.08, second only 0.18, neither 0.72; they add up to 1.

Answer

At least one: 0.28; exactly one: 0.26. Simply adding 0.1+0.2=0.300.1 + 0.2 = 0.30 counts the day when both break down twice.

Common traps

  • Adding without subtracting the overlap

    P(A)+P(B)P(A) + P(B) is P(A∪B)P(A \cup B) only for mutually exclusive events. If a sum of probabilities exceeds 1, the overlap was certainly ignored; if it does not, it may still have been. Ask whether both can happen at once.

  • Neither versus not both

    "Not both" is 1−P(A∩B)1 - P(A \cap B) and includes the cases where one happens. "Neither" is 1−P(A∪B)1 - P(A \cup B). The options may list both numbers; write the four regions and point to the one asked for.

  • Confusing mutually exclusive with independent

    Mutually exclusive means P(A∩B)=0P(A \cap B) = 0; independent means P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B). With P(A)=0.3P(A) = 0.3 and P(B)=0.4P(B) = 0.4, the union is 0.70.7 in the first case and 0.580.58 in the second. Never multiply probabilities unless independence is given or obvious.

  • Adding probabilities for "at least one"

    For two independent attempts at 0.7 each, 0.7+0.7=1.40.7 + 0.7 = 1.4 is not even a probability. Use 1−0.3×0.3=0.911 - 0.3 \times 0.3 = 0.91.

Check yourself

Answer each question before you open its answer.

Question 1: Neither event

Union and intersection of events

For two events, P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A∩B)=0.15P(A \cap B) = 0.15. What is the probability that neither AA nor BB happens?

  1. A.0.10
  2. B.0.25
  3. C.0.75
  4. D.0.85
Show the answer

Answer: B. 0.25

Working

P(A∪B)=0.5+0.4−0.15=0.75P(A \cup B) = 0.5 + 0.4 - 0.15 = 0.75, so P(neither)=1−0.75=0.25P(\text{neither}) = 1 - 0.75 = 0.25. Check with 100 outcomes: both 15, only AA 35, only BB 25, neither 100−75=25100 - 75 = 25.

Why the other options are wrong

  • A. Uses 1−(0.5+0.4)1 - (0.5 + 0.4), forgetting to subtract the overlap, so the union is overstated as 0.9.
  • C. This is P(A∪B)P(A \cup B), the probability that at least one happens; the question asks for the complement.
  • D. This is 1−P(A∩B)1 - P(A \cap B), the probability of "not both", which still includes the cases where exactly one event happens.

What carries over

Neither is the complement of the union, and the union needs the overlap subtracted.

Question 2: Divisible by 4 or by 6

Union and intersection of events

A whole number from 1 to 120 is chosen at random. What is the probability that it is divisible by 4 or by 6?

  1. A.112\frac{1}{12}
  2. B.13\frac{1}{3}
  3. C.512\frac{5}{12}
  4. D.23\frac{2}{3}
Show the answer

Answer: B. 13\frac{1}{3}

Working

Multiples of 4: 30. Multiples of 6: 20. Multiples of both, that is of 12 (not of 24): 10. Union: 30+20−10=4030 + 20 - 10 = 40, so P=40120=13P = \frac{40}{120} = \frac{1}{3}. Check on one block of 12: 4, 6, 8, 12 are the four numbers that qualify, and 412=13\frac{4}{12} = \frac{1}{3}.

Why the other options are wrong

  • A. This is the probability of being divisible by both, that is by 12: the intersection, not the union.
  • C. Adds the 30 multiples of 4 and the 20 multiples of 6 without removing the 10 multiples of 12, which were counted twice.
  • D. This is the probability of being divisible by neither 4 nor 6, the complement of the event asked for.

What carries over

For "divisible by a or b", subtract the multiples of the least common multiple.

Question 3: Two attempts

Union and intersection of events

A basketball player scores a free throw with probability 0.7, and different throws are independent. She takes two throws. What is the probability that she scores at least once?

  1. A.0.42
  2. B.0.49
  3. C.0.51
  4. D.0.91
Show the answer

Answer: D. 0.91

Working

Missing both: 0.3×0.3=0.090.3 \times 0.3 = 0.09. At least once: 1−0.09=0.911 - 0.09 = 0.91. Check: exactly once 0.420.42 plus twice 0.490.49 gives 0.910.91.

Why the other options are wrong

  • A. This is the probability of scoring exactly once, 2×0.7×0.32 \times 0.7 \times 0.3; scoring twice also counts as "at least once".
  • B. This is the probability of scoring both times, 0.7×0.70.7 \times 0.7.
  • C. This is 1−0.491 - 0.49, the probability of not scoring both times, which includes missing both.

What carries over

At least one is one minus none, and for independent trials "none" is a product.

Key points

  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B); drop the last term only for mutually exclusive events.

  • Neither is 1−P(A∪B)1 - P(A \cup B); not both is 1−P(A∩B)1 - P(A \cap B).

  • Multiply probabilities only for independent events; mutually exclusive events with positive probability are never independent.

  • Fill the four regions with counts out of 100 and check that they add up.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Practica este tema

Preguntas nuevas sobre esta habilidad, con explicaciones resueltas. La práctica requiere un Single Exam Pass o Plus.