For input coordinates, the homogeneous quadratic polynomial kernel has a weighted quadratic feature map with distinct monomials. Computing an inner product of already stored mapped vectors costs arithmetic operations, whereas costs using the input vectors. Here denotes big O notation. Higher fixed degrees can make the dimension gap much larger.
Sample count still matters. With training examples, materializing a dense kernel matrix stores numbers and requires distinct evaluations using symmetry. A dense direct solve for kernel ridge regression typically takes operations after constructing the kernel matrix, while a dual prediction with nonzero coefficients uses kernel evaluations. Explicit finite feature maps can be preferable when is small relative to , and a stored primal weight vector can make prediction depend on rather than on . The kernel trick by Ryan Giordano (sections Ridge regression and The polynomial kernel) explains the change from feature-coordinate equations to training-example equations; neither representation is universally faster.
The kernel trick saves explicit feature construction when the positive-semidefinite kernel is economical to evaluate; it does not remove the cost of optimization, choose a useful positive-semidefinite kernel, or establish generalization. Random Fourier features illustrate a different tradeoff: replacing the exact Gaussian kernel with a finite approximate feature map can reduce dependence on the sample count while introducing approximation error.
For a stationary autoregressive process of order one with unit-variance normal distribution marginals and fixed , the Gaussian kernel covariance correction at lag has the displayed form. The difference of two observations has variance , and their characteristic functions reduce the Fourier integral to the difference of two Gaussian integrals. The mean value theorem gives , uniformly over . Thus the integrated variance differs from its independent-sample counterpart by . The marginal bias is unchanged, so this dependence does not alter the leading optimal bandwidth or the mean integrated squared error for a second-order density kernel.
Gaussian density kernel 2026-10-14
The Gaussian density kernel is the standard normal probability density used as a unit-integral kernel for density estimation. Its second moment is one and . Its canonical kernel has scale . It is a function of one smoothing displacement, distinct from the two-argument Gaussian kernel used as a positive-semidefinite kernel.
Gaussian semivariogram 2026-10-05
For and nonnegative variances, admits covariance . The Gaussian kernel is positive definite because it is the Fourier transform of the density of a Gaussian distribution. Adding independent white noise supplies the nugget effect. Its scale is . For , its exact range of a semivariogram is infinite. If , it is a pure nugget effect with no nontrivial structured range.
There is a literal domain error in the printed formula. A semivariogram indexed by a signed displacement must satisfy , since reversing the two observations leaves the squared increment unchanged. For positive or , the displayed positive-lag value is nonzero whereas the displayed negative-lag value is zero. Thus the claim on all of is false as written.
Interpret the argument as a nonnegative distance, or use the even extension of the Gaussian semivariogram. For and , the intended model is
It admits the covariogram
The Gaussian kernel is a positive-definite kernel, as can be seen from the Fourier transform of a Gaussian: in one dimension
and the nonnegative spectral density makes every finite covariance quadratic form nonnegative. In higher dimensions use the product Gaussian density. Adding independent Gaussian white noise of variance adds the diagonal nugget covariance. Thus a zero-mean stationary Gaussian random field exists with this covariance, and gives the corrected semivariogram.
For nonzero structured variance, the nugget effect is the right limit at zero, the sill of a semivariogram is , and the range of a semivariogram is infinite if defined as the distance at which the sill is exactly reached. A 95-percent practical range solves :
The scale is sometimes called the range parameter; it is neither the exact range nor the 95-percent practical range. If , there is no nontrivial structured range.
The fact that a semivariogram does not determine stationarity is a further distinction: a semivariogram specifies increment variation, not a unique process or absolute covariance. Adding an independent random constant adds a constant to without changing . More strongly, subtracting from a stationary field preserves its semivariogram but generally makes its variance depend on . The corrected statement is that this semivariogram admits a second-order stationary model, with the displayed covariance using the usual convention at large distance; it does not force every compatible process to be stationary.
. This is a Gaussian kernel covariance. Near zero, , consistent with a finite mean-square derivative variance. The kernel has derivatives of every order, and the resulting Gaussian process admits a smooth version. P3 is smooth but does not repeat, unlike P1.
Use the periodic covariance function
Its positive semidefiniteness follows by pulling back a Gaussian kernel to the circle . A zero Gaussian process mean is an ensemble statement, whereas an exactly zero long-term average for every periodic light curve is stronger. To impose the latter literally, use a periodic Gaussian process with zero period average, replacing the kernel by
Here is a modified Bessel function, and is the period average of the kernel. Subtracting each process's random period average produces this covariance, so it remains positive semidefinite. We use to enforce the stated mean subtraction; using gives the usual ensemble-zero-mean formulation and the same likelihood derivation.
Let and . The prior latent vector is and the independent Gaussian noise is , so with . The Gaussian-process marginal likelihood is
Positive measurement variances make positive definite even if is singular. Maximize over all three hyperparameters, using a broad search in to find competing aliases, followed by joint optimization. Cholesky decomposition evaluates the likelihood without explicitly forming an inverse.
For a well-resolved interior maximum, let be the Observed Fisher information in the coordinates . Then . Equivalently, the profile-likelihood curvature in gives the same local nuisance-adjusted variance; keeping the other hyperparameters fixed would generally underestimate it. A profile interval with is a local approximation. If the period likelihood is multimodal or poorly constrained, fit the complete posterior with proper hyperparameter priors and report its modes and marginal credible intervals rather than a single Hessian error bar. The sampling pattern can create period aliases that a single local search misses.
For a finite sample, the Gram matrix of is the entrywise product of the two positive-semidefinite Gram matrices. The Schur product theorem makes it positive semidefinite, proving the product closure.
The Gaussian kernel with bandwidth is
Factor it as
The linear kernel is positive semidefinite; products and nonnegative scalar multiples preserve positivity, as does multiplication by . The partial sums are therefore kernels, and pointwise-limit closure proves that the Gaussian kernel is positive semidefinite.
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 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.
The Gaussian kernel with bandwidth is
Suppose a feature map represented the Gaussian kernel. Choose , a unit vector , and points for . Their kernel matrix is
For sufficiently large , hence sufficiently small , every row satisfies
Thus is a symmetric strictly diagonally dominant matrix with positive diagonal and is therefore a positive-definite matrix, so .
On the other hand, if is the matrix whose th row is , then and , a contradiction. Hence every feature-space realization of the Gaussian kernel requires an infinite-dimensional vector space.
Periodic covariance function Created 2026-10-05 Updated 2026-10-06
This covariance function is periodic with period . Map time to the circle and pull back a Gaussian kernel; since , this proves positive semidefiniteness. A Gaussian process with this kernel has and therefore repeats at every fixed phase. Replacing the inner by changes the actual period to .