Probability in Set Notation

Saying exactly which outcomes you mean.

Twenty outcomes in four regions

An experiment has 20 outcomes, all equally likely. An event is a set of some of those outcomes, so two events A and B can be drawn as two circles in a Venn diagram, with the box around them standing for all 20.

Here 6 outcomes are in A only, 4 are in both A and B, 5 are in B only, and 5 are in neither. Check: 6 + 4 + 5 + 5 = 20, every outcome counted once.

The probability of an event is the number of outcomes in it divided by 20. A holds 6 + 4 = 10 outcomes, so P(A) = 10/20 = 1/2. B holds 4 + 5 = 9, so P(B) = 9/20.

UAB6455

The 20 outcomes: 6 in A only, 4 in both, 5 in B only and 5 in neither.

And: the intersection

A ∩ B, the intersection, is the set of outcomes in A and in B at the same time. On the diagram it is the overlap, which holds 4 outcomes.

So P(A ∩ B) = 4/20 = 1/5. The 6 outcomes in A only and the 5 in B only are left out, because each of them is in one event and not the other.

UAB6455

A ∩ B is the overlap: 4 of the 20 outcomes, so P(A ∩ B) = 4/20.

Or: the union

A ∪ B, the union, is the set of outcomes in A or in B or in both. In everyday English "tea or coffee" can mean one and not the other; in set notation "or" always includes both. On the diagram the union is all three regions inside the circles: 6 + 4 + 5 = 15 outcomes.

So P(A ∪ B) = 15/20 = 3/4.

Adding P(A) and P(B) gives 10/20 + 9/20 = 19/20, which is too much: the 4 outcomes in the overlap are in A and in B, so they were added twice. Subtract them once: P(A ∪ B) = P(A) + P(B) − P(A ∩ B) = 10/20 + 9/20 − 4/20 = 15/20, the same answer as the count.

UAB6455

A ∪ B is every region inside a circle: 6 + 4 + 5 = 15 of the 20 outcomes.

Not: the complement

A', the complement of A, is every outcome not in A: the 5 in B only and the 5 in neither, 10 in all. So P(A') = 10/20. An outcome is either in A or not in A, so P(A') = 1 − P(A) = 1 − 10/20 = 10/20.

(A ∪ B)' is every outcome outside both circles: the 5 in neither. So P((A ∪ B)') = 5/20 = 1/4, which is 1 − 15/20.

UAB6455

(A ∪ B)' is the part of the box outside both circles: 5 of the 20 outcomes.

A only

"In A but not in B" is A ∩ B': in A, and in the complement of B. On the diagram it is the part of circle A outside the overlap, which holds 6 outcomes, so P(A ∩ B') = 6/20 = 3/10.

It is also A with the overlap taken away: P(A) − P(A ∩ B) = 10/20 − 4/20 = 6/20.

UAB6455

A ∩ B' is circle A outside the overlap: 6 of the 20 outcomes.

From a list to a diagram

Pick one of the whole numbers 1 to 10 at random. Let A be the even numbers, {2, 4, 6, 8, 10}, and B the numbers up to 4, {1, 2, 3, 4}.

A ∩ B = {2, 4}, so P(A ∩ B) = 2/10 = 1/5. A ∪ B = {1, 2, 3, 4, 6, 8, 10}, seven numbers, so P(A ∪ B) = 7/10. A' = {1, 3, 5, 7, 9}, so P(A') = 5/10 = 1/2.

Check the union with the rule: P(A) + P(B) − P(A ∩ B) = 5/10 + 4/10 − 2/10 = 7/10. In the diagram, 6, 8 and 10 are in A only, 2 and 4 are in both, 1 and 3 are in B only, and 5, 7 and 9 are in neither: 3 + 2 + 2 + 3 = 10.

Uevenup to 43223

The numbers 1 to 10: 3 even numbers above 4, the 2 even numbers up to 4, 2 odd numbers up to 4, and 3 numbers in neither set. The union holds 3 + 2 + 2 = 7 of them.

