Centred 2-D data has covariance . What is a whitening matrix so that has identity covariance? What is for , and how do you check that equals the Mahalanobis distance of ?
Unsupervised learning, Dimensionality reduction
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can use the eigendecomposition of the covariance to decorrelate and rescale data.
Key idea
If , then gives . First rotate onto the principal axes, then divide each axis by its standard deviation.
Steps
- Find eigenvalues: , so and .
- Eigenvectors: for 8 it is , for 2 it is . Stack them as the columns of .
- Then .
- Check: .
- For , first rotate: . Then rescale: .
- Mahalanobis check. . Also , so . They agree, because .
- Note that is not unique. for any rotation also whitens, and the choice is called ZCA whitening.
Common mistakes
- Dividing by the eigenvalues instead of their square roots. That would give variance , not 1.
- Skipping the rotation and just dividing each feature by its own standard deviation. That does not remove the correlation 3.
- Mixing up the order. rotates first, then scales.
- Forgetting to centre the data before whitening.
How long your answer should be
Half a page; 4 minutes.
Read this
Previous in Unsupervised learning: For a clustering of data points into clusters with centroids and overall mean , prove that total scatter = within-cluster scatter + between-cluster scatter. Why does this show that minimising k-means cost is the same as maximising between-cluster scatter? How do you check it on the 1-D clusters and ?
Next in Unsupervised learning: Why can exact divisive (top-down) clustering not simply try every possible split of a cluster, and how does DIANA's splinter-group heuristic get around this? How many splits exist for and points, and what does one DIANA split give on the 1-D points (absolute difference as dissimilarity)?