Week 8: SVM - Part I
Discriminant analysis builds a decision rule from class densities. This week approaches classification through geometry: choose a linear boundary with a large margin, then allow observations inside that margin when classes overlap. The nonlinear extension follows in Part II.
Guiding question: How does a linear SVM choose a boundary when classes separate or overlap?
The SVM Part I lecture is Thursday, October 15, 2026. Its discussion session is Tuesday, October 20, 2026. The Week 8 discussion is included in Quiz 3 on Tuesday, October 27, 2026.
Learning goals
By the end of this week, you should be able to:
- explain the maximum-margin rule for linearly separable data;
- connect the primal and dual SVM problems and identify support vectors;
- explain how slack variables and the cost parameter handle overlapping classes;
- fit a linear SVM and choose its cost parameter by cross-validation.
Lecture notes
Maximizing the Separation Margin
Maximum-margin figures and derivation, slack variables for overlapping classes, and linear SVM tuning with the South African heart disease data.
Homework 08
Homework 08 has three required questions on margin geometry and peer review of a Homework 7 analysis skill. The former kernel-tuning question has moved to Homework 09. Use either R or Python for Questions 1 and 2. In Question 3, run the assigned skill and write your own review. Homework is evaluated as Complete or Incomplete.
Solutions for Questions 1 and 2 are now available. No solution will be provided for Question 3.
Place homework-08.pdf or homework-08.html in the homework/week-08/ folder of your stat432-fall2026 GitHub repository by Sunday, October 18, 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 20, 2026
Submit discussion/week-08-question.md by Sunday, October 18, 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 8 discussion session is Tuesday, October 20, 2026. 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 8 is included in Quiz 3 on Tuesday, October 27, 2026, which covers the Week 6 through Week 8 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 8 material or writing AI skills.
Margin and support vectors. The margin and support vectors determine the fitted boundary and its sensitivity to the data.
Slack variables and cost. Slack variables describe margin violations, while the cost parameter controls their trade-off with a wide margin.
Linear SVM tuning. Cross-validation helps choose the cost parameter without judging a fit only by its training accuracy.
Bias-variance in linear SVM. Changes in the cost parameter can affect flexibility and prediction on new data.
Writing AI skills. A reusable skill guides an AI agent’s analysis and reporting without depending on one dataset.
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.