Unit 1 - Inclusion - Exclusion Principle
Unit 1 - Inclusion - Exclusion Principle
An underlying idea behind PIE is that summing the number of elements that
satisfy at least one of two categories and subtracting the overlap
prevents double counting.
For instance, the number of people that have at least one cat or at least one dog
can be found by taking the number of people who own a cat, adding the number
of people that have a dog, then subtracting the number of people who have
both.
The Inclusion – Exclusion Principle computes the cardinal number of the Union
of multiple non-disjoint sets.
For any 2 Finite Sets A and B, the principle states that:
|A U B| = |A| + |B| - |A B|
Inclusion-Exclusion Principle says that for any number of finite sets A 1, A2, A3...
A i,
Union of the Sets is given by = Sum of sizes of all single sets – Sum of all 2-set
intersections + Sum of all the 3-set intersections – Sum of all 4-set intersections
.. + (-1)^{i+1} Sum of all the i-set intersections.
In General, it can be said that:
Properties:
1. Computes the total number of elements that satisfy at least one of
several properties.
The formulation using the Venn Diagram of 3 Finite Sets A, B and C as:
Question 1:
Let A and B be two finite sets such that n(A) = 20, n(B) = 28 and n(A U B) = 36.
Find n(A B).
Question 2:
If n(A – B) = 18, n(A U B) = 70 and n(A B) = 25, then find n(B).
Question 3:
In a group of 60 people, 27 likes cold drinks and 42 likes hot drinks and each
person likes at least one of the two drinks. How many likes both the drinks ?
Question 4:
In a group of 100 persons, 72 people can speak English and 43 can speak French.
(i) How many can speak English only ?
(ii) How many can speak French only ?
(iii) How many can speak both English and French ?
Solutions:
Solution 1:
By applying the formula:
n(A U B) = n(A) + n(B) - n(A B)
On putting the given values to the above formula, we have
n(A U B) = 20 + 28 – 36
= 48 – 36
= 12
Solution 2:
By applying the formula:
n(A U B) = n(A - B) + n(A B) + n(B - A)
On putting the given values to the above formula, we have
70 = 18 + 25 + n(B - A)
70 = 43 + n(B - A)
n(B - A) = 70 – 43
n(B - A) = 27
Now, n(B) = n (A B) + n(B - A)
= 25 + 27
= 52
Solution 3:
Let A = Set of people who like Cold drinks
B = Set of people who like Hot drinks
Given,
n(A U B) = 60, n(A) = 27, n(B) = 42
By applying the formula:
n(A U B) = n(A) + n(B) - n(A B)
On putting the given values to the above formula, we have:
60 = 27 + 42 - n(A B)
n(A B) = 27 + 42 – 60
= 69 – 60
=9
Therefore, 9 people like both the drinks.
Solution 4:
Let A be the set of people who speak English, n(A) = 72
Let B be the set of people who speak French, n(B) = 43
(A – B) be the set of people who speak English but not French.
(B – A) be the set of people who speak French but not English.
(A B) be the set of people who speak both English and French.
Here, n(A U B) = 100 ………… (Given)
Question 1:
In a competition, a school awarded medals in different categories. 36 medals in
Dance, 12 medals in Dramatics and 18 medals in Music. If these medals went to
a total of 45 persons and only 4 persons got medals in all the three categories.
How many received medals in exactly two of these categories ?
Question 2:
Each student in a class of 40 plays at least one indoor game chess, carrom, and
scrabble. 18 play chess, 20 play scrabble and 27 play carrom. 7 play chess and
scrabble, 12 play scrabble and carrom, and 4 play chess, carrom and scrabble.
Find the number of students who play (i) chess and carrom, (ii) chess, carrom
but not scrabble.
Question 3:
(ii) Students who play video games and indoor games, but not outdoor games.
Question 4:
Solutions:
Solution 1:
Let A = Set of persons who got medals in Dance
B = Set of persons who got medals in Dramatics
C = Set of persons who got medals in Music
Given,
n(A) = 36, n(B) = 12, n(C) = 18
n(A U B U C) = 45, n(A B C) = 4
We know that the number of elements belonging to exactly two of the three sets
A, B, C = n(A B) + n(B C) + n(C A) – 3n(A B C)
= n(A B) + n(B C) + n(C A) – 3 * 4 ------------------(i)
n(A U B U C) = n(A) + n(B) + n(C) – n(A B) - n(B C) - n(C A) + n(A B C)
Therefore,
n(A B) + n(B C) + n(C A) = n(A) + n(B) + n(C) + n(A B C) - n(A U B U C)
Now, putting the values in eq. (i), we get:
= n(A) + n(B) + n(C) + n(A B C) - n(A U B U C) – 12
= 36 + 12 + 18 + 4 – 45 – 12
= 70 – 67
=3
Solution 2:
Let A be the set of students who play chess
B be the set of students who play scrabble
C be the set of students who play carrom
n(A) = 18, n(B) = 20, n(C) = 27
n(A B) = 7, n(C B) = 12, n(A B C) = 4, n(A U B U C) = 40
By applying the formula, we have
n(A U B U C) = n(A) + n(B) + n(C) – n(A B) - n(B C) - n(C A) + n(A B C)
40 = 18 + 20 + 27 – 7 – 12 - n(C A) + 4
n(C A) = 18 + 20 + 27 – 7 – 12 + 4 – 40
= 69 – 59
= 10
Therefore, the number of students who play chess and carrom are 10.
Also, the number of students who play chess, carrom and not scrabble
= n(C A) - n(A B C)
= 10 – 4
=6
Solution 3:
n(V ∩ I ∩ O) = 8
(ii) Number of students like to play video games and indoor games but not
outdoor games = 34
Note: Always begin to fill the Venn diagram from the innermost part.
Solution 4:
n(A ∩ B ∩ C) = 8
(i) Number of people surveyed =
= 21 + 26 + 29 – 14 – 15 – 12 + 8 = 43
(ii) By the Venn diagram, number of people who only read Regional Language
newspapers = 10.