Take the Gaussian (RBF) kernel on the 1-D points . Write the Gram matrix. What happens to the Gram matrix when the width is made very small and when it is made very large, and what does that mean for an SVM?
Supervised learning, RBF kernel
Level L2 Elementary. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can compute kernel values by hand and connect the kernel width to under- and overfitting.
Key idea
The Gram matrix has entries . It is symmetric with ones on the diagonal. Entries are close to 1 for nearby points and close to 0 for far points.
Steps
- Diagonal entries: .
- , , and .
- So .
- Very small width (large in ): off-diagonal entries tend to 0, so . Every point is only similar to itself, so the SVM can separate any labelling and memorises the data (overfitting).
- Very large width (small ): all entries tend to 1, so . All points look alike and the decision function is nearly constant (underfitting).
- So the kernel width, together with , controls model complexity. It is tuned by cross-validation.
Common mistakes
- Writing zeros on the diagonal. A point's similarity to itself is 1.
- Mixing up the width and : a large means a narrow kernel.
- Forgetting to square the distance.
How long your answer should be
A 3×3 matrix and 3–4 sentences.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: A node has 12 samples, 6 of each class. Attribute takes 12 distinct values (one per sample). Attribute splits the samples into two groups of 6: (5 positive, 1 negative) and (1 positive, 5 negative). Compute the information gain and the gain ratio of both attributes. Which one does ID3 pick and which does C4.5 pick, and why?
Next in Supervised learning: In round 1 of AdaBoost on points with equal weights , a stump misclassifies 3 points. What are its error , its weight , and the new normalised weights of the misclassified and the correctly classified points?