Week 8 Discussion Questions
Week 8 results
Discussion honors
Team honors reflect the instructor-confirmed results for this discussion.
-
1
Gold
Team 2
Team members
- Haoran
- Shih-Peng
- Timothy
- Ting-Yun
- Zexuan
-
2
Silver
Team 4
Team members
- Krishay
- Cameron
- Karisma
- Owen
- Ryan
- Shushi
-
3
Bronze
Team 3
Team members
- Heta
- Jingyi
- Mann
- Neel
- Prerith
- Zhijing
Top challenger
- Melika Hajimohammadi
These questions draw on student submissions and instructor prompts. Work through the reasoning with your group and be prepared to explain your conclusions.
Thirteen questions are listed below. Credits appear at the end of each question. Questions discussed in class are marked.
Question 01Functional and geometric margins
Can Scaling the Coefficients Enlarge the Margin? (Discussed)
For linearly separable data with class labels , let , where . Suppose we replace both and by and , where . Does this create a larger gap between the two classes or a better maximum-margin solution? Explain what happens to the decision boundary, the functional margins , and the geometric margin.
This question is adapted from a related question contributed by haorans9.
Question 02Lagrangian constraints and duality
How Does the Lagrangian Enforce Constraints? (Discussed)
For a hard-margin linear SVM with observations , labels , and score , the Lagrangian is
Why can the constrained SVM problem be written as minimizing over and after maximizing this Lagrangian over the nonnegative multipliers? Explain what the maximization does when a margin constraint is satisfied and when it is violated. What problem results when the order of minimization and maximization is reversed?
This question is adapted from a related question contributed by schuang7.
Question 03Support vectors and active constraints
When Does a Point Start Affecting the Fit?
For a fitted hard-margin linear SVM, move one non-support observation toward the decision boundary while holding all other observations fixed and refitting the model as the point moves. Can the optimal boundary change while this point remains strictly outside the margin? Is reaching the margin enough to guarantee a change? Explain using the SVM constraints and the observationβs dual coefficient .
This question is adapted from a related question contributed by wenhao7.
Question 04Primal versus dual computation
When Is the Dual Easier to Solve?
Why can the dual formulation of a linear SVM be easier to solve than the primal formulation? Give a concrete example and explain which features of the problem make the dual computationally advantageous.
This question is contributed by the instructor.
Question 05Large cost and slack feasibility
Can a Very Large Cost Eliminate Slack?
In a soft-margin linear SVM, controls the penalty on the nonnegative slack variables . Suppose we keep increasing and find an optimal solution each time. Can we eventually make every slack variable arbitrarily close to zero, so that almost all training observations lie on the correct side of the decision boundary? Explain whether this is always possible.
This question is adapted from a related question contributed by dehuili2.
Question 06Predictor scaling and margin geometry
Can Predictor Scaling Change the Support Vectors? (Discussed)
For linearly separable data, how does changing the scale of one predictor affect a hard-margin linear SVM? Can it change the fitted decision boundary or which observations are support vectors? Explain using a two-dimensional graphical demonstration.
This question is adapted from a related question contributed by zm25.
Question 07Training accuracy and support-vector counts
Can Equal Accuracy Hide Different Support Vectors? (Discussed)
Two soft-margin linear SVMs are fitted to the same training data using different values of . Both classify every training observation correctly. Could one still have more support vectors?
This question is adapted from related questions contributed by ziqiz13 and kum2.
Question 08Hard and soft margins on separable data
Does Separable Data Require the Hard-Margin Solution?
If the training classes are linearly separable, must a soft-margin SVM recover the hard-margin solution? How does the answer depend on , and why might it tolerate violations even though perfect separation is possible?
This question is adapted from related questions contributed by rruiz35 and zexuanj2.
Question 09Support-vector redundancy
Does Removing a Support Vector Change the Boundary?
Does deleting a support vector necessarily change the maximum-margin boundary? Construct a two-dimensional example where other observations keep the boundary unchanged.
This question is adapted from a related question contributed by cgao19.
Question 10SVM and logistic loss functions
Why Do SVM and Logistic Regression Use Observations Differently?
An observation strictly outside the SVM margin can have no effect on the fitted boundary, while it can still affect logistic regression. How do the two loss functions explain this difference?
This question is adapted from related questions contributed by nnigam2 and prerith2.
Question 11Regularization, bias, and variance
How Does Cost Affect Bias and Variance? (Discussed)
Imagine repeatedly drawing training samples of the same size from the same population and fitting a soft-margin linear SVM. How would you expect the fitted boundary to vary across samples under a small versus a large ? Why does a smaller correspond to stronger regularization, and how does this affect the bias-variance trade-off?
This question is adapted from related questions contributed by yanxif2, stewary2, and amoghu2.
Question 12Specificity and flexibility in AI skills
How Much Flexibility Should an Analysis Skill Allow? (Discussed)
Two AI agents follow the same statistical analysis skill on the same dataset but choose different sets of candidate models. Does this indicate useful flexibility or insufficient guidance? Which analysis decisions should a reusable skill fix in advance, and which should it allow the agent to adapt to the dataset? Give one concrete instruction that strikes this balance without depending on a particular dataset.
This question is adapted from related questions contributed by chahak2, bugatha2, panico2, and jyan36.
Question 13Reproducibility and skill quality
Is Successful Execution Enough for a Good Skill?
Two people run the same analysis skill on the same dataset but report different results. Is setting the same random seed enough to make their analyses reproducible? What other choices need to be specified or recorded? If two skills both accomplish their stated goal, what criteria would you use to judge which is better?
This question is adapted from related questions contributed by lugong2, maeved2, and lb16.