본문 바로가기
Coursera/Mathematics for ML and Data Science

Linear Algebra for Machine Learning and Data Science (10)

by Fresh Red 2024. 5. 6.
728x90
반응형

Vectors and Linear Transformations

Quiz

Q1

Which of the following options is true for a vector?

Choice

더보기
  1. A vector has a shape and weight.
  2. A vector has only a magnitude.
  3. A vector has only direction.
  4. A vector has a magnitude and direction.

Answer

Q2

Compute the sum of the vectors $\vec u$ and $\vec v$.

Hint: The sum vector is the diagonal in a parallelogram formed by the two vectors, $\vec u = (1,3)$ and $\vec v = (6, 2)$

Choice

더보기
  1. $\vec u + \vec v = (7,5)$
  2. $\vec u + \vec v = 20$
  3. $\vec u + \vec v = 3$
  4. $\vec u + \vec v = (6,3)$

Answer

더보기

1

Correct! $\vec u + \vec v = ((1 + 6), (3+2))$

Q3

Using the image from question 2, compute the difference of the vectors $\vec u$ and $\vec v$.

Choice

더보기
  1. $\vec u - \vec v = (5,1)$
  2. $\vec u - \vec v = (-1,5)$
  3. $\vec u - \vec v = 3$
  4. $\vec u - \vec v = (-5,1)$

Answer

더보기

4

Correct! $\vec u - \vec v = ((1 - 6), (3-2))$

Q4

Calculate the dot product of the given vectors $\vec a \cdot \vec b$ and select the correct answer.

$$ \vec a = \left[ \begin{array}{c}-1 \\ 5 \\2 \end{array} \right], \,\,\vec b = \left[ \begin{array}{c}-3\\6\\-4 \end{array} \right] $$

Choice

더보기
  1. $\left[ \begin{array}{c}-3 \\ 30 \\-8 \end{array} \right]$
  2. 30
  3. 25
  4. $\left[ \begin{array}{c}1\\0\\1 \end{array} \right]$

Answer

더보기

3

Correct! By applying the formula you saw in the video "The dot product" as follows:

$\vec a \cdot \vec b = a_1 \cdot b_1 + a_2 \cdot b_2 + a_3 \cdot b_3$, you have:

$\vec a \cdot \vec b = (-1)\cdot(-3) + 5\cdot 6 + 2\cdot (-4) = 3 + 30 - 8 = 25$

Q5

Which of the following is true, if $\vec a \cdot \vec a = 0$ and $\vec a \cdot \vec b = 0$?

Choice

더보기
  1. $\vec a = 0, \vec b = 0$
  2. $\vec a \cdot \vec a = 1$
  3. $\vec a = 0, \vec b=$ any vector
  4. $\vec a \ne 0, \vec b =0$

Answer

더보기

3

Correct! Since $\vec a$ is set to 0 by definition in the problem, then $\vec a$ cannot be any vector, but 0, leaving the vector $\vec b$ to be any vector. Even if $\vec b$ is a vector different than 0, the dot product of $\vec a$ and $\vec b$ is 0, fulfilling both conditions in the problem.

Q6

Which of the following is the correct representative system of equation for the given dot product:

The image above represents the following:

$$ \left[ \begin{array}{ccc}3&5&1 \end{array}\right] \cdot \left[ \begin{array}{c}x\\y\\z \end{array}\right] = 10 \\ \left[ \begin{array}{ccc}7&-2&4 \end{array}\right] \cdot \left[ \begin{array}{c}x\\y\\z \end{array}\right] = 2 \\ \left[ \begin{array}{ccc}-6&3&2 \end{array}\right] \cdot \left[ \begin{array}{c}x\\y\\z \end{array}\right] = 15 $$

Choice

더보기

1

$$ \left\{\begin{aligned}3x + 5y + z & =2 \\7x -2y + 4z & =1 \\-6x + 3y + 2z&=20\end{aligned}\right. $$

2

$$ \left\{\begin{aligned}3x + 5y + z & =10 \\7x -2y + 4z & =2 \\-6x + 3y + 2z&=5\end{aligned}\right. $$

3

$$ \left\{\begin{aligned}3x + -2y + 4z & =10 \\7x -2y + 4z & =2 \\-6x + 3y + 2z&=5\end{aligned}\right. $$

Answer

더보기

2

Correct!

The first element (3) gets multiplied with the first element of the vector (x), the second element (5) gets multiplied with the second element of the vector (y), and the third element (1) gets multiplied with the third element of the vector (z). This will form the first equation which is equal to 10 in the system of equations. Apply the same for the remaining elements to form the two other equations.

All the information here is based on the Linear Algebra for Machine Learning and Data Science | Coursera from DeepLearning.AI

728x90
반응형

home top bottom
}