Back to Understanding Linear Algebra

Symmetric matrices and variance

Matrices equal to their own transpose, orthogonally diagonalized by the Spectral Theorem, and the covariance matrix that records a dataset's variance.

Understanding Linear Algebra, Symmetric matrices and variance

Status
FlagsLoading your progress…

12 exercises

Activity 7.1.2

Remember that the Sage command A.right_eigenmatrix() attempts to find a basis for Rm\real^m consisting of eigenvectors of AA. In particular, the assignment D, P = A.right_eigenmatrix() provides a diagonal matrix DD constructed from the eigenvalues of AA with the columns of PP containing the associated eigenvectors.

  1. For each of the following matrices, determine whether there is a basis for R2\real^2 consisting of eigen…

2.5

Activity 7.1.3

Each of the following matrices is symmetric so the Spectral Theorem tells us that each is orthogonally diagonalizable. The point of this activity is to find an orthogonal diagonalization for each matrix.

To begin, find a basis for each eigenspace. Use this basis to find an orthogonal basis for each eigenspace and put these bases together to find an orthogonal basis for Rm\real^m consisting of eigenvectors.…

2.5

Activity 7.1.5

2.5

Exercise 1

For each of the following matrices, find the eigenvalues and a basis for each eigenspace. Determine whether the matrix is diagonalizable and, if so, find a diagonalization. Determine whether the matrix is orthogonally diagonalizable and, if so, find an orthogonal diagonalization.

  1. [51−13]\begin{bmatrix} 5 & 1 \\ -1 & 3 \\ \end{bmatrix}

  2. [0110]\begin{bmatrix} 0 & 1 \\ 1 & 0 \\ \end{bmatrix}

  3. [1002−20014]\begin{bmatrix} 1 & 0 & 0 \\ 2 & -2 & 0 \\ 0 & 1 & 4 \\ \end{bmatrix}

  4. [25−45−75−452]\begin{bmatrix} 2 & 5 & -4\\ 5 & -7 & 5 \\ -4 & 5 & 2 \\ \end{bmatrix}

2.5

Exercise 2

Consider the matrix A=[122212221]A = \begin{bmatrix} 1 & 2 & 2 \\ 2 & 1 & 2 \\ 2 & 2 & 1 \\ \end{bmatrix} whose eigenvalues are λ1=5\lambda_1=5, λ2=−1\lambda_2=-1, and λ3=−1\lambda_3 = -1.

  1. Explain why AA is orthogonally diagonalizable.

  2. Find an orthonormal basis for the eigenspace E5E_5.

  3. Find a basis for the eigenspace E−1E_{-1}.

  4. Now find an orthonormal basis for E−1E_{-1}.

  5. Find matrices DD and QQ such that A=QDQTA=QDQ^T.

2.5

Exercise 3

Find an orthogonal diagonalization, if one exists, for the following matrices.

  1. [114124−3−1612−161]\begin{bmatrix} 11 & 4 & 12 \\ 4 & -3 & -16 \\ 12 & -16 & 1 \end{bmatrix}.

  2. [102012−2−21]\begin{bmatrix} 1 & 0 & 2 \\ 0 & 1 & 2 \\ -2 & -2 & 1 \\ \end{bmatrix}.

  3. [9333393333933339]\begin{bmatrix} 9 & 3 & 3 & 3\\ 3 & 9 & 3 & 3\\ 3 & 3 & 9 & 3\\ 3 & 3 & 3 & 9\\ \end{bmatrix}.

2.5

Exercise 4

Suppose that AA is an m×nm\times n matrix and that B=ATAB=A^TA.

  1. Explain why BB is orthogonally diagonalizable.

  2. Explain why v⋅(Bv)=∣Av∣2\vvec\cdot(B\vvec) = \len{A\vvec}^2.

  3. Suppose that u\uvec is an eigenvector of BB with associated eigenvalue λ\lambda and that u\uvec has unit length. Explain why λ=∣Au∣2\lambda = \len{A\uvec}^2.

  4. Explain why the eigenvalues of BB are nonnegative.

  5. If CC is the covariance matrix associated to a demeaned dataset, explain why the eigenvalues of CC are nonnegative.

2.5

Exercise 5

Suppose that you have the data points

  1. Find the demeaned data points.

  2. Find the total variance VV of the dataset.

  3. Find the variance in the direction e1=[10]\evec_1 = \twovec10 and the variance in the direction e2=[01]\evec_2=\twovec01.

  4. Project the demeaned data points onto the line defined by v1=[21]\vvec_1=\twovec21 and find the variance of these projected points.

  5. Project the demeaned data points onto the line defined by v2=[1−2]\vvec_2=\twovec1{-2} and find the variance of these projected points.

  6. Ho…

2.5

Exercise 7

Suppose that CC is the covariance matrix of a demeaned dataset.

  1. Suppose that u\uvec is an eigenvector of CC with associated eigenvalue λ\lambda and that u\uvec has unit length. Explain why Vu=λV_{\uvec} = \lambda.

  2. Suppose that the covariance matrix of a demeaned dataset can be written as C=QDQTC=QDQ^T where What is Vu2V_{\uvec_2}? What does this tell you about the demeaned data?

  3. Explain why the total variance of a dataset equals the sum of the eigenvalues of the c…

2.5

Exercise 8

Determine whether the following statements are true or false and explain your thinking.

  1. If AA is an invertible, orthogonally diagonalizable matrix, then so is A−1A^{-1}.

  2. If λ=2+i\lambda=2+i is an eigenvalue of AA, then AA cannot be orthogonally diagonalizable.

  3. If there is a basis for Rm\real^m consisting of eigenvectors of AA, then AA is orthogonally diagonalizable.

  4. If u\uvec and v\vvec are eigenvectors of a symmetric matrix associated to eigenva…

2.5

Exercise 9

Suppose that AA is a noninvertible, symmetric 3×33\times3 matrix having eigenvectors and associated eigenvalues λ1=20\lambda_1 = 20 and λ2=−4\lambda_2 = -4. Find matrices QQ and DD such that A=QDQTA = QDQ^T.

2.5

Exercise 10

Suppose that WW is a plane in R3\real^3 and that PP is the 3×33\times3 matrix that projects vectors orthogonally onto WW.

  1. Explain why PP is orthogonally diagonalizable.

  2. What are the eigenvalues of PP?

  3. Explain the relationship between the eigenvectors of PP and the plane WW.

2.5

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.