M1W1T4 Pas 1.3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Week - 1

Graded
Practice Assignment
Assignment Solution
Mathematics for Data Science - 1

1. (2 points) Devendra has three sons (Jatin, Rabi, and Hem). Rabi has one son
named Rathi. Hem has two sons (Avi and Manish). This family tree has been
shown in the figure below.
Let us define a relation R as follows,

• R := {(A, B)|A and B are first cousins, i.e. their parents are siblings}.

• S := {(A, B)|A is son of B}.

Devendra

Jatin Rabi Hem

Rathi Avi Manish

Which of the following is (are) true?


R is an equivalence relation.

(Rathi, Rabi) ∈ S but (Rabi, Rathi) ∈
/ S.
(Rathi, Hem) ∈ R.

(Jatin, Devendra) ∈ S but (Rathi, Devendra) ∈
/ S.
Solution:
An equivalence relation is a binary relation that is reflexive, symmetric and
transitive. Now a binary relation is reflexive if it relates every element to itself.
Here (Rathi, Rathi) is not a member of the relation R, so it will not be a reflexive
relation. Hence R is not an equivalence relation. So option 1 is not correct.
Rathi is the son of Rabi, so (Rathi, Rabi)∈ S but Rabi is not the son of Rathi,
hence (Rabi, Rathi) ∈/ S.So option 2 is correct.
Rabi is Rathi’s father , while Devendra is the father of Hem. Rabi is the son
of Devendra and not a sibling. Hence, (Rathi, Hem)∈ / R. So, the third option,
(Rathi, Hem)∈ R is not correct.
Jatin is the son of Devendra, so (Jatin, Devendra)∈ S but Rathi is the son of
Rabi (and not the son of Devendra), so (Rathi, Devendra)∈ / S.So option 4 is
correct.

2. (2 points) If A and B are two sets, U is the universal set, φ is an empty set and
((A ∩ U ) ∪ (B ∪ φ)) = ((A ∩ φ) ∪ A) ∩ (B ∩ B) then which of the following is(are)
true?
Either A or B is an empty set.

A = B.

