HOME

TheInfoList



OR:

In the field of
multivariate statistics Multivariate statistics is a subdivision of statistics encompassing the simultaneous observation and analysis of more than one outcome variable, i.e., '' multivariate random variables''. Multivariate statistics concerns understanding the differ ...
, kernel principal component analysis (kernel PCA) is an extension of
principal component analysis Principal component analysis (PCA) is a linear dimensionality reduction technique with applications in exploratory data analysis, visualization and data preprocessing. The data is linearly transformed onto a new coordinate system such that th ...
(PCA) using techniques of
kernel methods In machine learning, kernel machines are a class of algorithms for pattern analysis, whose best known member is the support-vector machine (SVM). These methods involve using linear classifiers to solve nonlinear problems. The general task of pa ...
. Using a kernel, the originally linear operations of PCA are performed in a
reproducing kernel Hilbert space In functional analysis, a reproducing kernel Hilbert space (RKHS) is a Hilbert space of functions in which point evaluation is a continuous linear functional. Specifically, a Hilbert space H of functions from a set X (to \mathbb or \mathbb) is ...
.


Background: Linear PCA

Recall that conventional PCA operates on zero-centered data; that is, :\frac\sum_^N \mathbf_i = \mathbf, where \mathbf_i is one of the N multivariate observations. It operates by diagonalizing the covariance matrix, :C=\frac\sum_^N \mathbf_i\mathbf_i^\top in other words, it gives an eigendecomposition of the covariance matrix: :\lambda \mathbf=C\mathbf which can be rewritten as :\lambda \mathbf_i^\top \mathbf=\mathbf_i^\top C\mathbf \quad \textrm~i=1,\ldots,N. (See also: Covariance matrix as a linear operator)


Introduction of the Kernel to PCA

To understand the utility of kernel PCA, particularly for clustering, observe that, while ''N'' points cannot, in general, be linearly separated in d < N dimensions, they can almost always be linearly separated in d \geq N dimensions. That is, given ''N'' points, \mathbf_i, if we map them to an ''N''-dimensional space with :\Phi(\mathbf_i) where \Phi : \mathbb^d \to \mathbb^N, it is easy to construct a
hyperplane In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
that divides the points into arbitrary clusters. Of course, this \Phi creates linearly independent vectors, so there is no covariance on which to perform eigendecomposition ''explicitly'' as we would in linear PCA. Instead, in kernel PCA, a non-trivial, arbitrary \Phi function is 'chosen' that is never calculated explicitly, allowing the possibility to use very-high-dimensional \Phi's if we never have to actually evaluate the data in that space. Since we generally try to avoid working in the \Phi-space, which we will call the 'feature space', we can create the N-by-N kernel :K = k(\mathbf,\mathbf) = (\Phi(\mathbf),\Phi(\mathbf)) = \Phi(\mathbf)^T\Phi(\mathbf) which represents the inner product space (see Gramian matrix) of the otherwise intractable feature space. 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 \Phi(\mathbf)-space (see Kernel trick). The N-elements in each column of ''K'' represent the
dot product In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
of one point of the transformed data with respect to all the transformed points (N points). Some well-known kernels are shown in the example below. 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 \Phi(\mathbf) onto the kth principal component V^k (where superscript k means the component k, not powers of k) :^T\Phi(\mathbf) =\left(\sum_^N \mathbf^k_i\Phi(\mathbf_i)\right)^T\Phi(\mathbf) We note that \Phi(\mathbf_i)^T\Phi(\mathbf) denotes dot product, which is simply the elements of the kernel K. It seems all that's left is to calculate and normalize the \mathbf_i^k, which can be done by solving the eigenvector equation :N \lambda\mathbf =K\mathbf where N is the number of data points in the set, and \lambda and \mathbf are the eigenvalues and eigenvectors of K. Then to normalize the eigenvectors \mathbf^k, we require that :1 = (V^k)^T V^k Care must be taken regarding the fact that, whether or not x has zero-mean in its original space, it is not guaranteed to be centered in the feature space (which we never compute explicitly). Since centered data is required to perform an effective principal component analysis, we '
centralize Centralisation or centralization (American English) is the process by which the activities of an organisation, particularly those regarding planning, decision-making, and framing strategies and policies, become concentrated within a particular ...
' K to become K' :K' = K - \mathbf K - K \mathbf + \mathbf K \mathbf where \mathbf denotes a N-by-N matrix for which each element takes value 1/N. We use K' to perform the kernel PCA algorithm described above. One caveat of kernel PCA should be illustrated here. 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. However, in practice there are cases that all variations of the data are same. This is typically caused by a wrong choice of kernel scale.


Large datasets

In practice, a large data set leads to a large K, and storing K may become a problem. One way to deal with this is to perform clustering on the dataset, and populate the kernel with the means of those clusters. 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.


Example

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. First, consider the kernel : k(\boldsymbol,\boldsymbol) = (\boldsymbol^\mathrm\boldsymbol + 1)^2 Applying this to kernel PCA yields the next image. Now consider a Gaussian kernel: : k(\boldsymbol,\boldsymbol) = e^\frac, 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.


Applications

Kernel PCA has been demonstrated to be useful for novelty detection and image de-noising.Kernel PCA and De-Noising in Feature Spaces. NIPS, 1999
/ref>


See also

*
Cluster analysis Cluster analysis or clustering is the data analyzing technique in which task of grouping a set of objects in such a way that objects in the same group (called a cluster) are more Similarity measure, similar (in some specific sense defined by the ...
*
Nonlinear dimensionality reduction Nonlinear dimensionality reduction, also known as manifold learning, is any of various related techniques that aim to project high-dimensional data, potentially existing across non-linear manifolds which cannot be adequately captured by linear de ...
*
Spectral clustering In multivariate statistics, spectral clustering techniques make use of the spectrum (eigenvalues) of the similarity matrix of the data to perform dimensionality reduction before clustering in fewer dimensions. The similarity matrix is provided ...


References

{{DEFAULTSORT:Kernel Principal Component Analysis Dimension reduction Signal processing Machine learning algorithms Kernel methods for machine learning sv:Principalkomponentanalys#Olinjär PCA