The sagemath cloud does the next line automatically. We repeat it only so you know what happened when you started this notebook.
We need some initial imports to "fix" things and to enable us to do linear algebra.
(5 points) Find the singular value decomposition of A and explain why they imply that A is not invertible
ANSWER: Since there is a zero eigenvalue of A, diagonal matrix Sigma doesn't have inverse matrix Therefore A doesn't have inverse (namely, not invertible)
(5 points) Use the singular value decomposition in exercise 1 to and the Moore-Penrose pseudo-inverse of A in exercise 1. Show that and
(5 points) Show that the matrix norm of A; which is given by linalg.norm(A,2), is equal to the largest singular value of A: What are the matrix norms of V and U in the singular value decomposition of A? Explain.
EXPLAIN: Sigma[0]== linalg.norm(A,2) since Sigma is a diagonal matrix containing the singular value of A on its diagonal. And it has descending order. Therefore, the first value, Sigma[0], is its largest value. The singular value of V and U is 1. Because both of them are Unitary, which means they are orthogonal. Orthogonal matrices are invertible square matrices, so their singular values are their eigenvalues. Their eigenvalues are complex numbers whose norm is 1.
(5 points) The Frobenius norm of a matrix is the sum of the squares of the entries in the matrix. Show for the matrix A in exercise 1 that the Frobenius norm is the square root of the sum of the squares of the singular values of A
(10 points) Calculate the singular value decomposition of B; calculate the pseudo inverse of B; and use the result to solve the equation
(10 points) The following matrix can be thought of as an image of a plus sign
(10 points) Use the singular value decomposition to Önd the least squares line for the data below
Create a column (vertically stacked) vector Y
Create a ( 10 rows by 2 columns ) matrix A in which x values are in the column and 1ís are in the 1 column.
The slope and intercept for the least squares line are estimated by
ANSWER: