= Positive-semidefinite kernel
{title2=$k$}
= Positive-definite kernel
{synonym}
A real <positive-semidefinite kernel> on a <set> $X$ is a symmetric <function> $k:X\times X\to\mathbb R$ for which every finite choice $x_1,\ldots,x_n\in X$ and $c_1,\ldots,c_n\in\mathbb R$ satisfies
$$
\sum_{i,j=1}^n c_i c_j k(x_i,x_j)\geq0.
$$
Equivalently, each finite <kernel matrix> $K_{ij}=k(x_i,x_j)$ is a <positive semidefinite matrix>. This condition constrains whole collections of pairwise comparisons; individual entries need not be positive.
For example, the <linear kernel> $k(x,y)=x^Ty$ on a <Euclidean space> satisfies the condition because
$$
\sum_{i,j}c_ic_jx_i^Tx_j=\left\|\sum_i c_ix_i\right\|^2\geq0.
$$
The <Gaussian kernel> supplies a nonlinear example. A <feature map> represents any such <positive-semidefinite kernel> as an <inner product>, possibly in an <infinite-dimensional vector space>. This lets a <kernel method> use the geometry of that space through pairwise evaluations.<Gaussian Processes for Machine Learning by Carl Edward Rasmussen and Christopher K. I. Williams>[§6.1, definition 6.1 and theorem 6.1]{ref}
Back to article page