# 5.1. Set Theory and Venn Diagrams

# Set Theory

In this section, we will familiarize ourselves with set operations and notations, so that we can apply these concepts to both counting and probability problems. We begin by defining some terms.

A **set** is a collection of objects, and its members are called the **elements** of the set. We name the set by using capital letters, and enclose its members in curly brackets. Suppose we need to list the members of the chess club. We use the following set notation.

*C* ={Ken, Bob, Tran, Shanti, Eric}

A set that has no members is called an **empty set**. The empty set is denoted by the symbol Ø.

Two sets are **equal** if they have the same elements.

A set *A* is a **subset** of a set *B* if every member of *A* is also a member of *B*.

Suppose *C* = {Al, Bob, Chris, David, Ed} and *A* = {Bob, David}. Then *A* is a subset of *C*, written as .

Every set is a subset of itself, and the empty set is a subset of every set.

**Union Of Two Sets **

Let *A* and *B* be two sets, then the union of *A* and *B*, written as , is the set of all elements that are either in *A* or in *B*, or in both *A* and *B*.

**Intersection Of Two Sets **

Let *A* and *B* be two sets, then the intersection of *A* and *B*, written as , is the set of all elements that are common to both sets *A* and *B*.

A **universal set** *U* is the set consisting of all elements under consideration.

**Complement of a Set **

Let *A* be any set, then the complement of set *A*, written as , is the set consisting of elements in the universal set *U* that are not in *A*.

**Disjoint Sets **

Two sets *A* and *B* are called disjoint sets if their intersection is an empty set.

Example 5.1.1

**Solution**

Example 5.1.2

*F*= {Aikman, Jackson, Rice, Sanders, Young}, and

*B*= {Griffey, Jackson, Sanders, Thomas}. Find the intersection of the sets

*F*and

*B*.

**Solution**

Example 5.1.3

*F*and

*B*given as follows.

*F*= {Aikman, Jackson, Rice, Sanders, Young}

*B*= {Griffey, Jackson, Sanders, Thomas}

**Solution**

*A*or in

*B*or in both

*A*and

*B*. Therefore

Example 5.1.4

*U*= {red, orange, yellow, green, blue, indigo, violet}, and

*P*= {red, yellow, blue}. Find the complement of

*P*.

**Solution**

*P*is the set consisting of elements in the universal set

*U*that are not in

*P*. Therefore:

To achieve a better understanding, let us suppose that the universal set *U* represents the colors of the spectrum, and *P* the primary colors, then represents those colors of the spectrum that are not primary colors.

Example 5.1.5

*U*= {red, orange, yellow, green, blue, indigo, violet},

*P*= {red, yellow, blue},

*Q*= {red, green}, and

*R*={orange, green, indigo}.

**Solution**

# Venn Diagrams

We now use Venn diagrams to illustrate the relationships between sets. In the late 1800’s, an English logician named John Venn developed a method to represent relationship between sets. He represented these relationships using diagrams, which are now known as Venn diagrams. A Venn diagram represents a set as the interior of a circle. Often two or more circles are enclosed in a rectangle where the rectangle represents the universal set. To visualize an intersection or union of a set is easy. In this section, we will mainly use Venn diagrams to sort various populations and count objects.

Example 5.1.6

**Solution**

*A*represent those car enthusiasts who drove cars with automatic transmissions, and set

*S*represent the car enthusiasts who drove the cars with standard transmissions. Now we use Venn diagrams to sort out the information given in this problem.

(a) |
(b) |
(c) |

Because 30 people drove cars with automatic transmissions, the circle *A* must contain 30 elements. This means *x* + 12 = 30, or *x* = 18. Similarly, since 20 people drove cars with standard transmissions, the circle *B* must contain 20 elements, or *y* +12 = 20 which in turn makes *y* = 8.

Now that all the information is sorted out, it is easy to read from the diagram that 18 people drove cars with automatic transmissions only, 12 people drove both types of cars, and 8 drove cars with standard transmissions only. Therefore, 18 + 12 + 8 = 38 people took part in the survey.

