Principal Component Analysis
Collapsing a high-dimensional dataset onto the few directions that carry most of its variance, so it can finally be plotted and interpreted.
5 exercises
Activity 7.3.2
Suppose that we work with a dataset having 100 five-dimensional data points. The demeaned data matrix is therefore and leads to the covariance matrix , which is a matrix. Because is symmetric, the Spectral Theorem tells us it is orthogonally diagonalizable so suppose that where
What is , the variance in the direction?
Find the variance of the data projected onto the line defined by .…
Exercise 1
Suppose that and that we have two datasets, one whose covariance matrix is and one whose covariance matrix is . For each dataset, find
the total variance.
the fraction of variance represented by the first principal component.
a verbal description of how the demeaned data points appear when plotted in the plane.
Exercise 2
Suppose that a dataset has mean and that its associated covariance matrix is .
What fraction of the variance is represented by the first two principal components?
If is one of the data points, find the coordinates when the demeaned point is projected into the plane defined by the first two principal components.
If a projected data point has coordinates , find an estimate for the original data p…
Exercise 4
Determine whether the following statements are true or false and explain your thinking.
If the eigenvalues of the covariance matrix are , , and , then is the variance of the demeaned data points when projected on the third principal component .
Principal component analysis always allows us to construct a smaller dimensional representation of a dataset without losing any information.
If the eige…
Exercise 5
In this activity, we looked at a dataset consisting of four measurements of 150 irises. These measurements are sepal length, sepal width, petal length, and petal width.
Find the first principal component and describe the meaning of its four components. Which component is most significant? What can you say about the relative importance of the four measurements?
When the dataset is plotted in the pl…
Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.