A is a subset of B and B is a subset of A.
B is proper subset of A.
Solution:
From left hand side, we get
((A ∩ U ) ∪ (B ∪ φ))
= ((A ∪ (B ∪ φ)) [as the interesection of the universal set U and A, denoted by
A ∩ U = A]
Again, union of B and the empty set φ will be the set B only, i.e., (B ∪ φ) = B
Therefore, (A ∪ (B ∪ φ)) = (A ∪ B).
Now, from right hand side, we get,
((A ∩ φ) ∪ A) ∩ (B ∩ B) = (φ ∪ A) ∩ (B ∩ B) [as the intersection of the set A and
the empty set φ is, the empty set φ only, i.e. φ ∩ A=φ]
Now, the union of these two sets will be φ ∪ A = A and the intersection of two
sets B ∩ B = B
Therefore,
(φ ∪ A) ∩ (B ∩ B) = (A ∩ B).
Hence, from LHS and RHS we get,
A∪B =A∩B
This means, either A = B or A is a subset of B and B is a subset of A.
Hence, second and third options will be correct. As we have obtained A = B so
in some cases, A and B can not be empty sets, hence option 1 is incorrect.
As A = B, therefore A ⊆ B (A is a subset of B) or B ⊆ A. For B to be a
proper subset of A, i.e. B ⊂ A, the set B is to be properly contained in the set
A, hence option 4 is not correct.

Page 2
Read the text below for answering Q3 and Q4
Let a relation R be defined as R = {(A, B) | A is an ancestor of B}.

3. (2 points) State whether true or false: R is symmetric.



False.
True.
Solution:
A relation R over a set X is symmetric if for all elements a, b ∈ X, if (a, b) ∈ R
then (b, a) ∈ R.
An example of the symmetric relation is the relation ”is equal to(=)”, because
if a = b is true then b = a is also true.
In the given question, if A is an ancestor of B, then B can not be an ancestor of
A. Therefore this relation is not symmetric.

4. (2 points) State whether true or false: R is transitive.



True
False
Solution:
A relation R over a set X is transitive if for all elements a, b, c in X, whenever
R relates a to b and b to c, then R also relates a to c. In mathematical terms, if
for three elements {a, b, c}, if (a, b) ∈ R and (b, c) ∈ R then if (a, c) ∈ R then R
is a transitive relation.
In the given question, if a person A is an ancestor of a person B, and B is the
ancestor of a person C, then A is also an ancestor of C.
Hence this relation R is transitive.

5. (2 points) Let X be the set of all natural numbers divisible by 5, Y be the set
of all natural numbers divisible by 10, and Z be the set of all natural numbers
that are not perfect squares. Let A, B, C, D, E, F, G be the regions marked in
the following Venn diagram. For example, A = X \ (Y ∪ Z), B = Y \ (X ∪ Z),
and C = Z \ (X ∪ Y ). (Note : A region in the Venn-diagram can be empty)

Page 3
X Y
A B
D
G
F E
C
Z

Figure 1: Fig A-1.1

Choose the correct option(s) from below.



250 is in G.
A is empty.

E is empty.

The region C consists of the numbers which are not perfect
squares, and are neither divisible by 5 nor divisible by 10.
Solution:
X: set of all natural numbers divisible by 5
Y : set of all natural numbers divisible by 10
Z: set of all natural numbers that are not perfect squares.
Now, 250 is divisible by 5 (as 2505
=50) and 250 is divisible by 10, (as 250
10
= 25)
and 250 is not a perfect square.
Hence, 250 lies in the overlapping area of all 3 sets, i.e. in the G region.
The set A consists of the numbers which are divisible by 5, but not by 10 and
are perfect squares.The numbers like {25, 625, ..} are elements of this set, hence
A is not empty, so option 2 is incorrect.
E = (Y ∩ Z)\G = (X c ∩ Y ∩ Z).
E is an empty set, because, a number which is divisible by 10 (element of the
set Y ), will always be divisible by 5 (element of the set X). So, third option is
correct.
According to the diagram, the region C = Z \((X ∩Z)∪(Y ∩Z)) = (Z ∩X c ∩Y c ).
Therefore, the region C consists of the numbers which are not perfect squares,
and are neither divisible by 5 nor divisible by 10. So, option 4 is also correct.

Page 4
6. (2 points) Let L denote the following list of words: Marvel, Daredevil, Natasha,
Stephen, Peter.
Let R and S be relations defined on pairs of words formed from L as given below.

• A pair of words are in R if they have at least two distinct letters in common.
• A pair of words are in S if they have at least three distinct letters in common.

For example, (Marvel, Daredevil) is both in R and S, as the letters A,R,V,E and
L are in common.
Which of the following statements are correct?

(Daredevil, Marvel) is in both R and S.
(Stephen, Peter) is in S but not in R.
(Daredevil, Natasha) is in S.

There is a pair which is neither in R nor in S.
Solution:
Let us write the words given in first option:
DAREDEVIL
MARVEL
Both words have 5 common letters - A, R, E, V, L
So both of these words will be in both the sets R and S as a pair of words are
in R if they have at least two distinct letters in common and a pair of words are
in S if they have at least three distinct letters in common.
For the second option, the words are
STEPHEN
PETER
These two words have 3 common letters- T, E and P. Hence, these two words
are included in both the sets R and S. So, option 2 is incorrect.
For option 3,
DAREDEVIL
NATASHA
only the letter ’A’ is common. Hence this pair is neither in the set S nor in the
set R.
So, option 3 is incorrect but option 4 is correct.

7. (2 points) Consider the following table of few materials and their dielectric con-
stant values.

Page 5
Material Dielectric constant
Air 1
Vacuum 1
Paper 3
Porcelain 6
Nerve membrane 7
Silicon 12

Table 1: Table A-1.1

We can think of this as a function f from the set of materials to the set of
dielectric constant values consisting of the elements {1, 3, 6, 7, 12}. Now pick out
the correct statement from the following.
f is neither one to one nor onto.
f is one to one but not onto.

f is onto but not one to one.
f is bijective.

Injective, Surjective, Bijective


Injective, NOT Surjective, NOT Bijective

NOT Injective, Surjective, NOT Bijective NOT Injective, NOT Surjective, NOT Bijective

https://en.wikipedia.org/wiki/Injective_function

Solution:
An injective function ( or one-to-one function) is a function that maps distinct
elements of its domain to distinct elements of its codomain. In other words,

Page 6
every element of the function’s codomain is the image of at most one element
of its domain. If a function f is mapped from the domain X to the co-domain
Y in a manner, such that, different inputs from X to f produce different inputs
in Y , then f will be an injective function. Here both the elements ”Air” and
”Vacuum” are mapped to the same element ”1” in the set of dielectric constants.
Hence this function is not injective.
A function f from a set X to a set Y is surjective (also known as onto), if for
every element y in the codomain Y of f , there is at least one element x in the
domain X of f such that f (x) = y. For a surjective function, the range is same
as the co-domain.
In the given table, dielectric constant values of every materials is from the set
{1, 3, 6, 7, 12} and for all the elements of the set {1, 3, 6, 7, 12} there is at least
one material such that f (Material)=dielectric constant. Hence this is an onto
function.
So option 3 is correct.
A function is bijective when it is both injective and surjective function. As this
function is not injective, hence it is not a bijective function. Hence option 4 is
wrong.

8. (2 points) Suppose A = {a, b, c, d, e}. How many subsets of 2 elements are pos-
sible?
6
9

10
8
Solution:
The subsets containing 2 elements can be written as:
{a, b}, {a, c}, {a, d}, {a, e}
{b, c}, {b, d}, {b, e}
{c, d}, {c, e}
{d, e}
Hence 10 such subsets are possible.

9. (2 points) Let us consider the following sets,

• A = {x ∈ N | x mod 3 = 0 and 1 ≤ x ≤ 11}


• B = {x ∈ N | x mod 4 = 0 and 1 ≤ x ≤ 11}

Page 7
• C = {x ∈ N | x mod 5 = 0 and 1 ≤ x ≤ 11}

Which of the following Venn diagrams accurately describes these sets.

Diagram A Diagram B
A B A B

C C

Figure 2: Fig A-1.2 Figure 3: Fig A-1.3

Diagram C Diagram D
C B A
B

A C

Figure 4: Fig A-1.4 Figure 5: Fig A-1.5

Solution:
For two given integers a and b, b mod a = 0 means, if we divide b by a, the
remainder will be 0.
The elements of the first set A, given in the question as A = {x ∈ N | x mod 3 =
0 and 1 ≤ x ≤ 11} will be {3, 6, 9}.
The elements of the set B, given in the question as B = {x ∈ N | x mod 4 =
0 and 1 ≤ x ≤ 11} will be {4, 8}.
The elements of the set C, given in the question as C = {x ∈ N | x mod 5 =
0 and 1 ≤ x ≤ 11} will be {5, 10}.
So, none of the elements are common among the three sets A, B, C. Hence, there
is no overlapping or intersection among the regions A, B, C in the Venn diagram.
Among the given options, only option B satisfies this criteria. Therefore, option
B is the correct answer.

Page 8
10. (3 points) If X, Y and Z are 3 sets, complement of any set A is denoted as Ac
and U is the universal set then find [(X ∩ Y )c ∪ (Z c ∩ U )]c from the given Venn
diagram

X Y

Figure 6: Fig A-1.6

(X c ∪ Y c ∪ Z)
φ

(X ∩ Y ∩ Z)
(X ∪ Y ∪ Z)
Solution:
(X ∩Y ) is the blue colored region in the figure below and (X ∩Y )c is the uncolored
region in the universal set in the Figure 7.

Figure 7: X ∩ Y region marked in blue color

Page 9
Now (Z c ∩ U ) = Z c . Now, (X ∩ Y ))c ∪ Z c is shown as the yellow colored portion
in Figure 8. Therefore, the white colored portion in Figure 8 is ((X ∩ Y )c ∪ Z c )c .
From Figure 8 we can see that this area is (X ∩ Y ∩ Z). Hence option 3 is correct.