Example 5.1.7

**Solution**

*D*represent the people who have visited Disneyland, and

*K*the set of people who have visited Knott’s Berry Farm.

(a) |
(b) |

We fill the three regions associated with the sets *D* and *K* in the same manner as before. Since 100 people participated in the survey, the rectangle representing the universal set *U* must contain 100 objects. Let *x* represent those people in the universal set that are neither in the set *D* nor in *K*. This means 54 + 6 + 9 + *x* = 100, or *x* = 31.

Therefore, there are 31 people in the survey who have visited neither place.

Example 5.1.8

- 50 jog, 30 swim, and 35 cycle
- 14 jog and swim
- 7 swim and cycle
- 9 jog and cycle
- 3 people take part in all three activities

**a.**How many jog but do not swim or cycle?

**b.**How many take part in only one of the activities?

**c.**How many do not take part in any of these activities?

**Solution **

*J*represent the set of people who jog,

*S*the set of people who swim, and

*C*who cycle. In using Venn diagrams, our ultimate aim is to assign a number to each region. We always begin by first assigning the number to the innermost region and then working our way out.

(a) |
(b) |
(c) |

We place a 3 in the innermost region of Figure (a) because it represents the number of people who participate in all three activities. Next we compute *x*, *y* and *z*.

- Since 14 people jog and swim,
*x*+3 = 14, or*x*= 11. - The fact that 9 people jog and cycle results in
*y*+ 3 = 9, or*y*= 6. - Since 7 people swim and cycle,
*z*+ 3 = 7, or*z*= 4. - This information is depicted in Figure (b).

*m*,

*n*and

*p*:

- Since 50 people jog, m + 11 + 6 + 3 = 50, or m = 30.
- 30 people swim, therefore, n + 11 + 4 + 3 = 30, or n = 12.
- 35 people cycle, therefore,
*p*+ 6 + 4 + 3 = 35, or*p*= 22. - By adding all the entries in all three sets, we get a sum of 88. Since 100 people were surveyed, the number inside the universal set but outside of all three sets is 100 – 88, or 12.
- In Figure (c), the information is sorted out, and the questions can readily be answered.

**a.**The number of people who jog but do not swim or cycle is 30.

**b.**The number who take part in only one of these activities is 30 + 12 + 22 = 64.

**c.**The number of people who do not take part in any of these activities is 12.

# Practice questions

**1.** Let the Universal set *U* = {a, b, c, d, e, f, g, h, i, j},*V* = {a, e, i, f, h}, and *W* = {a, c, e, g, i}. List the members of the following sets:

**a.**

**b.**

**2. **Consider the following sets: *A* = {SARS, H1N1, H5N1, MERS-CoV, COVID-19, Influenza, Norovirus}, *B* = {Listeria, Campylobacter, Salmonella, E. coli O157, Norovirus, Shigella}, and *C* = {SARS, Listeria, Tuberculosis, H5N1, Salmonella, HIV, COVID-19}. List the members of the following sets:

**a.**

**b.**

**3.** A survey of athletes revealed that for their minor aches and pains, 30 used aspirin, 50 used ibuprofen, and 15 used both. All surveyed athletes used at least one of the two painkillers. How many athletes were surveyed?

**4. **A study of 150 high school students found that 25 reported having a previous concussion or head injury, 52 reported experiencing mental illness, and 15 reported both outcomes. How many students did not report either outcome?

**5.** A survey of 100 students at Ryerson University finds that 50 subscribe to Netflix, 40 subscribe to Amazon Prime, and 30 subscribe to Disney+. Of these, 15 subscribe to both Netflix and Amazon Prime, 10 to both Amazon Prime and Disney+, 10 to both Netflix and Disney+, and 5 have all three subscription services. Draw a Venn diagram and determine the following:

**a.** The number of students subscribing to Amazon Prime but not the other two streaming services.

**b.** The number of students subscribing to Netflix or Amazon Prime but not Disney+.

**c.** The number of students not subscribing to any of these services.