How can the principal components in a feature space be found by solving an eigenvalue problem for the kernel matrix , with ? How are the coefficients normalised, how is centred, and how is a new point projected?
Unsupervised learning, Dimensionality reduction
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can write feature-space eigenvectors as combinations of the mapped data points and reduce every step to kernel values.
Key idea
An eigenvector of the feature-space covariance with eigenvalue is a combination of the mapped points, . Substituting gives . Making requires , i.e. . A new point projects to , using a centred kernel.
Steps
- Assume for now that the mapped points have mean zero, ; centring is handled below. From we get . The brackets are numbers, so is a combination of the : . This matters because may be huge, but has only entries.
- Substitute into and take the inner product with each , so that only kernel values appear: for every . In matrix form, . For components with it is enough to solve .
- Normalise: , and this must equal 1. So if has eigenvalue with unit-length eigenvector , use .
- Centre the kernel. We cannot subtract the mean of directly, but the kernel matrix of the centred features is , where is the matrix with every entry . Use in place of throughout.
- Project a new point: its coordinate along is , where is centred using the training means. Only kernel evaluations are needed, never itself.
- Add an example of why it is useful: with the RBF kernel , kernel PCA can turn data such as two concentric rings into components that separate them, which linear PCA cannot do.
Common mistakes
- Forgetting to centre . The first component then mostly captures the mean of the mapped data.
- Scaling to unit length instead of making .
- Claiming you can easily map a component back to input space. Finding such a pre-image is a separate, hard problem.
How long your answer should be
About a page; 6–8 minutes.
Last checked on 4 December 2026.
Read this
- Bishop, Pattern Recognition and Machine Learning (PRML): Free PDF. Section 12.3 (Kernel PCA), pp. 586-590: eigenvector in the span of the phi(x_n), the eigenproblem K a = lambda N a, normalisation of a_i, the centred Gram matrix K~ = K - 1_N K - K 1_N + 1_N K 1_N (12.85), and projection of new points.
- scikit-learn example: Kernel PCA: Concentric circles that linear PCA cannot separate become linearly separable along the first RBF kernel-PCA component; also shows the approximate pre-image reconstruction.
Previous in Unsupervised learning: How is k-means a limiting case of EM for a Gaussian mixture model, and what assumptions about the clusters does this reveal?
Next in Unsupervised learning: A linear autoencoder with a -dimensional bottleneck, encoder and decoder , is trained with squared reconstruction error on centred data. How does its solution relate to PCA, and what changes with a nonlinear autoencoder?