Mathematics for Data Science 1

Mathematics for Data Science 1


Graded Assignment

Graded Assignment Week - 1

1. Multiple Choice Questions (MSQ) 🧠


Q1. Which of the following are irrational numbers❓

(a) $3^{1/3}$

(b) $(\sqrt{8}+\sqrt{2})(\sqrt{12}-\sqrt{3})$

(c) $\frac{\sqrt{18}-3}{\sqrt{2}-1}$

(d) $\frac{\sqrt{8}+\sqrt{2}}{\sqrt{8}-\sqrt{2}}$

Solution:

(a) $3^{1/3}$ is irrational as it cannot be written as a fraction $p/q$ with $p, q \in \mathbb{Z}, q \neq 0$.

(b) $(\sqrt{8}+\sqrt{2})(\sqrt{12}-\sqrt{3}) = (2\sqrt{2}+\sqrt{2})(2\sqrt{3}-\sqrt{3}) = 3\sqrt{2} \cdot \sqrt{3} = 3\sqrt{6}$, which is irrational.

(c) $\frac{\sqrt{18}-3}{\sqrt{2}-1} = \frac{3\sqrt{2}-3}{\sqrt{2}-1} = \frac{3(\sqrt{2}-1)}{\sqrt{2}-1} = 3$ (rational).

(d) $\frac{\sqrt{8}+\sqrt{2}}{\sqrt{8}-\sqrt{2}} = \frac{3\sqrt{2}}{\sqrt{2}} = 3$ (rational).

Answer: ✅ (a), (b)

2. Examples and Additional Solutions

Example (QL): Consider a table of materials and their dielectric constants:

MaterialDielectric constant
Air1
Vacuum2
Paper3
Glass8
Nerve7
Membrane7
Silicon13

Solution: Each material maps to a unique dielectric constant, so the function is bijective.

Q3

Given:

$A = {x \in \mathbb{N} \mid x \bmod 2 = 0 \text{ and } 1 \leq x \leq 10} = {2,4,6,8,10}$

$B = {x \in \mathbb{N} \mid x \bmod 5 = 0 \text{ and } 6 \leq x \leq 25} = {10,15,20,25}$

$C = {x \in \mathbb{N} \mid x \bmod 7 = 0 \text{ and } 7 \leq x \leq 29} = {7,14,21,28}$

Find $A \setminus (B \cup C)$, $B \setminus (A \cup C)$, $C \setminus (B \cup A)$.

Solution

Solution: $A \setminus (B \cup C) = {2,4,6,8}$ $B \setminus (A \cup C) = {15,20,25}$ $C \setminus (B \cup A) = {7,14,21,28}$ (note: likely a typo in the original for “2δ”, should be “28”)

Thus, $A \setminus (B \cup C) \cup B \setminus (A \cup C) \cup C \setminus (B \cup A) = {2,4,6,8,15,20,25,7,14,21,28}$ Cardinality: 11

Example (Q4): Total number of people = 180 Number who watched Dabang $N(D) = 95$ Number who watched Avatar and RRR $N(A \cup R) = 40$ Number who watched Dabang and RRR $N(D \cup R) = 55$ Let $x$ be the number who watched all three movies.

Answer

$$ (x-10) + (10+x) + (5+x) + (55-x) + (50-x) + x + (40-x) = 180 $$$$ x + 150 = 180 \implies x = 30 $$

Number who watched only RRR and Avatar = $40 - x = 10$


3. Numerical Answer Type (NAT)

Question 5: Suppose $f: D \longrightarrow \mathbb{R}$ is a function defined by $f(x) = \frac{\sqrt{x^2-9}}{x+3}$, where $D \subset \mathbb{Z}$. Let $A$ be the set of integers not in the domain of $f$. Find the cardinality of $A$.

Solution: Domain requires $x^2 - 9 \geq 0$ and $x+3 \neq 0$, so $x \notin {-3,-2,-1,0,1,2}$. Thus, $A = {-3,-2,-1,0,1,2}$; cardinality = 6.

Answer: 6

Question 6: Consider $S = {a \mid a \in \mathbb{N}, a \leq 18}$. Let $R_1 = {(x,y) \mid x, y \in S, y = 3x}$ Let $R_2 = {(x,y) \mid x, y \in S, y = x^2}$

Find the cardinality of $R_1 \setminus (R_1 \cap R_2)$.

Solution

$S = {0,1,2,\ldots,18}$

$R_1 = {(0,0),(1,3),(2,6),(3,9),(4,12),(5,15),(6,18)}$

$R_2 = {(0,0),(1,1),(2,4),(3,9),(4,16)}$

$R_1 \cap R_2 = {(0,0),(3,9)}$

$R_1 \setminus (R_1 \cap R_2) = {(1,3),(2,6),(4,12),(5,15),(6,18)}$

Answer: 5

Question 7: In a Zoo, there are 6 Bengal white tigers and 7 Bengal royal tigers. Out of these, 5 are males and 10 are either Bengal royal tigers or males. Find the number of female Bengal white tigers.

Solution: Let BW = Bengal White, BR = Bengal Royal, M = Male. $n(BR) = 7$, $n(M) = 5$, $n(BR \cup M) = 10$ Using inclusion-exclusion:

$$ n(BR \cup M) = n(BR) + n(M) - n(BR \cap M) $$$$ 10 = 7 + 5 - n(BR \cap M) \implies n(BR \cap M) = 2 $$

So, male Bengal Royal tigers = 2, male Bengal White tigers = 3 Female Bengal White tigers = 6 - 3 = 3

Answer: 3

4. Additional Examples and Incorrect Questions (Not for Marks)

Example (Q8): Define $R = {(A,B) \mid A \text{ and } B \text{ are cousins}}$, and $S = {(A,B) \mid A \text{ is son of } B}$.

Solution: (Not fully solved, but shows how relations are defined for family relationships.)

Example (Q9): Given $R(m)$ has cardinality $m = 8$, $S(n)$ has cardinality $n = 8$, so $m + n = 16$.

Example (Q10): Define $f = {(A,B) \mid A \text{ is son of } B}$ as a function from $P$ to $Q$.

Analysis:

  • Option 1: Not a function if some $L \in P$ has no image.
  • Option 2: Function, not injective (not one-one).
  • Option 3: Function, onto (every element in codomain has preimage).
  • Option 4: Bijective (both injective and surjective).

Summary Table

QuestionTypeSolution/Answer
1MSQ(a), (b)
QLEx.Bijective function example
Q3Ex.Cardinality = 11
Q4Ex.$x = 30$, only Avatar & RRR = 10
5NAT6
6NAT5
7NAT3
Q8-Q10Ex.Family relations and function examples