Centred 2-D data has covariance Σ=(5335). What is a whitening matrix W so that z=Wx has identity covariance? What is z for x=(2,0)⊤, and how do you check that ∥z∥2 equals the Mahalanobis distance of x?

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 Σ=UΛU⊤, then W=Λ−1/2U⊤ gives Cov(Wx)=WΣW⊤=I. First rotate onto the principal axes, then divide each axis by its standard deviation.

Steps

  1. Find eigenvalues: det⁡(Σ−λI)=(5−λ)2−9=0, so λ=8 and λ=2.
  2. Eigenvectors: for 8 it is (1,1)⊤/2, for 2 it is (1,−1)⊤/2. Stack them as the columns of U.
  3. Then W=Λ−1/2U⊤=(1/8001/2)12(111−1).
  4. Check: WΣW⊤=Λ−1/2U⊤UΛU⊤UΛ−1/2=I.
  5. For x=(2,0)⊤, first rotate: U⊤x=(2/2, 2/2)=(2,2). Then rescale: z=(2/8, 2/2)=(0.5, 1).
  6. Mahalanobis check. ∥z∥2=0.25+1=1.25. Also Σ−1=116(5−3−35), so x⊤Σ−1x=4⋅516=1.25. They agree, because z⊤z=x⊤W⊤Wx=x⊤Σ−1x.
  7. Note that W is not unique. RW for any rotation R also whitens, and the choice UΛ−1/2U⊤ is called ZCA whitening.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Read this

Previous in Unsupervised learning: For a clustering of data points x1,…,xN into clusters C1,…,CK with centroids μk 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 {1,2} and {6,7}?
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 m=5 and m=20 points, and what does one DIANA split give on the 1-D points 0,1,2,9,10 (absolute difference as dissimilarity)?