Amt 3a Examplesincl Excl New
Amt 3a Examplesincl Excl New
Let A and B be two finite sets, then n(A B) = n(A) + n(B) − n(A B) ,
where n(A) = |A| = Number of elements in set A.
In other words, to find the number of elements n(A B) in the union A B
, we add n(A) and n(B) & then subtract n(A B) ; that is “include” n(A) and
n(B) and exclude n(A B) .
This follows from the fact that when we add n(A) and n(B), we have counted
the elements of A B , twice. This principle holds for any number of sets.
INCLUSION AND EXCLUSION PRINCIPLE FOR THREE SETS:
Let A1 ,A 2 ,A 3 be three non empty sets.
3 3
| A1 A 2 A 3 | = | A | − | A
i =1
i
i j=1
i A j | + | A1 A 2 A 3 |
or
n(A B C) = n(A) + n(B) + n(C)
−n(A B) − n(B C) − n(A C)
+ n(A B C)
INCLUSION AND EXCLUSION PRINCIPLES FOR n SETS
Extending the principle of inclusion and exclusion principle to n sets, we have
the following:
Let A1 ,A 2 ,...A n be any n non-empty sets. Then,
A1 A 2 ... A n =
Solution:
Example:
There are 900 employees at CantoCrafts Inc.Of these, 615 are female, 345 are under 35
years old, 482 are single, 295 are single females, 187 are singles under 35 years old, 190
are females under 35 years old, and 120 are single females under 35 years old. Use a
Venn diagram to determine how many employees are married males who are at least 35
years old.
Solution:
Total number of married men who are atleast 35 years old = Total number of employees -
Total number of single females or employees under 35 years old
= 900 - 890
= 10
Therefore, 10 employees are married males who are atleast 35 years old.
Example 4:
A University want to count the number of students who are taking Math,
English, Religion or Science. They found that:
Solution:
In order to solve this, the elements have to be grouped into 4 sets. Initially,
one would think that a 4 circle Venn diagram would be able to display this
information. However, it's impossible to visually display this information
using four circles. To solve this, the four sets can be represented using a
vertical rectangle, horizontal rectangle, a circle and 2 circles connected
together as shown.
The sections in blue represents students taking only 1 of the 4 subjects
The sections in yellow represents students taking 2 of the 4 subjects
The sections in gray represents students taking 3 of the 4 subjects
The section in violet represents students taking all 4 subjects
n(A U B U C U D) = n(A) + n(B) + n(C) + n(D) - n(A n B) - n(B n C) - n(C
n D) - n(A n D) - n(B n D) - n(A n C) + n(A n B n C) + n(A n C n D) + n(A
n B n D) + n(B n C n D) - n(A n B n C n D)