Regard each centered random variable as a vector in the Hilbert space . Then
so is the Gaussian kernel on the finite subset of that Hilbert space. More explicitly,
Every power of the inner-product kernel is positive semidefinite, and the closure property of positive-semidefinite kernels under nonnegative sums, pointwise limits, and multiplication by one-variable factors proves that is positive definite.
The kernel trick replaces inner products by evaluations of a positive-semidefinite kernel without explicitly constructing the feature vectors. In the corresponding reproducing-kernel Hilbert space, the hard-margin problem is
Equivalently, its dual is
There is no upper bound because this is the hard-margin, rather than soft-margin, problem.
The Gamma integral gives
For each , the last factor is a Gaussian kernel, and the remaining weight is nonnegative. The diagonal integral equals , so part ii shows that the displayed function is a positive-semidefinite kernel.
Every principal submatrix of a kernel matrix is positive semidefinite, so
The Cauchy-Schwarz inequality for integrals therefore gives
Thus every entry of is well defined. For any finite coefficients and points , linearity of the integral gives
because the integrand is nonnegative. Hence is a positive-semidefinite kernel. This proves the integral closure of positive-semidefinite kernels.
Let be independent standard Cauchy random variables. Their characteristic functions and independence give
Taking real parts yields
For each realization of , both products are rank-one positive-semidefinite kernels. Their sum and then their expectation remain positive semidefinite by the closure property of positive-semidefinite kernels. This is a Random Fourier feature representation of the Laplace kernel.
For points and coefficients ,
The bound ensures that this expected value is finite. Symmetry is immediate, so an expected outer product of a random feature map always defines a positive-semidefinite kernel.
A positive-semidefinite kernel on a nonempty set is a symmetric function such that, for every , every , and every ,
Equivalently, every finite kernel matrix is a positive semidefinite matrix.
Kernel principal component analysis diagonalizes the centered by kernel matrix instead of an explicit covariance operator in a possibly infinite-dimensional feature space. A new point has coordinate
so the leading coordinates require only evaluations of the positive-semidefinite kernel.
Running the K-nearest neighbors algorithm in a truncated collection of these coordinates can remove low-variance noise, reduce effective dimension, and allow a nonlinear boundary in the original covariates. This is the kernel trick: every feature-space inner product needed for fitting and projection is replaced by without constructing explicitly.
A symmetric function is a positive-semidefinite kernel when, for every , every , and every ,
Equivalently, every associated kernel matrix is a positive semidefinite matrix.
A Reproducing kernel Hilbert space on is a Hilbert space of real-valued functions such that every point-evaluation map is continuous. The Riesz representation theorem then gives a function satisfying the reproducing property
Its reproducing kernel is .
For , the Laplace transform identity
exhibits as an inner product of the feature functions in . More explicitly, for any real and positive ,
Therefore is a positive-semidefinite kernel.
A real positive-semidefinite kernel is a symmetric function such that every finite Gram matrix is positive semidefinite. The representer theorem says that any minimizer in a Reproducing kernel Hilbert space of an objective depending on only through and a strictly increasing function of lies in
Indeed, write relative to this span. The reproducing property gives for every , while the Pythagorean theorem in an inner-product space gives . Removing a nonzero perpendicular component preserves all data values and strictly decreases the penalty, proving the theorem.
Apply this decomposition to both optimizers and write and . If and are the two Gram matrices, then
Writing and , with pseudoinverses on the respective ranges, turns the supremum into
A real positive-semidefinite kernel is a symmetric function such that every finite Gram matrix is positive semidefinite. The Moore-Aronszajn theorem says that there are a Hilbert space and a feature map such that
Equivalently, can be chosen as the unique Reproducing kernel Hilbert space with reproducing kernel .
Let be the standard orthonormal basis of and define
Then
Thus is a positive-semidefinite kernel.
A zero-mean Gaussian process need not have zero average in each realization. For the periodic covariance function, the constant Fourier component is
where is a modified Bessel function. Replacing by gives a Gaussian process with kernel . This is a positive-semidefinite kernel because it is a covariance after a linear transformation, and each sample has zero period average. The real integral representation of the modified Bessel function I0 yields the displayed constant.
Polynomial kernel 2026-10-14
For , a polynomial kernel is the positive-semidefinite kernel , where is a positive integer and . The case uses monomials of total degree ; also includes lower degrees. The feature map weights matter: listing each distinct monomial once with coefficient one generally gives a different inner product.[ref]
For the homogeneous quadratic case in two dimensions, take the scaled quadratic feature map
The inner product identity is explicit:
The factor accounts for the two equal cross terms in the square. Thus an inner product of three derived coordinates can be obtained from an inner product of the two input coordinates followed by squaring. The kernel trick uses this equality inside an algorithm; the feature map explains which nonlinear functions the algorithm can represent.
Product of positive-semidefinite kernels Created 2026-09-24 Updated 2026-09-28
The pointwise product of two positive-semidefinite kernels is positive semidefinite because its finite kernel matrix is the entrywise product of two positive-semidefinite matrices, to which the Schur product theorem applies.
Random Fourier features Created 2026-09-28 Updated 2026-10-03
Random Fourier features represent a translation-invariant positive-semidefinite kernel by sampling frequencies from its spectral distribution and using sine and cosine features. They replace an implicit infinite-dimensional feature map by a finite random approximation.
Sum of reproducing-kernel Hilbert spaces Created 2026-10-05 Updated 2026-10-14
For positive-semidefinite kernels with Reproducing kernel Hilbert spaces , the Reproducing kernel Hilbert space of consists of sums , with
The minimum is attained uniquely. Indeed, in the Hilbert space direct sum , the tuples summing to zero form a closed subspace : they are the intersection, over inputs , of the kernels of the continuous maps . Every affine fibre has a unique representative in by orthogonal decomposition by a closed subspace. The vector lies in and represents evaluation in the quotient; its evaluation at is , identifying the positive-semidefinite kernel with .