Three points have pairwise distances d12=3, d23=4 and d13=7. Use classical multidimensional scaling (MDS) with double centring to find the matrix B and the 1-D embedding. Why is one dimension enough?

Unsupervised learning, Multidimensional scaling
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can carry out classical MDS: square the distances, double-centre them, and eigendecompose.

Key idea

Classical MDS forms B=−12JD(2)J with J=I−1n11⊤; if B=XX⊤ for centred coordinates X, then the top eigenpairs of B give X=VΛ1/2.

Steps

  1. Square the distances: D(2)=[0949901649160].
  2. Row means: (58/3, 25/3, 65/3). Grand mean: 148/9.
  3. Double centring: bij=−12(dij2−rˉi−rˉj+gˉ). For example b11=−12(0−116/3+148/9)=100/9≈11.11 and b12=−12(9−83/3+148/9)=10/9≈1.11.
  4. Because 3+4=7, the points are collinear, so B has rank 1 with one non-zero eigenvalue equal to tr⁡B=100/9+1/9+121/9=222/9≈24.67.
  5. The coordinates are the centred positions on the line: x=(−10/3, −1/3, 11/3), up to a sign. Check: x12=100/9=b11 and x1x2=10/9=b12.
  6. One dimension suffices because the triangle inequality holds with equality: d13=d12+d23. The other eigenvalues of B are zero.

Common mistakes

How long your answer should be

Half a page; 5 minutes.

Read this

Previous in Unsupervised learning: The gap statistic compares log⁡Wk (the log within-cluster dispersion) with its expectation under a reference null with no cluster structure. For k=1,…,5 suppose log⁡Wk=5.00, 4.20, 3.90, 3.75, 3.70, the reference expectations are 5.40, 4.75, 4.48, 4.20, 3.95, and all sk=0.05. Compute the gaps and choose k by the standard "one standard error" rule. Why not pick the k with the largest gap?
Next in Unsupervised learning: How do you show that the directions of maximum variance also minimise the squared reconstruction error of PCA? How do you derive the error for k components in terms of the eigenvalues of the covariance matrix?