How do you prove that the Gaussian kernel is a valid (positive semi-definite) kernel, using only the linear kernel and closure rules?
Supervised learning, Kernel validity
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove kernel closure under sums, products and limits, and build the RBF kernel from them.
Key idea
A kernel is valid if every Gram matrix is symmetric positive semi-definite (PSD). PSD kernels are closed under non-negative sums, products (Schur product theorem), and limits, so is valid. Then factor the RBF kernel into such terms.
Steps
- Linear kernel: , so it is PSD.
- Sums and positive multiples of PSD matrices are PSD, as is for any function (a rank-one matrix ).
- Products (Schur): let be PSD. Write with . Then . Each term is a congruence of , so it is PSD, and a non-negative sum is PSD.
- Powers and polynomials: is a product of kernels, so it is valid. Then is a limit of non-negative sums of valid kernels, and a limit of PSD matrices is PSD.
- Factor the Gaussian: , so .
- The first two factors form a kernel . The last is of a scaled linear kernel, valid by step 4. Their product is valid by the Schur step, so the RBF kernel is valid.
- Consequence: the RBF kernel has an infinite-dimensional feature map, namely the series expansion of .
Common mistakes
- Checking PSD for a few points and calling it proved.
- Forgetting that a difference of kernels is not generally a kernel.
- Applying Schur to arbitrary matrices. Both must be PSD.
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Prove the Gauss–Markov theorem: under with , and of full column rank, the OLS estimator has the smallest covariance matrix among all linear unbiased estimators. Why does this not rule out ridge regression doing better in MSE?
Next in Supervised learning: How do you prove that the training error of AdaBoost is at most , where ? For and training points, after how many rounds is the training error zero?