본문 바로가기

Coursera/Mathematics for ML and Data Science

Linear Algebra for Machine Learning and Data Science (6)

728x90

Solving systems of linear equations

Quiz

Q1

Solve the following system of equations using the method of elimination and select the correct answer.

$$ \begin{cases} x + y = 4 \\ -6x + 2y = 16 \end{cases} $$

Choice

더보기

1. x = 0, y = 0.

2. The system has no solution.

3. The system has infinitely many solutions.

4. x = 1, y = 3.

5. x = −1, y = 5.

Answer

더보기

5

The solution for the system of equations is a unique point at x=−1, y=5

Q2

Calculate the determinant of the following matrix and determine if it is singular or non-singular:

$$ A = \left[\begin{array}{cc}4 & -3 \\7 & -8\end{array}\right] $$

Choice

더보기

1. det(A)=−53. The matrix is singular.

2. det(A)=−53. The matrix is non-singular.

3. det(A)=−11. The matrix is singular.

4. det(A)=−11. The matrix is non-singular.

Answer

더보기

4

You can compute the determinant of a two-by-two matrix using the formula $ad - bc$, as explained in the video: “Singular vs Non-singular Matrices".

Q3

Calculate the determinant of the following matrix and determine if it is singular or non-singular:

$$ \left[\begin{array}{ccc} -3&8&1\\ 2&2&-1\\ -5&6&2 \end{array}\right] $$

Choice

더보기

1. -80. Non-singular

2. 0. Singular

3. -20. Non-singular

4. 36. Non-singular

5. 0. Non-singular

Answer

더보기

2

As explained in the video "The determinant (3x3)", you managed to compute the determinant of the matrix correctly. If the determinant is zero, then the matrix is singular.

Q4

Determine if the provided matrix has linearly dependent or independent rows (a,b,c,d,e,f are real numbers):

$$ \left[\begin{array}{ccc} a&b&c\\ d&e&f\\ 2a-d&2b-e&2c-f \end{array}\right] $$

Hint: Can one row in the matrix be obtained as a result of operations on the other rows?

Choice

더보기

1. Independent

2. It cannot be determined

3. Dependent

Answer

더보기

3

Row 3 can be obtained by adding $(2⋅ \text{row} 1)+(−1⋅ \text{row} 2)$.

Q5

Which of the following operations, when applied to the rows of the matrix, do not change the singularity (or non-singularity) of the matrix:

Choice

더보기

1. Adding a nonzero fixed value to every entry of the row.

2. Switching rows.

3. Adding one row to another one.

4. Multiplying a row by a nonzero scalar.

Hint

더보기

Operation 1 can change the singularity of the matrix. For example, the matrix $\left[\begin{array}{cc}0 & 0 \\2 & 3\end{array}\right]$ is singular, which can be determined by calculating that its determinant is 0. If you added 1 to both entries in the first row, creating the matrix $\left[\begin{array}{cc}1 & 1 \\2 & 3\end{array}\right]$ the determinant would become 1, and the matrix would be non-singular. You might want to review the lecture on "Row operations that preserve singularity".

Answer

더보기

2

Switching rows is equivalent to switching equations in a system of equations, thus it won't change its singularity.

3

Adding two rows is equivalent to adding two equations in a system of equations, so it won't change the matrix singularity.

4

Multiplying a row by a nonzero scalar is equivalent to scaling a whole equation, so it does not change the matrix singularity.

Q6

In the following matrix:

$$ \left[\begin{array}{cc}x & x \\y & z\end{array}\right] $$

x, y, and z are non-zero real numbers. If the matrix is non-singular, which of the following must be true:

Choice

더보기
  1. $z=y$.
  2. $x=y$ only if $z\ne x$.
  3. $z=x$ only if $x=y$.

Answer

더보기

2

The matrix determinant is given by $xz−xy$ in this case. Knowing the matrix is

non-singular, its determinant is different from zero so if $x=y$, then $z$ cannot be equal to $x$, otherwise the determinant would be zero.

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

728x90