Week 9: SVM - Part II
In Part I, we chose a linear boundary by maximizing its margin and used slack variables when the classes overlapped. This week uses kernels to fit nonlinear boundaries, then expresses the soft-margin SVM through hinge loss and a coefficient penalty.
Guiding question: How can the margin idea produce a nonlinear boundary, and how does the penalized formulation describe the same fit?
The SVM Part II lecture is Thursday, October 22, 2026. Its discussion session is Tuesday, October 27, 2026, after Quiz 3. Quiz 3 covers the Week 6 through Week 8 discussions. The Week 9 discussion is included in Quiz 4 on Tuesday, November 17, 2026.
Learning goals
By the end of this week, you should be able to:
- explain how a kernel replaces inner products of transformed predictors;
- use a kernel to obtain a nonlinear decision boundary;
- compare linear, polynomial, and radial SVMs using the same cross-validation folds;
- describe how the cost and radial scale affect a fitted rule; and
- connect slack variables to hinge loss and a coefficient penalty.
Lecture notes
The Kernel Trick and Penalized Formulation
Feature maps and kernels, linear and radial fits on the mixture data, cross-validation, and the hinge-loss formulation.
Homework 09
Homework 09 has two questions. First, compare SVM kernels on the South African heart disease data. Then use feedback from the Homework 8 peer review to write a short SVM analysis skill by hand and apply it to the same data. Use either R or Python. Homework is evaluated as Complete or Incomplete.
A solution for Question 1 is now available. No solution will be provided for Question 2.
Place homework-09.pdf or homework-09.html in the homework/week-09/ folder of your stat432-fall2026 GitHub repository by Sunday, October 25, 2026, at 11:59 p.m. Central Time. The report must be either a PDF or a self-contained HTML file and must not exceed 10 pages. The final file version shown on GitHub is treated as the submitted version, and its GitHub timestamp determines whether it is on time.
Discussion Session on Tuesday, October 27, 2026
Submit discussion/week-09-question.md by Sunday, October 25, 2026, at 11:59 p.m. Central Time. This required weekly discussion question counts toward the Weekly GitHub Discussion Questions component, worth 10% of the course grade.
The final version shown on GitHub is the submitted version. If its GitHub timestamp is after the deadline, the submission receives 0 points. No late-submission exceptions are allowed.
For the required format and GitHub submission steps, see Discussion Questions: Procedures and Rules.
The Week 9 discussion session is Tuesday, October 27, 2026, after Quiz 3. Open Popping when the instructor asks you to join.
See the Discussion tab for login information. Tell the instructor during class if you cannot sign in.
Week 9 is included in Quiz 4 on Tuesday, November 17, 2026, which covers the Week 9 through Week 11 discussions. See Quizzes for the quiz format.
Discussion Question Topics
The following topics are suggestions. Your question is not limited to this list, but it should relate to the Week 9 material.
The kernel trick. A kernel computes similarity in a feature space without requiring us to construct every transformed predictor.
Kernel choice and tuning. Linear, polynomial, and radial kernels can give different boundaries, while validation helps choose their settings.
Hinge loss and the penalty. The loss-and-penalty view connects margin violations to model complexity.
Bias-variance in SVM. Changes in and can affect flexibility and prediction on new data.
Writing an SVM analysis skill. Peer feedback can help make a short skill more selective about model choice, evaluation, and reporting.
Ask one focused question that calls for an explanation, a comparison, a short derivation, a counterexample, a small computation, or a diagnosis of a concrete difficulty. Do not submit a request for code alone or repeat a homework calculation without asking about the statistical reasoning or the specific difficulty you encountered.