The usual mistakes

Counting only the overlap for P(A ∪ B). The union takes the outcomes in one set only as well: 15/20, not 4/20.

Counting both circles for P(A ∩ B). The intersection wants only the outcomes in both sets at once: 4/20, not 15/20.

Adding P(A) and P(B) without taking off the overlap. 10/20 + 9/20 = 19/20 counts the 4 shared outcomes twice.

Adding the outcomes outside the circles to the total again. The 20 already includes the 5 in neither, so the denominator stays 20.

Two mailing lists

In the application below, a shop's customers are sorted by two lists, A and B. The customers who receive an email are A ∪ B, and those who receive none are (A ∪ B)'. Chosen at random from all 2500 customers, a customer receives the email with probability 1790/2500 and is on both lists with probability 310/2500.

Worked example: Two Mailing Lists Merged, So That No Customer Receives the Same Email Twice

Question A shop has 2500 customers on its records. 1240 of them are on the newsletter list A and 860 are on the events list B. 310 customers are on both lists. The shop sends one email to every customer on at least one list, and no customer receives it twice. (a) How many emails does the shop send? (b) Find n((A ∪ B)'), the number of customers who receive no email.

  1. 1.In set notation, n(ξ) = 2500, n(A) = 1240, n(B) = 860 and n(A ∩ B) = 310.

    A newsletterB events2500 customers310n(A) = 1240, n(B) = 860, n(A ∩ B) = 310
    A newsletterB events2500 customers310n(A) = 1240, n(B) = 860, n(A ∩ B) = 310
    The universal set is the 2500 customers, and the 310 on both lists go in the overlap.
  2. 2.Fill the Venn diagram from the overlap outwards. Newsletter only: n(A ∩ B') = 1240 − 310 = 930. Events only: n(A' ∩ B) = 860 − 310 = 550.

    A newsletterB events2500 customers310930550n(A ∩ B') = 1240 − 310 = 930n(A' ∩ B) = 860 − 310 = 550
    A newsletterB events2500 customers310930550n(A ∩ B') = 1240 − 310 = 930n(A' ∩ B) = 860 − 310 = 550
    Take the overlap off each list: 930 on the newsletter list only and 550 on the events list only.
  3. 3.(a) The shop sends one email to each customer in A ∪ B: n(A ∪ B) = 1240 + 860 − 310 = 1790 emails.

    A newsletterB events2500 customers310930550n(A ∪ B) = 1240 + 860 − 310 = 1790
    A newsletterB events2500 customers310930550n(A ∪ B) = 1240 + 860 − 310 = 1790
    (a) n(A ∪ B) = 1240 + 860 − 310 = 1790 emails, one for each customer on at least one list.
  4. 4.Check with the regions: 930 + 310 + 550 = 1790.

    A newsletterB events2500 customers310930550930 + 310 + 550 = 1790
    A newsletterB events2500 customers310930550930 + 310 + 550 = 1790
    The three regions inside the circles add up to the same 1790.
  5. 5.(b) The customers outside both circles are n((A ∪ B)') = 2500 − 1790 = 710.

    A newsletterB events2500 customers310930550neither 710n((A ∪ B)') = 2500 − 1790 = 710
    A newsletterB events2500 customers310930550neither 710n((A ∪ B)') = 2500 − 1790 = 710
    (b) n((A ∪ B)') = 2500 − 1790 = 710 customers receive no email.

Answer: (a) 1790 emails; (b) 710 customers

Common mistakes

  • Sending 1240 + 860 = 2100 emails. The 310 customers on both lists are counted in both totals, so that plan emails each of them twice.
  • Answering (b) with 2500 − 1240 − 860 = 400. Taking both lists away removes the 310 customers on both lists twice; the union, 1790, must be taken away once.

More sets and counting problems, worked step by step →

Practice Probability in Set Notation in the app