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.
Use the unscaled penalty convention consistent with the displayed bound:
For an objective with averaged squared loss, the corresponding penalty parameter would be . We retain the unscaled throughout.
By the representer theorem, the kernel ridge regression minimizer lies in the span of . A valid coefficient vector is , giving
The kernel matrix is a positive semidefinite matrix, so the inverse exists even if is singular. In the coefficient objective , this choice satisfies ; there is no need to cancel . The function itself is unique because of the strictly convex squared Hilbert norm. The matrix is the kernel-ridge hat matrix in the present normalization.
Let . Since , the zero mean and covariance assumption give the exact bias-variance decomposition for linear prediction
No normality of the noise is required for this identity.
Choose an orthonormal eigenbasis of , with eigenvalues . Its shrinkage factors are , so
The first bound follows from and from each shrinkage factor being at most one.
To control the bias by the Reproducing kernel Hilbert space norm, for define
The reproducing property gives and
If , the corresponding unscaled kernel combination has Hilbert norm squared , so . There is therefore no bias component in a zero-eigenvalue direction. For the remaining directions,
The scalar bound is again , and the final step is Bessel inequality. Combining the variance and bias bounds proves the prediction-risk bound for kernel ridge regression:
The kernel ridge regression estimator minimizes
By the representer theorem, its fitted-value vector is
Writing for the true value vector, the variance contribution to is
The squared bias is . In an orthonormal eigenbasis of , the scalar inequality
which is equivalent to , yields
For , only the last term varies. The Rayleigh quotient of is maximized by a unit eigenvector associated with its largest eigenvalue , equivalently an eigenvector of associated with .
With the normalization used in the question, kernel ridge regression minimizes
The representer theorem and the normal equations give the fitted-value vector
Let and let be the orthogonal projection of onto this space. The reproducing property makes for every . Writing gives
Conditionally on , the covariance matrix of the fitted vector is
Since the eigenvalues of are , the average conditional variance is
For ,
Taking and adding the supplied squared-bias bound gives
Because minimizes this conditional upper bound, its expected value is at most the expected bound at any deterministic . Using the assumed eigenvalue comparison,
The kernel ridge regression estimator is
By the representer theorem, . If , substitution and differentiation give
Thus
The matrix is the kernel-ridge hat matrix.