Probability Using a Venn Diagram
It is often useful to use a Venn diagram to visualize the probabilities of
multiple events. In #1 below we explore the use of a Venn diagram to
determine the probabilities of individual events, the intersection of events and
the compliment of an event. In #3 we will continue to explore the concept of
a conditional probability and how to use a Venn diagram to solve these
problems as well as the formula for conditional probability.
Let's use the Venn diagram below to find the following probabilities.
Notice that the sum of all the values in the diagram is 0.4+0.3+0.2+0.1=1.
This diagram represents the entire sample space for two events, A and B.
1. P(A)
To find the P(A), we will add the probability that only A occurs to the
probability that A and B occur to get 0.4+0.3=0.7. So P(A)=0.7.
2. P(B)
Similarly, P(B)=0.2+0.3=0.5.
3. P(A∩B)
Now, P(A∩B) is the value in the overlapping region 0.3.
P(A∪B)
P(A∪B)=0.4+0.3+0.2=0.9. Which can also be found using the
formula P(A)+P(B)−P(A∩B)=0.7+0.5−0.3=0.9.
P(A′∩B′)
P(A′∩B′) needs to be determined by finding where in the diagram everything
outside of A overlaps with everything outside of B. That will be the region
outside of both circles and that probability is 0.1. Another way to think of this
is P(A∪B)′, or 1−P(A∪B).
De Morgan's Law
There are a couple of equivalent set notations on probabilities and they are
called De Morgan’s Laws.
(A∩B)′=(A′∪B′) for sets or P(A∩B)′=P(A′∪B′) for probabilities.
and
(A∪B)′=(A′∩B′) for sets or P(A∪B)′=P(A′∩B′) for probabilities.
Now, let's solve the following problems.
1. Given P(A)=0.6, P(B)=0.3 and P(A∪B)=0.7, find P(A∩B) and P(A
′∪B′).
First, we can use the formula for the union of two sets to determine the
intersection.
P(A)+P(B)
−P(A∩B)=P(A∪B)0.6+0.3−P(A∩B)=0.70.9−0.7=P(A∩B)0.2=P(A∩B)
Now we can use De Morgan’s Law to find P(A′∪B′).
P(A′∪B′)=P(A∩B)′=1−P(A∪B)=1−0.2=0.8.
We could have also created a Venn diagram for the probabilities and
interpreted P(A′∪B′) and the regions outside A union with the regions
outside B which would be everything in the Venn diagram except the overlap
of the two regions or P(A∩B).
2. The data from a survey of 140 students showed that 37 study
music, 103 play a sport and 25 do neither. Create a Venn diagram
to illustrate the data collected and then determine the probability
that if a student is selected at random,
a. he or she will study music
b. he or she will study music given that he or she plays a sport.
Let M represent the set of students who study music and S represent the set
of students who play sports. First let’s determine the number of students that
study music and play a sport to fill in the overlapping region in the diagram
and then we can find the other values.
n(M)+n(S)−n(M∩S)=n(M∪S)37+103−n(M∩S)=115n(M∩S)=25
a. The probability that a randomly selected student studies music is
the number of students who study music divided by the total
number of students surveyed or P(M)=n(M)140=37140≈0.264.
b. The probability that a randomly selected student will study music
given that he/she plays a sport is called a conditional probability.
We use the notation P(M|S) to represent the P(M) given that S has
already occurred. To find this probability using a Venn diagram,
we find the number of student who study music and play a sport
and divide by the number of students who play a sport or P(M|
S)=n(M∩S)n(S)=25103≈0.243. Think of it this way, when we say
that we know that the student plays a sport, then the numerator
is limited to those students who study music and play a sport and
the denominator is limited to those who play a sport.
There is also a formula for conditional probability: P(A|B)=P(A∩B)P(B)
In the context of our problem, it is: P(M|
S)=P(M∩S)P(S)=25140103140=25140⋅140103=25103.
Notice that the resulting probability is the same as previously determined.
Either method can be used.
Examples
Example 1
Earlier, you were asked to find the probability that one of those customers
selected at random would like Dandy Cotton Candy.
The Venn diagram for this situation would show 12, the number of customers
who like both flavors, as the intersection. The number of customers who like
only the Pumpernickel flavor would therefore be 32−12=20 while the
number of customers who like only the Cotton Candy flavor would
be 58−12=46. Since there are 21 customers who like neither flavor, the total
number of customers polled is 12+20+46+22=100 and the probability that
one of those customers chosen at random would like the Cotton Candy flavor
is 58100=58%.
Example 2
In a class of 260 seniors, 93 study Spanish, 95 study Chemistry, 165 study
Mathematics, 18 study Spanish and Chemistry, 75 study Chemistry and Math,
20 study Math and Spanish and 15 study all three subjects. Make a Venn
diagram to illustrate the data and then find the probability that a student
selected at random studies:
just Spanish
P(S∩M′∩C′)=70260=726≈0.269
Math and Chemistry but not Spanish
P(M∩C∩S′)=60260=313≈0.231
none of these subjects
P(M′∩C′∩S′)=5260=152≈0.0192
Spanish, given that he/she studies Math
P(S|M)=P(S∩M)P(M)=20260165260=433≈0.121
Example 3
Given P(A∩B)=0.4, P(A∩B′)=0.2 and P(A′∩B′)=0.3, find P(B) and P(A|B).
The information gives us the Venn diagram:
The missing value, P(B∩A′), must be 0.1 in order for the total of the
probabilities in the sample space to equal 1. Thus, P(B)=0.5. P(A|
B)=P(A∩B)P(B)=0.40.5=45=0.8.
Review
For questions 1-3, find the indicated probabilities
given P(A)=0.5, P(B)=0.65 and P(A∪B)=0.75.
1. P(A∩B)
2. P(A′∩B′)
3. P(B|A)
For questions 4-6, find the indicated probabilities
given P(A)=0.6, P(B)=0.8 and P(A∪B)′=0.2.
4. P(A∩B′)
5. P(B|A)
6. P(A|B)
For questions 7-9, find the indicated probabilities given P(A∩B′)=0.3, P(B∩A
′)=0.2 and P(A∪B)=0.8.
7. P(A∩B)
8. P(A)
9. P(B|A)
10. Given P(A)=2P(B), P(A∪B)=0.8 and P(A∩B)=0.1, find P(A).
11. The international club at a school has 105 members, many of
whom speak multiple languages. The most commonly spoken
languages in the club are English, Spanish and Chinese. Use the
Venn Diagram below to determine the probability of selecting a
student who:
a. does not speak English.
b. speaks Spanish given that he/she speaks English.
c. speaks English given that he/she speaks Chinese.
d. speaks Spanish and English but not Chinese.