Now that we've talked about what creates a set, how to set up sets, and how to read sets and their operations, it is time to move on to how to create a Venn diagram when two sets are involved.
A Venn diagram represents each set by a circle, usually drawn inside of a containing box representing the universal set. Overlapping areas (regions) indicate elements that are common to all sets involved.
A basic Venn diagram can illustrate the relationship, or interaction, between two different sets in a visual manner. Looking at the diagram below, we will see how the two interact.
In Figure 3.3.1, we can see that Roman numerals were used to denote regions or sections of the diagram, and capital letters were used to denote the set names. Looking at the Venn diagram, we can determine that:
More specifically each region represents:
Construct a Venn diagram for the Universal Set of ice cream flavors where $U=\{\text{Vanilla},\text{Chocolate},\text{Strawberry},\text{Cookie Dough},\text{Mint Chip}, \text{Cookies N Cream}$,$\text{Pistachio}, \text{Moose Tracks},\text{Birthday Cake}, \text{Cotton Candy}\}$.
Allow set $A=\{\text{Vanilla},\text{Cookie Dough},\text{Mint Chip}, \text{Moose Tracks},\text{Birthday Cake}\}$, and $B=\{\text{Cookie Dough},\text{Mint Chip}, \text{Moose Tracks}, \text{Cotton Candy}\}$
Sometimes to set up this type of Venn diagram, it may be easiest to highlight or group the elements they have in common; the intersection of the two sets A and B.
A = { Vanilla, Cookie Dough, Mint Chip, Moose Tracks, Birthday Cake }
B = { Cookie Dough, Mint Chip, Moose Tracks, Cotton Candy }
Next, we need to finish this diagram up by placing the elements that are not in set A or Set B, but are in the Universal Set. To do this, it may be easiest to look at each set and find the elements in U that are in either set A or set B. The elements in red are the elements that are in Set A and in Set B, whereas the elements in blue are the elements that are just in Set A or just in Set B.
U = { Vanilla, Chocolate, Strawberry, Cookie Dough, Mint Chip, Cookies N Cream, Pistachio, Moose Tracks, Birthday Cake, Cotton Candy }
A = { Vanilla, Cookie Dough, Mint Chip, Moose Tracks, Birthday Cake }
B = { Cookie Dough, Mint Chip, Moose Tracks, Cotton Candy }
It is pretty straight forward to create a Venn diagram for this example, but what if the example isn't so easy? Let's set up a set of steps that will help us in setting up a Venn diagram for a given problem.
Draw a Venn diagram to illustrate the set of $(A\cap B)'$
$$A\cap B = \{I,II\} \cap \{II,III\}=\{II\}$$
Next, we need to identify the sections that are not in that solution, but are in the Set U:
$$(A\cap B)'= \{II\}'=\{I,III,IV\}$$
Verbally, this would be the set of all elements except those that are in Set A and Set B.
Shade the Venn diagram of the set illustrated by $A'\cup B$.
$$A'\cup B = \{III,IV\}\cup \{II,III\}=\{II,III,IV\}$$
Verbally, this would be the set of all elements except those that are only in Set A.
While at this stage, it may seem silly to take all of these steps to get to a rather simple answer, we are creating a process so as this gets harder, we have a process in place to make the task simpler.
In Set Theory, there are two very well known formulas that are used for simplifying. They're named in honor of a Mathematician from the 19th century by the name of Augustus De Morgan. I guess you could say he is partially to blame for introducing the Alphabet into Mathematics as he was one of the first Mathematicians to recognize the purely symbolic nature of Algebra.
For any two sets A and B
$$(A\cup B)'\equiv A'\cap B'$$
For any two sets A and B
$$(A\cap B)'\equiv A'\cup B'$$
Note that these two laws are very similar to each other. It isn't as simple as just distributing the 'not' sign through. This means you cannot say that $(A\cup B)'\equiv A'\cup B'$; this is not a true statement. Both of these laws can be useful in their own way, but are not something you "have" to use.
Remembering back to the beginning of this unit we discussed that the Cardinality of a set is the number of elements that are contained within that specific set. The Cardinality of a Union is the number of elements contained in the union of multiple sets.
If $n(A)$ represents the cardinality of Set A and $n(B)$ represents the cardinality of Set B, then for any two finite sets A and B
$$n(A\cup B)=n(A)+n(B)-n(A\cap B)$$
Essentially, it is just the sum of the number of elements in Set A and Set B, minus the elements that they share in common.
In a survey of 100 people, it was found that 42 have dogs, 51 have cats, and 12 have both dogs and cats. How many of these people have a cat or a dog?
Notice that the problem doesn't say that 42 have only dogs. It says that 42 have dogs. This means that they could have cats too. So what we need to do is figure out how many people have just dogs and just cats and then the overlap. To do this, we will use the Cardinality of a Union formula.
$$n(\text{dogs})+n(\text{cats})-n(\text{dogs}\cap\text{cats})=42+51-12=81$$
What would the Venn diagram for this problem look like? Well, first we would need to figure out how many people have just dogs? To do that, we have to think about the regions that make up our Set A (dogs). We know that Set $A=\{I,II\}$ which means according to our data, there are $42$ people who have dogs, but we also know that there are $12$ people who have both dogs and cats. This means $A\cap B= \{II\}$ telling us that $n(A\cap B) = 12$, thus the number of people who just have dogs would be $42-12=30$. Next, we would need to find the number of people who just have cats. We'd take that same approach giving us $51-12=39$, which would provide us the Venn diagram of:
Lastly, let's find how many of the 100 people did not have a cat nor a dog. Well, this would be the complement of the set of people that had a cat or a dog ($n(A\cup B )'$). To find this, we'd take $100-n(A\cup B)=100-81=19$ giving us the completed Venn diagram of:
When solving problems like this one, it first might be easiest to create the Venn diagram so we know the cardinality of each section/region, and then answer the question that is being asked.
A survey asks 200 people, "What beverage do you drink in the morning?" and offers the choices:
To begin finding these solutions, it may be easiest to create the Venn diagram first to display the data that was collected.
First, let's look at the wording and see that this time it says 'only' for our tea and coffee sections. This is different than our previous example.
$$n(A\hspace{0.25cm} \text{only})=20 - \text{section}\{I\}$$ $$n(B\hspace{0.25cm} \text{only})=80 - \text{section}\{III\}$$ $$n(A\cap B)=40- \text{section}\{II\}$$
To figure out how many people don't drink tea or coffee, we would need to subtract the number of people in each section from the total number polled to get $200-20-80-40=60$
Now that we've completed the Venn diagram, we can answer the questions by just looking at the chart. The first question asked is, "How many people drink tea in the morning?" This would be those in our sections I and II, thus we'd just add those two numbers together to get $20+40=60$. This means a total of 60 people consume tea as a beverage of choice in the morning.
Our second part of this question asked us how many people drink neither coffee nor tea; this would be the section that is not contained by the circles but is contained by the outer box, giving us $60$ total people who don't drink coffee and they don't drink tea.
A survey asks: "Which online services have you used in the last month? (Select all that apply)" and the options were:
In this situation, we don't have numbers, but we know in general that each piece of this chart is a part of a whole. This means the whole would be $100\%$. For this situation, let's allow Set A to be T representing Twitter, and let's allow Set B to be F for Facebook.
This set up is similar to Example 5, where we were told the totals for each circle but not each section. Thus we have to work from the inside out. Working from the inside out let's figure out what percent of people only use Twitter and what percent of people only use Facebook.
(T) Twitter Only: $40\%-20\%=20\%$
(F) Facebook Only: $70\%-20\%=50\%$
Now draw the Venn diagram that represents what we have found:
Next, we just need to identify how many would have neither Facebook nor Twitter. This means we'd need to subtract each section from the whole ($100\%$), $100\%-20\%-20\%-50\%=10\%$ giving us our solution and allowing us to fill in the "??" in our Venn diagram.
Now we could use this Venn diagram to answer any question that was to follow. It is important to note that a Venn diagram is not required to answer any of these types of questions, however they are helpful if you are a visual learner.