Week 9 Discussion Questions
Week 9 results
Discussion honors
Team honors are based on the class ratings recorded during the discussion.
-
1
Gold
Team 2
Team members
- Haoran
- Shih-Peng
- Timothy
- Ting-Yun
- Zexuan
-
2
Silver
Team 6
Team members
- Conner
- Dehui
- Haoran
- Lu
- Runting
- Urva
- Wenhao
- Yanxi
-
3
Bronze
Team 8
Team members
- Ally
- Chahak
- Jiachen
- Nupur
- Ruitong
- Shirley
- Sheetal
- Zhiyuan
These questions draw on student submissions. Work through the reasoning with your group and be prepared to explain your conclusions.
Nine questions are listed below. Credits appear at the end of each question. Questions discussed in class are marked.
Question 01Kernel flexibility and generalization
Linear vs. Nonlinear Kernels
Why might a linear SVM perform better than a more flexible nonlinear SVM, even when the nonlinear model can capture more complex patterns in the data?
This question is contributed by allyw2.
Question 02Collinearity and kernel geometry
Linear or Radial Kernel for Collinear Data? (Discussed)
Suppose we have predictors and observations, with , and many predictors are highly collinear. For predictor vectors , compare a linear kernel
with a radial kernel
What are the advantages and disadvantages of fitting an SVM with each kernel? In particular, how does collinearity affect each kernelβs interpretability, risk of overfitting, and tuning?
This question is contributed by rahafaa2.
Question 03Nearly linear fits and model selection
If the Winning Radial Kernel Is Almost Linear, Is It Really Better?
In one Homework 9 Question 1 run on the SAheart data, a radial SVM with had the lowest cross-validation error, yet behaved almost identically to a linear SVM. With , the radial SVM predicted the majority class at every tested value of .
When a flexible kernel wins only by imitating a linear one, and the error gap is within one standard error, should we still prefer it on predictive grounds, or does the bias-variance picture suggest that the linear SVM is the better-supported choice?
This question is contributed by hx27.
Question 04Choosing among similarly performing kernels
When Kernel Performance Is Similar, Should We Choose the Linear Model?
After tuning SVMs with linear, polynomial, and radial kernels using the same cross-validation folds, you find that they have similar predictive performance. How should you choose among them? Should you simply choose the linear SVM on the grounds that it is the simplest model? Explain your reasoning.
This question is adapted from related questions contributed by brianc19, bugatha2, sgs11, st58, and stewary2.
Question 05Cost, radial scale, and flexibility
How Do Cost and Radial Scale Affect Bias and Variance? (Discussed)
In a radial SVM, how does increasing or decreasing and affect model flexibility, bias, and variance? Is grid search an appropriate way to select these parameters?
This question is contributed by lb16.
Question 06The small-gamma limit
What Happens as Gamma Approaches Zero? (Discussed)
For standardized predictor vectors , consider the radial kernel
All kernel values approach one as . Holding fixed, does a very small make an RBF SVM approximately linear, or can it simply make the classifier too strongly regularized? Explain your reasoning.
This question is adapted from a related question contributed by dehuili2.
Question 07Tuning ranges and spacing
How Should We Choose the Tuning Grid?
When tuning and , how should we choose the range and spacing of candidate values? What difference does it make to use values spaced by factors of 10 rather than 100?
This question is contributed by lugong2.
Question 08Kernel validity and positive semidefiniteness
Why Isnβt Every Similarity Function a Valid Kernel?
A kernel SVM replaces feature-space inner products with a kernel function . For training observations , the kernel matrix has entries .
Why canβt we use any similarity function as a kernel? How does requiring the kernel matrix to be positive semidefinite for every finite set of inputs connect to the existence of a feature map, and what can go wrong with the SVM optimization problem if that requirement fails?
This question is contributed by haorans9.
Question 09Polynomial feature weights
How Does a Polynomial Kernel Weight Linear and Interaction Terms?
For predictor vectors , with , consider the degree-2 polynomial kernel
How can we control the relative influence of interaction terms, such as , and linear terms, such as and ? How do the kernel parameters affect the relative weighting of these terms?
This question is contributed by schuang7.