In kernel ridge regression, predictions take the form with weights , where is the kernel matrix, is the vector of targets, is the regularisation parameter and is the identity matrix. For two training points with , and , what are and the prediction at a new point with and ?
Learning theory, RKHS and the representer theorem
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can solve the kernel ridge linear system and compute the resulting kernel prediction at a test point.
Key idea
Add to the diagonal of , invert the matrix to find the dual weights , and take the weighted sum using the kernel similarities to the new point.
Steps
- Form : adding to the diagonal gives .
- Invert the matrix: the determinant is , so
- Solve for : multiplying by selects the first column, giving .
- Compute the prediction at : (why the solution takes this kernel form is proved by the representer theorem at later levels).
Common mistakes
- Using without adding ; that drops regularisation and interpolates the targets exactly.
- Plugging instead of the new point's kernel vector into the prediction step.
- Forgetting to negate the off-diagonal entries when inverting a matrix.
How long your answer should be
4–5 lines of arithmetic; 2–3 minutes.
Read this
Previous in Learning theory: A class has VC dimension . By Sauer's lemma, at most how many different labellings can it produce on points? What fraction of all labellings is that, and what does the bound say for ?
Next in Learning theory: Why is for a finite class , and is the bound tight?