Figure 8: (X ∩ Y )c ∪ Z c region marked in yellow color

11. (3 points) In a class of 50 students numbered 1 to 50, all even numbered students
opt for Physics, those whose numbers are divisible by 5 opt for Chemistry and
those whose numbers are divisible by 7 opt for Mathematics. How many opt for
none of the three subjects?
19

17
21
11
Solution:
Students who opt for Physics will be -{2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 30,
32, 34, 36, 38, 40, 42, 44, 46, 48, 50}
Students who opt for Chemistry will be -{5, 10, 15, 20, 25, 30, 35, 40, 45, 50}
Students who opt for Mathematics will be -{7, 14, 21, 28, 35, 42, 49}
Other students have not opted for any of the three subjects. These students are-
{1, 3, 9, 11, 13, 17, 19, 23, 27, 29, 31, 33, 37, 39, 41, 43, 47}.
Number of these students or the cardinality of this set is 17. Hence option 2 is
correct.

Page 10
Read the following passage to answer Q12, Q13, Q14
In the ’Rock-Paper- Scissors’ game, there are 3 shapes- ’rock’, ’paper’ and ’scis-
sors’. The rule of the game is as follows :

• Rock defeats scissors


• Paper defeats rock
• Scissors defeats paper.

If a relation R is defined as R = {(A, B) | A defeats B} where A, B are any of


the three shapes {rock, paper, scissors} then answer the following questions.

12. (2 points) State ’True’ or ’False’ : R is a symmetric relation.


True

False
Solution:
In the question, the given relation is R = {(A, B) | A defeats B}. So, if R is
symmetric then, for example, if rock defeats scissors, then scissors also should
defeat rock, which is not true. This is observed for the other element-paper as
well. Hence it is a false statement that R is a symmetric relation.

13. (2 points) State ’True’ or ’False’ : R is a transitive relation.


True

False
Solution:
By the question, paper defeats rock and rock defeats scissors. Now, if the relation
is transitive, then paper should defeat scissors, but according to the question,
that is not true as scissors defeats paper. Therefore it is false that R is a transitive
relation.

14. (2 points) State ’True’ or ’False’ : R is an equivalence relation.


True

False
Solution:
A given relation will be an equivalence relation if it is reflexive, symmetric and
transitive. The given relation is neither symmetric, nor transitive, hence it is not
an equivalence relation.

Page 11

You might also like