Professional Documents
Culture Documents
METHODS
Lecture 6:Venn Diagram
LECTURER: QURATULAIN
DEPARTMENT OF INFORMATION TECHNOLOGY
GOVERNMENT COLLEGE UNIVERSITY FAISALABAD
SOLUTION
A=Chocolate: 120
B=Vanilla :135
(A ∩ B) Both: 54 A=66 A∩B B =81
=54
C=None: 66
Given,
n(A ∪ B)+C = (A + B) - (A ∩ B) + C
= (120+135)-(54)+66 C=66
= 255-54+66
=201 +66
=267
Number of people surveyed= 267
Venn Diagrams
Venn diagrams were conceived around 1880
by John Venn.
They are used to teach elementary set theory, as well as
illustrate simple set relationships in probability, logic,
statistics linguistics and computer science.
Venn diagram consist of rectangles and closed curves usually
circles. The universal is represented usually by rectangles and its
subsets by circle.
ILLUSTRATION:
In fig U = { 1, 2, 3, …., 10 } is the universal set of
which
A = { 2, 4, 6, 8, 10 } and B = { 4, 6 } are subsets, and
also B ⊂ A
A’ (A ∩ B)’
SOME PROPERTIES OF THE OPERATION OF UNION
1) AUB=BUA ( commutative law )
2) (AU B ) UC =AU ( B U C ) ( associative law )
3) AUϕ=A ( law of identity element )
4) AUA=A ( idempotent law )
5) U UA= U ( law of U ) A∪B B’ (B dash)
1) Complement laws : 1) A U A’ = U 2) A ∩ A’ = Φ
2) De Morgan’s law :
(i) (A U B)' = A' ∩ B' (De Morgan's law of union).
(ii) (A ∩ B)' = A' U B' (De Morgan's law of intersection). (A ∪ B)’ (A - B)’
3) Laws of double complementation : ( A’ ) ‘ = A
4) Laws of empty set and universal set : Φ ‘ = U & U’ = Φ
For example;
Use Venn diagrams in different situations to find the following sets.
ξ = {a, b, c, d, e, f, g, h, i, j} (1) B - A
A = {a, b, c, d, f}
B = {d, f, e, g
(2) (A ∩ B)'
(3) (A ∪ B)' ?
B - A = {elements which are in B but not in A} = {e, g}
(A ∩ B)' = {elements of ξ which are not in A ∩ B}
= {a, b, c, e, g, h, i, j}
(A ∪ B)' = {elements of ξ which are not in A ∪ B} = {h, i, j}
There is only one dog that is black with a short tail and long hair. Two of the
dogs are black with short tails and do not have long hair. Two of the dogs
have short tails and long hair but are not black.
B + LH –ST = ? X LH= 15
U= 24
ST Only = ? B= 12 ST=6
= 6-2-1-2 = 1
B only = ?
= 12-2-1-x = 9-x
2
LH only = ?
= 15-2-1-x = 12-x
1
X 2
LH= 15
U= 24
B =? B= 12 ST=6
12-X-1-2 = 9
B 9- X = ? 2 1
(X) =12-9
X = 3
B only=?
1
B only = 9-x=6 (Value of x is 3)
X 2
= 6
LH only = 3+1+2-15
LH only = 9
LH= 15
Question
A survey about comic poets was conducted, revealed the following information:
51 admire Anwar Masood
49 admire Khalid Masood
60 admire Salman Gelani
34 admire Anwar Masood and Khalid Masood
32 admire Khalid Masood and Salman Gelani
36 admire Anwar Masood and Salman Gelani
24 admire all three of the Poets
1 admires none of the Poets
Pakistani Comic Poet
a) How many people were surveyed?
b) How many admire Salman Gelani, but not Khalid Masood nor Anwar Masood ?
c) How many admire Khalid Masood or Salman Gelani?
d) How many admire exactly one of the comic poet?
e) How many admire exactly two of the comic poet?
Scenario #6.3
In a college ,60% of the students play football, 50% of the student play cricket and 50% of the student
play hockey. 20% play both football and cricket ,25% play both hockey and cricket,30% play both
football and hockey.5% of the student play all the three games and 100 students play none of the games.
1)How many students are there in the college?
2)How many students play exactly two games?
3)How many students play neither cricket nor football?
4)How many students play exactly one game?
U=100 X
Football Cricket
Total = ?
60 X 50 X Total= 100 X U=100 X
We Know That
5% of the student play all the three games
15 X a 10 X a + b = 20%
a + 5 X = 20 X (15X) + (5X) + (25 X)
Only Football 15 X Only a = 15 X - 60 X = ?
b + c = 25%
5 X + c = 25 X
15 X
5X Only c = 20 X
b + d = 30%
25 X b 20 X 5 X + d = 30 X
d c Only d = 25 X
Only Football = 15 X
Only Cricket = 10 X
X=10 Only Hockey = 0
60 X + 10 X + 20 X = 90 X
0 90 X - 100 X = 10 X
10 X 10 X = 100 Hockey50 X
10 X = 100 (Given) X=10
U=100 X ?
Football Cricket 1) How many students are there in
60 X 50 X the college?
Total = 100 X
15 X 10 X 100 x 10 = 1000
Only Football 15 X 2) How many students play exactly
two games?
25X + 15X + 20X = ?
5X 60X = ?
60(10) = 600
25 X b 20 X 3) How many students play neither
cricket nor football?
0 + 10X = ?
10 (10) = 100
X=10 4) How many students play exactly
one game?
0 15X + 10X + 0 =?
10 X 10 X = 100 Hockey50 X 25 (10) = 250
Q5 # How many students play atmost 2 games?
Maximum 2 games
B= 12 ST=6
Sum of All
B+ST+LH= 24
12 + 6 + 15 = 24
6 2 1
1
3 2
9
LH= 15