For a real-valued loss function depending only on evaluations at , and a positive squared-norm penalty, any minimizing tuple in a sum of reproducing-kernel Hilbert spaces has the formwith the same coefficient vector for every component. The tuple must be the unique minimum-norm decomposition of its sum. Apply the representer theorem to that sum and note that the displayed tuple has total squared norm , exactly the norm of the sum. This argument is conditional on existence of a minimizer; arbitrary loss functions need not attain their infimum.
Dual prediction with a kernel 2026-10-14
If the weight vector lies in the linear span of the training feature map outputs, write . ThenThis is a dual representation: coefficients weight training examples rather than feature coordinates. They need not be positive, and need not be unique when the kernel matrix is singular. Some kernel methods instead write with under their own optimization constraints.[ref]
The kernel trick by Ryan Giordano. Kernelizing classification with support vector machines: displayed prediction as a sum of label-weighted kernel evaluations
The formula is an algebraic conversion for a weight vector in this linear span, not a claim about every possible weight vector. The representer theorem gives a broader reason this form appears in regularized kernel methods.For the XOR separation by a product feature, let have rows . The Gram matrix of those rows, equivalently the kernel matrix, isIts eigenvalues are , so it is a positive semidefinite matrix of rank two, not an invertible matrix. More generally, for any real coefficient vector and any finite set of inputs,This proves the positive-semidefinite kernel condition for the displayed polynomial kernel on all of , rather than checking only this square.
Here , so the explicit choice gives and . ConsequentlyFor the new input , the four polynomial kernel evaluations are . Their weighted sum is , and the sign function predicts . No explicit feature map is needed for this calculation. These coefficients were constructed to reproduce the chosen separator; no fitting algorithm or generalization guarantee is being asserted.
Kernel ridge regression Created 2026-09-24 Updated 2026-10-14
Kernel ridge regression minimizes empirical squared error plus the squared norm in a Reproducing kernel Hilbert space. The representer theorem reduces it to ridge regression with the kernel matrix as its feature Gram matrix.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 205 1 Solution Created 2026-10-03 Updated 2026-10-14
A real positive-definite kernel is a symmetric function such that, for every finite collection and every ,Thus every kernel matrix is a positive semidefinite matrix; “positive definite” here does not require strict positivity. A Reproducing kernel Hilbert space is a Hilbert space of functions on in which every point evaluation is a continuous linear functional. Its reproducing property is with , and . For a sum of positive-definite kernels, the quadratic form of its kernel matrix is a sum of nonnegative quadratic forms. Symmetry also survives summation. Consequently
For the representer theorem, put . This is a closed finite-dimensional vector space. The orthogonal decomposition by a closed subspace gives , where and . The reproducing property implies for every observed input, and thereforeSince , any minimizer must lie in . For , the reproducing property gives the evaluation vector and . Hence . If minimizes , its representation yields a minimizing . Conversely, if minimizes , then, for any , representing gives . ThusThis is an equivalence of minimizers, not an existence or uniqueness assertion: the loss function is arbitrary. A singular kernel matrix also allows nonunique coefficients, since differences in represent the zero function. Strict convexity of the loss was not used.
Now use the stated minimum-norm description of a sum of reproducing-kernel Hilbert spaces. Let . If the minimizing tuple did not attain the minimum total squared norm among decompositions of , replacing it by that unique minimum-norm tuple would preserve the loss function and strictly lower the penalty. This contradicts optimality. ThereforeFor an arbitrary , take its minimum-norm decomposition . Then , proving that minimizes .
Choose from the representer theorem for this minimizing sum, and define . Write for the component kernel matrices. ThenBy uniqueness of the minimum-norm decomposition, for every . This proves the common representer coefficients for a sum of kernels conclusion:The same coefficient vector works simultaneously. Even when is singular, changing that vector by leaves every component unchanged: forces each nonnegative squared component norm to vanish.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 205 6 Solution Created 2026-10-03 Updated 2026-10-14
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 , givingThe 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 predictionNo normality of the noise is required for this identity.
Choose an orthonormal eigenbasis of , with eigenvalues . Its shrinkage factors are , soThe 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 defineThe reproducing property gives andIf , 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:
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 205 4 b Solution 2026-09-28
The kernel ridge regression estimator minimizesBy the representer theorem, its fitted-value vector isWriting for the true value vector, the variance contribution to isThe squared bias is . In an orthonormal eigenbasis of , the scalar inequalitywhich is equivalent to , yieldsFor , 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 .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 205 1 Solution 2026-09-28
With the normalization used in the question, kernel ridge regression minimizesThe 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 isSince the eigenvalues of are , the average conditional variance isFor ,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,
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 205 5 a Solution Created 2026-09-24 Updated 2026-09-25
The kernel ridge regression estimator isBy the representer theorem, . If , substitution and differentiation giveThusThe matrix is the kernel-ridge hat matrix.
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 205 3 Solution Created 2026-09-24 Updated 2026-10-14
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 inIndeed, 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, thenWriting and , with pseudoinverses on the respective ranges, turns the supremum into
