9.208 min read
Principal Coordinates from Gram Matrix
The Gram matrix has spectral decomposition with eigenvalues . Principal coordinates can be recovered directly: columns of give the scores. This requires only pairwise inner products , not raw data vectors.
This is the key insight behind kernel PCA: replace with for a kernel function to get non-linear principal coordinates.
Formal View
Theorem 9.7 — Principal Coordinates from Gram
Let . Principal coordinates: columns of .
Kernel PCA uses instead of .
Interactive Visualization
Matrix Product — Column Perspective
Why This Matters
Gram-matrix PCA enables kernel PCA and non-linear dimensionality reduction.
- Kernel PCA: non-linear principal coordinates via kernel functions.
- When : only the Gram matrix is needed.
- Metric embeddings: recover coordinates from pairwise inner products.
Quiz
Question 1
Principal coordinates can be computed from without knowing the raw data vectors .
Question 2
Kernel PCA replaces with:
Common Mistakes
- Forgetting to center the Gram matrix before kernel PCA.
- Confusing (Gram) with (covariance).