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
12 exercises
Activity 7.1.2
Remember that the Sage command A.right_eigenmatrix() attempts to find a basis for consisting of eigenvectors of . In particular, the assignment D, P = A.right_eigenmatrix() provides a diagonal matrix constructed from the eigenvalues of with the columns of containing the associated eigenvectors.
For each of the following matrices, determine whether there is a basis for consisting of eigen…
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 consisting of eigenvectors.…
Activity 7.1.5
Let's return to the dataset from the previous activity in which we have demeaned data points: Our goal is to compute the variance in the direction defined by a unit vector .
To begin, form the demeaned data matrix and suppose that is a unit vector.
Write the vector in terms of the dot products .
Explain why .
Apply this proposition to explain why
In general, the matrix is called the covar…
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.
Exercise 2
Consider the matrix whose eigenvalues are , , and .
Explain why is orthogonally diagonalizable.
Find an orthonormal basis for the eigenspace .
Find a basis for the eigenspace .
Now find an orthonormal basis for .
Find matrices and such that .
Exercise 3
Find an orthogonal diagonalization, if one exists, for the following matrices.
.
.
.
Exercise 4
Suppose that is an matrix and that .
Explain why is orthogonally diagonalizable.
Explain why .
Suppose that is an eigenvector of with associated eigenvalue and that has unit length. Explain why .
Explain why the eigenvalues of are nonnegative.
If is the covariance matrix associated to a demeaned dataset, explain why the eigenvalues of are nonnegative.
Exercise 5
Suppose that you have the data points
Find the demeaned data points.
Find the total variance of the dataset.
Find the variance in the direction and the variance in the direction .
Project the demeaned data points onto the line defined by and find the variance of these projected points.
Project the demeaned data points onto the line defined by and find the variance of these projected points.
Ho…
Exercise 7
Suppose that is the covariance matrix of a demeaned dataset.
Suppose that is an eigenvector of with associated eigenvalue and that has unit length. Explain why .
Suppose that the covariance matrix of a demeaned dataset can be written as where What is ? What does this tell you about the demeaned data?
Explain why the total variance of a dataset equals the sum of the eigenvalues of the c…
Exercise 8
Determine whether the following statements are true or false and explain your thinking.
If is an invertible, orthogonally diagonalizable matrix, then so is .
If is an eigenvalue of , then cannot be orthogonally diagonalizable.
If there is a basis for consisting of eigenvectors of , then is orthogonally diagonalizable.
If and are eigenvectors of a symmetric matrix associated to eigenva…
Exercise 9
Suppose that is a noninvertible, symmetric matrix having eigenvectors and associated eigenvalues and . Find matrices and such that .
Exercise 10
Suppose that is a plane in and that is the matrix that projects vectors orthogonally onto .
Explain why is orthogonally diagonalizable.
What are the eigenvalues of ?
Explain the relationship between the eigenvectors of and the plane .
Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.