Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 2 Solution Created 2026-10-03 Updated 2026-10-14
Use the normalizationThis is ridge regression; the penalty is the squared Euclidean norm. The centering removes the need for an intercept. Differentiating gives the normal equationFor every nonzero , . The coefficient matrix is therefore a positive-definite matrix, even if the design matrix has deficient matrix rank. The objective is a strictly convex function, so the unique minimizer is the closed-form ridge regression estimator, with fitted values
For the primal-dual identity for ridge regression, put and observeBoth parenthesized matrices are positive-definite matrices. Multiplying by their inverses givesThus the same fitted vector has the dual expressionNo inverse of or alone was needed. This is also the kernel-ridge hat matrix for the linear kernel.
Here a positive-definite kernel means a symmetric real-valued function whose every finite kernel matrix is positive semidefinite: for all , and ,This is the usual positive-semidefinite kernel convention; strict positivity for distinct points is not required. In particular . Write , and . Positivity of the two-point kernel matrix impliesIf , substitute to obtain . If , the affine expression can be nonnegative for every only if . Both cases give the Cauchy-Schwarz inequality for positive-semidefinite kernels:The zero-diagonal case is essential when the positive-definite kernel is not strictly positive.
To construct a feature map, let be the real vector space of finite formal linear combinations of symbols , one for each . Define a symmetric bilinear form byThe positive-definite kernel property makes this a positive semidefinite bilinear form. It need not yet be an inner product: distinct formal vectors can have zero squared length. The same quadratic-polynomial argument, now applied to , provesTherefore implies for every . The setis the radical of a bilinear form, hence a linear subspace. SetThe quotient vector space has a well-defined inner product: changing representatives by elements of changes no pairing, and a zero-length class is exactly the zero class. It is therefore an inner product space.
Define . By construction,Every positive-definite kernel thus has a feature representation, including degenerate kernels and the zero kernel. This is its canonical feature space of a positive-semidefinite kernel. The construction already gives the requested inner product space.
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 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.
For the unscaled objective , the kernel-ridge hat matrix is . Its prediction variance is . For eigenvalues , use and to bound the variance and the squared bias. The latter also uses the reproducing property and Bessel inequality, and does not require invertibility of .
EXISTING BODY EXPANSION, not a new concept: replace the present one-direction definition of Faithfulness of a directed acyclic graph in probability-and-statistics.bigb, under Causal directed acyclic graph, with the following body. Retain its existing header and parent.
Primal-dual identity for ridge regression Created 2026-10-06 Updated 2026-10-07
For any real design matrix and , . Multiplication by identifies the primal ridge regression fitted values with , , the kernel-ridge hat matrix for the linear kernel. No rank assumption is needed.