Kernel principal component analysis

In the field of multivariate statistics, kernel principal component analysis (kernel PCA)[1] is an extension of principal component analysis (PCA) using techniques of kernel methods.

Using a kernel, the originally linear operations of PCA are performed in a reproducing kernel Hilbert space.

Recall that conventional PCA operates on zero-centered data; that is, where

It operates by diagonalizing the covariance matrix, in other words, it gives an eigendecomposition of the covariance matrix: which can be rewritten as (See also: Covariance matrix as a linear operator) To understand the utility of kernel PCA, particularly for clustering, observe that, while N points cannot, in general, be linearly separated in

, if we map them to an N-dimensional space with it is easy to construct a hyperplane that divides the points into arbitrary clusters.

creates linearly independent vectors, so there is no covariance on which to perform eigendecomposition explicitly as we would in linear PCA.

function is 'chosen' that is never calculated explicitly, allowing the possibility to use very-high-dimensional

The dual form that arises in the creation of a kernel allows us to mathematically formulate a version of PCA in which we never actually solve the eigenvectors and eigenvalues of the covariance matrix in the

Because we are never working directly in the feature space, the kernel-formulation of PCA is restricted in that it computes not the principal components themselves, but the projections of our data onto those components.

To evaluate the projection from a point in the feature space

(where superscript k means the component k, not powers of k) We note that

denotes dot product, which is simply the elements of the kernel

Since centered data is required to perform an effective principal component analysis, we 'centralize'

denotes a N-by-N matrix for which each element takes value

In linear PCA, we can use the eigenvalues to rank the eigenvectors based on how much of the variation of the data is captured by each principal component.

This is useful for data dimensionality reduction and it could also be applied to KPCA.

This is typically caused by a wrong choice of kernel scale.

Since even this method may yield a relatively large K, it is common to compute only the top P eigenvalues and eigenvectors of the eigenvalues are calculated in this way.

Consider three concentric clouds of points (shown); we wish to use kernel PCA to identify these groups.

The color of the points does not represent information involved in the algorithm, but only shows how the transformation relocates the data points.

Now consider a Gaussian kernel: That is, this kernel is a measure of closeness, equal to 1 when the points coincide and equal to 0 at infinity.

Note in particular that the first principal component is enough to distinguish the three different groups, which is impossible using only linear PCA, because linear PCA operates only in the given (in this case two-dimensional) space, in which these concentric point clouds are not linearly separable.

Kernel PCA has been demonstrated to be useful for novelty detection[3] and image de-noising.

Input points before kernel PCA
Output after kernel PCA with . The three groups are distinguishable using the first component only.
Output after kernel PCA, with a Gaussian kernel.