Probability with Venn diagrams

Topic Notes
Venn Diagrams can be a useful tool to represent and solve probability questions

Sample space:
All possible outcomes of an experiment

Union(\cup, "or"):
A\cupB is the event that either A occurs or B occurs or they both occur

Intersection (\cap, "and"):
A\capB is the event that both A occurs and B occurs

Addition Rule:
A shortcut formula to finding is: A\cupB = A + B – A\capB

Complement (Ac)(A^c):
All outcomes EXCEPT the event P(Ac)=1P(A)P(A^c )=1-P(A)

Probability with Venn diagrams


What is a Venn diagram?


We define Venn diagram as a graphic representation of a group of sets of items (or possible outcomes) where the way each set is related to the others in the diagram can be clearly seen. The sets are always presented as either circles or closed curves, and they overlap with one another when their characteristics are shared, or when the items in one set belong to another too.

Confusing? Just take a look at the Venn diagram example below:

Probability with Venn diagrams
Figure 1: Example of a Venn diagram

In this 2 circle Venn diagram we can see the composition of the American continent, and divide it between North America and Latin America. Notice that there is a piece of North America which is also part of Latin America, and that is Mexico! (Yes, Mexico is part of North America). Therefore, you can see how a Venn diagram shows the relationship between sets (in this case the two sets are North and Latin America) by depicting them as circles, and whenever an item from a set belongs to other, these circles will overlap.
Venn Diagrams can be a useful tool to represent and solve probability questions. In order to understand what a Venn diagram is and represents in a clearer manner, we have to remember the following details:

  • A sample space: All possible outcomes of an experiment
From the Venn diagram image in figure 1, our sample space was the American continent, and all of the possible outcomes would be each and every country within the continent. For this case the complete sample domain is represented by the items in the circles, but is not always the case; you may have Venn diagrams in which there are items outside of the circle sets you are representing, and these are usually left inside the box surrounding the circles.
Therefore, the sample space is the complete box surrounding the circles (or closed curves) that represent the sets.

  • Union ( \, \cup , "or"): AB A \, \cup \, B \, is the event that either A occurs or B occurs or they both occur.
For the case of figure 1, the union of Latin America and North America will be the complete American continent. The union of two sets is represented by the whole area of both circles which have been united.

  • Intersection ( \, \cap , "and"): ABA \, \cup \, B\, is the event that both A occurs and B occurs
As the name suggests, the intersection of two sets is the part of the set that contains items which belong to it and another set. For the case of figure 1, the intersection of Latin America and North America is the area where Mexico is.

  • Addition Rule:
The addition rule is a mathematical definition of the union of two item sets.
A shortcut formula to finding is:

AB=A+B    AB A \, \cup \, B = A + B \; - \; A \, \cap \, B
Equation 1: Addition rule

More on the addition rule will be said in the next lessons. And the basic process will be explained on the Venn diagram problems in the last section of this lesson.

  • Complement (AcA^{c}):
The complement of a set in a Venn diagram refers to all outcomes EXCEPT the event mentioned, mathematically, this means:

P(Ac)=1P(A) P(A^{c}) = 1 -P (A)
Equation 2: Complement of set A


Venn diagram problems

Using the Venn diagram definition from our first section, resolve the next example problems.

Example 1

Looking at Venn diagrams for the representation of events, check out the next example problem: Out of a school of 100 students the number of students enrolled in PE and Band class is given below:

Probability with Venn diagrams
Figure 2: Venn diagram of students belonging to each class

So there are 35 students who are taking only PE classes, 30 students who are taking only Band classes, and 20 students who are taking both PE and Band classes. There are also 15 students who are not enrolled in PE or Band classes.

1. \quad Replicate this Venn diagram in terms of probabilities of picking a random student from any of these classes.

In this case we have the next classes:

  • PE (Physical education) class = 35 students.
  • Band class = 30 students.
  • Both PE and Band = 20 students.
  • Not enrolled = 15 students.

Therefore, we have a total of: 35 + 30 + 20 + 15 = 100 students, as mentioned in the problem. This total of students is the complete sample space; and so, the probabilities for each class are:

  • P(PE) = 35/100
  • P(Band) = 30/100
  • P(Both PE and Band) = 20/100
  • P(Not enrolled) = 15/100

Meaning that each class has a certain amount of students out of 100, and thus the Venn diagram probability depiction goes as:

Probability with Venn diagrams
Figure 3: Venn diagram of probabilities for each class

Where all of the sample space is represented as everything inside the box on the diagram, and has a probability of 1. And each of the classes we have listed, has its probability marked in each of their corresponding areas.

