Mercer (positive definite kernels)¶
Some methods require that the kernel function satisfy the requirements that the Gram matrix:
Is positive definite for any set of inputs \(\{ x_i\}_{i=1}^N\). We call such a kernel a Mercer kernel of positive definite kernel.
Importance of this theorem is that, we can perform eigen value decomposition on the Gram matrix to get:
We can define \(\phi(x_i) = \Lambda^{1/2}U_{:,i}\) than:
Entries in the kernel matrix can be computed by performing an inner product of some feature vectors that are implicitly defined by the eigenvectors U.
In general if the kernel is Mercer, then there exists a function \(\phi\) mapping \(x \in \mathcal{X}\) to \(R^D\) such that:
\(\phi\) depends on the eigen functions of \(\mathcal{k}\) (so D is a potentially infinite dimension space).
In general, establishing that a kernel is a Mercer kernel is difficult, and requires techniques from functional analysis. However, one can show that it is possible to build up new Mercer kernels from simpler ones using a set of standard rules. For example if \(\mathcal{k_1}\) and \(\mathcal{k_2}\) are booth Mercer so is \(\mathcal{k}(x,x') = \mathcal{k}_1(x,x') + \mathcal{k}_2(x,x')\).