1.3: Applications of Sets

A Venn diagram is a useful tool in showing the relationship between the actual elements of sets.

Example 1

Two set Venn diagram representing sets A and B with the four regions of the Venn diagram numbered. I: elements in set A but not set B. II: elements in both sets A and B, III: elements in set B but not set A, IV: elements in neither set A nor set B.

Consider the universal set \(U=\\). Place the elements in sets \(A=\\) and \(B=\\) in the Venn diagram.

Solution

Answer showing element 8 in region I, elements 3 and 6 in region II, elements 1 and 2 in region III, and elements 4 and 5 in region IV.

All elements in the universal set \(U\) must appear in one of the 4 regions labeled I, II, III, and IV. We must decide where each element 1, 2, 3, 4, 5, 6, and 8 go.

The completed Venn diagram is shown at the right.

Example 2

Construct a Venn diagram illustrating the following sets:

SolutionComplete VD.png

All elements in the universal set \(U\) must appear in one of 8 regions of a three-set Venn diagram.

The completed Venn diagram is shown at the right.

Sometimes we may be interested in the cardinality of the union or intersection of sets, but not know the actual elements of each set. This is common in application problems involving surveys.

Example 3

A survey asks 200 people What beverage do you drink in the morning?, and offers these choices:

Suppose 20 report tea only, 80 report coffee only, 40 report both. How many people drink tea in the morning? How many people drink neither tea or coffee?

SolutionTwo set Venn diagram showing 40 had only coffee, 20 had only tea, and 40 had both coffee and tea.

This question can most easily be answered by creating a Venn diagram. We can see that we can find the number of people who drink tea by adding those who drink only tea to those who drink both: 60 people.

We can also see that those who drink neither are those not contained in the any of the three other groupings, so we can count those by subtracting from the cardinality of the universal set, 200:

So we have \(200-20-80-40=60\) people drink neither.

Try it Now 1

At a school of 500 students, there are 125 students in the drama club, 257 students who play sports, and 52 students who are in the drama club and play sports. Use a Venn diagram to illustrate this information. Then, determine how many students

  1. play sports but are not in the drama club
  2. play sports or are in the drama club or both

Two set Venn diagram showing 72 were members of the drama club only, 205 played sports only, 52 were part of the drama club and played sports, and 170 did neither of these things.

Example 4

A survey asks Which online services have you used in the last month?

The results show 40% of those surveyed have used Twitter, 70% have used Facebook, and 20% have used both. How many people have used neither Twitter or Facebook?

Solution

Let \(T\) be the set of all people who have used Twitter and \(F\) be the set of all people who have used Facebook. Notice that while the cardinality of \(F\) is \(70 \%\) and the cardinality of \(T\) is \(40 \%\), the cardinality of \(F \cup T\) is not simply \(70 \%+40 \%\), since that would count those who use both services twice. To find the cardinality of \(F \cup T\), we add the cardinality of \(F\) and the cardinality of \(T\), and then subtract those in intersection that we've counted twice.

\(n(F \cup T)=n(F)+n(T)-n(F \cap T)\)

Now, to find how many people have not used either service, we're looking for the cardinality of \((F \cup T)^<\prime>\). Since the universal set contains \(100 \%\) of people and the cardinality of \(F \cup T=90 \%\), the cardinality of \((F \cup T)^<\prime>\) must be the other \(10 \%\).

The previous example illustrates two important properties.

Cardinality properties

\(n(A \cup B)=n(A)+n(B)-n(A \cap B)\)

Notice that the first property can also be written in an equivalent form by solving for the cardinality of the intersection:

\(n(A \cap B)=n(A)+n(B)-n(A \cup B)\)

Try it Now 2

In a group of 120 students, 35 were enrolled in art class and 57 were enrolled in dance class. There were 12 students who were enrolled in both classes. How many students were enrolled in neither of the classes?

Answer

Example 5

Fifty students were surveyed and asked if they were taking a social science (SS), humanities (HM) or a natural science (NS) course the next quarter.

How many students are taking only a SS course?

Solution

<a href=Three set Venn diagram showing each of the 8 regions labeled a through h." width="213px" height="191px" />

It might help to look at a Venn diagram and complete the cardinality for each of the 8 regions of the diagram. The question here is how many elements are in region \(a\).

From the given data, we know that there are 3 students in region \(e\) and 7 students in region \(h\).

Because 7 students were taking a \(SS\) and \(NS\) course, we know that \(n(d)+n(e)=7\). Since we know there are 3 students in region \(e\), there must be \(7-3=4\) students in region \(d\).

Similarly, since there are 10 students taking \(HM\) and \(NS\), which includes regions \(e\) and \(f\), there must be \(10-3=7\) students in region \(f\).

Since 9 students were taking \(SS\) and \(HM\), there must be \(9-3=6\) students in region \(b\).

Now, we know that 21 students were taking a \(SS\) course. This includes students from regions \(a, b, d,\) and \(e .\) Since we know the number of students in all but region \(a,\) we can determine that \(21-6-4-3=8\) students are in region \(a\).

There are 8 students are taking only a \(SS\) course.

Try it Now 3

One hundred fifty people were surveyed and asked if they believed in UFOs, ghosts, and Bigfoot.

How many people surveyed believed in none of these things?

Answer

Starting with the intersection of all three circles, we work our way out. Since 10 people believe in UFOs and Ghosts, and 2 believe in all three, that leaves 8 that believe in only UFOs and Ghosts. Continue filling in all the regions. Once the cardinality for each region in the circles is completed, add the cardinalities to get 91 people in the union of all three sets. This leaves \(150-91=59\) people who believe in none.

<a href=Three set Venn diagram showing 30 believe in only UFOs, 28 believe in only ghosts, and 14 believe in only Bigfoot. There are 2 people who believe in all 3, 8 who believe in UFOs but not ghosts, 3 who believe in UFOs and Bigfoot but not ghosts, 6 who believe in ghosts and Bigfoot but not UFOS, and 59 who believe in none of these." />

This page titled 1.3: Applications of Sets is shared under a CC BY-SA license and was authored, remixed, and/or curated by David Lippman (The OpenTextBookStore) .

  1. Back to top