2. \quad What is the probability of picking a student who is in PE class?
We already know that the probabilities of choosing a student enrolled in PE class ONLY, is equal to 0.35. While the probability of picking a student that is enrolled in both PE and Band is equal to 0.20. If you think about it (and noticing from figure 2) there are a total of 55 students out of 100 who are taking PE class (either by itself, or with another class).

Therefore, our total probability of picking a student who is enrolled in PE class is equal to 55/100 or 0.55.

Example 2

On this problem we take a look at how to use unions and intersections in Venn diagrams.
The following dots represent students who attend each after school activity:

Probability with Venn diagrams
Figure 4: Venn diagram of students belonging to each after school activity


1. \quad How many students attend only Band Practice, what is the probability of picking a student who attends only Band Practice?
By counting the dots on the triple Venn diagram in figure 4, we notice that there are a total of 22 students in the whole diagram. These 22 students are the complete sample space.

Therefore, since there are only 7 dots in the area belonging to Band practice ONLY, we have that there are 7 students out of a total of 22, who attend Band practice as their only activity in the afternoons, after school. And so, the probability of picking a student who attends only band practice in the afternoons is equal to: P(B)P(B) = 7/22 = 0.3181818.

Such probability belongs to this area on the 3 circle Venn diagram:

Probability with Venn diagrams
Figure 5: Proportion of Venn diagram for students in band practice ONLY


2. \quad How many students attend Soccer Practice AND Band Practice, what is the probability of picking these students?
For this question the key word is and, therefore, we are looking for students attending soccer AND band, or, the intersection of the regions for soccer practice and band practice depicted in the Venn diagram as follows:

Probability with Venn diagrams
Figure 6: Proportion of Venn diagram for students in both band practice and soccer practice

Counting the amount of students belonging to the BS B \, \cap \, S (intersection of Band and Soccer) region as marked above, we have that there are a total of 5 students who attend both band and soccer practice after school, and so, the probability of picking one of these students out of the total of 22 is equal to P(BS)P(B \, \cap \, S) = 5/22 = 0.227272.

3. \quad How many students attend Soccer Practice AND Band Practice AND Track Practice, what is the probability of picking these students?
In this case, we are asked to find out how many students belong to the intersection of the regions for all three: band, soccer and track practices. Shading that intersection in the Venn diagram, we find that:

Probability with Venn diagrams
Figure 7: Proportion of Venn diagram for students in all three band, soccer and track practice

Therefore, we can clearly see that the amount of students in the intersection BST B \, \cap \, S \, \cap \, T is equal to 2. And the probability of picking one of these 2 students out of the total of 22 is equal to: P(BST)P(B \, \cap \, S \, \cap \, T) = 2/22 = 0.09091.

4. \quad How many students attend Track Practice OR Soccer Practice, what is the probability of picking these students?
Looking for the students that attend track practice OR soccer practice, means we are looking for the students belonging to the union denoted by TS\, T \, \cap \, S. Which is denoted in the next figure in red:

Probability with Venn diagrams
Figure 8: Proportion of Venn diagram for students in the union of soccer and track practice

And so, counting the dots in the region for the union of track and soccer practices, we have that there are a total of 15 students who attend track and soccer. Thus, the probability of picking one of these students is equal to: P(TS)P(T \, \cup \, S) = 15/22 = 0.681818

5. \quad How many students attend Band Practice OR Soccer Practice, but not Track Practice? What is the probability of picking these students?
Once more we are looking for the students in a union, but this case, the union of band and soccer practices:

Probability with Venn diagrams
Figure 9: Proportion of Venn diagram for students in the union of band and soccer practice

Counting the dots in the region for the union of band and soccer practices, we have that there are a total of 17 students who attend track and soccer. Thus, the probability of picking one of these students is equal to: P(TS) P(T \, \cup \, S) = 17/22 = 0.772727

Example 3

This next problem is dedicated to the addition rule, for extended details on the addition rule take a look at our next lesson on addition rule for OR.

From a deck of cards, 10 cards are drawn at random. From these 10 cards the probability of picking a king is 0.3 and the probability of picking a heart is 0.5. The probability of picking a card that is both a king and a heart (the king of hearts) is 0.1.

