Kernel ridge regression 2026-09-24
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.
Because the columns of the design matrix are centred, ridge regression with an unpenalized intercept solves
The normal equations give, for ,
The fitted values are consequently
If the objective is normalized by , the same formulas hold after replacing by .
The ridge regression estimator minimizes
Its gradient vanishes exactly when . Since makes this matrix positive definite,
The ridge regression estimator is the elastic net at , while the lasso regression estimator is the elastic net at .