1. \quad Represent these probabilities as a Venn Diagram
Let us think about the information provided above in order to answer this question. The sample of cards we are looking at consists of 10 cards, from which, if we are to pick a card at random, there is a probability of 3 out of 10 to select a king, and a probability of 5 out of 10 to select a heart. From those, there is the probability of 1 out of 10 to select the king of hearts (meaning that the king of hearts is present in the 10-card sample.

With that in mind, we can conclude that our sample of 10 cards contains: 2 kings and 4 cards that have the heart symbol different from the king of hearts, the king of hearts, and three cards that are left which can be anything but a king or a heart.
And so, we make a Venn diagram from such a sample, and the result is shown below:

Probability with Venn diagrams
Figure 10: Venn diagram for a sample of 10 cards as described in example problem 3

Notice that the circle representing the hearts is bigger than that representing the kings, that is because we have more hearts than kings. Also notice that the sample space contains 3 other cards which are not hearts or kings.

2. \quad What is the probability of picking a king that isnt a heart?
Out of the ten cards drawn, there are only two king cards which are not hearts; therefore, there is a probability of PP(King other than king of hearts)= 2/10 = 0.2.

3. \quad What is the probability of picking a heart that isnt a king?
Out of the ten cards drawn, there are only four heart cards which are not kings; therefore, there is a probability of PP(Heart card other than king of hearts) = 4/10 = 0.4.
Notice that the probabilities in the Venn diagram are not the same as the ones answering questions 2 and 3; this is because the probabilities in the Venn diagram are for everything that is inside either the black circle or the red circle.
  • P(k)=0.3 for everything inside the black circle.
  • P(h)=0.5 for everything inside the red circle.


4. \quad What is the probability of picking a king OR a heart?
In this case, we are asked to find the probability of a card being picked from the union of the king and heart cards. Therefore, the probability is equal to P(kh)P( k \, \cup \, h) for which we use the addition rule formula AB=A+BAB \, A \, \cup \, B \, = A + B - A \, \cap \, B ; and we have that:

P(kh)=P(k)+P(h)P(kh) P(k \, \cup \, h) = P(k) + P(h) - P(k \, \cap \, h)

Where:k=3,h=5 k = 3, h=5 \, andkh=1, \, k \, \cap \, h = 1, \, and \, so:

P(kh)=P(k)+P(h)P(kh)=P(k \, \cup \, h) = P(k) +P(h) - P(k \, \cap \, h) = 310+510110=710 \large \frac{3}{10} + \frac{5}{10} - \frac{1}{10} = \frac{7}{10} =0.7= 0.7
Equation 3: Probability of the union of the king and heart regions


Example 4

The probabilities of certain events are given in the Venn Diagram below:

Probability with Venn diagrams
Figure 11: Probabilities on certain events on a Venn diagram


1. \quad What is the probability of A occurring?
A accounts for everything inside the left circle, therefore, the probability of that total is equal to the addition:

P(A)=0.3+0.1=0.4P(A) = 0.3 + 0.1 = 0.4
Equation 4: Probability of A occurring


2. \quad What is the probability of A NOT occurring?
The probability for anything inside the sample space to occur is equal to 1 (the total probability for all the regions accounted for). Therefore, the probability for AA not occurring is to obtain the probability of the complement of AA, and goes as follows:

P(Ac)=1P(A)=10.4=0.6P(A^{c}) = 1 - P(A) = 1 - 0.4 = 0.6
Equation 5: Probability of A not occurring


3. \quad What is the probability of AA occurring or BB occurring?
The probability of AA occuring OR BB occurring is equal to the union of AA and BB, and therefore, we calculate it as follows:

P(AB)=P(A)+P(B)P(AB) P(A \, \cup \, B) = P(A) + P(B) - P(A \, \cap \, B)

Where:P(A)=0.4,P(B)=0.5 P(A) = 0.4, P(B) = 0.5 \, and(PB)=0.1, \, (P \, \cap \, B) = 0.1, \, and \, so:

P(AB)=P(A)+P(B)P(AB)=0.4+0.50.1=0.8P(A \, \cup \, B) = P(A) + P(B) - P(A \, \cap \, B) = 0.4 + 0.5 - 0.1 = 0.8
Equation 6: Probability of the union of A and B


4. \quad What is the probability of neither AA nor BB occurring?
We follow the same logic as in question 2, and know that, since the total probability is equal to 1, then the probability for neither AA nor BB occurring is equal to:

P((AB)c)=1P(AB)=10.8=0.2P((A \, \cup \, B)^{c}) = 1 - P(A \, \cup \, B) = 1 - 0.8 = 0.2
Equation 7: Probability of A or B not occurring

This is the end of our lesson. Before we pass onto the next lesson we recommend you to take a look at this handout of probability problems, where you will find some useful Venn diagram examples that can be useful for you to practice even more.
We hope you have enjoyed the lesson of today, see you on the next!