Week 3: Ridge Regression and Optimization
This week begins with a practical problem: ordinary least-squares coefficients can be unstable when predictors contain similar information. Ridge regression shows how shrinkage can improve stability. We then use ridge to study optimization, cross-validation, and the choice of a penalty parameter.
Guiding question: What do we gain, and what do we give up, when we deliberately shrink regression coefficients?
Learning goals
By the end of this week, you should be able to:
- explain why correlated predictors can make least-squares coefficients unstable;
- describe the bias and variance effects of ridge regression;
- connect gradient descent and a direct linear-system solution to the ridge objective; and
- compare cross-validation and generalized cross-validation (GCV) for tuning a penalty without using the final test data.
Lecture notes
Ridge Regression: Stability Through Shrinkage
Penalized least squares, spectral shrinkage, effective degrees of freedom, and the bias-variance trade-off.
From a Penalized Objective to a Fitted Ridge Model
The objective, gradient descent, step size, cross-validation and GCV, preprocessing fitted within each training fold, and held-out evaluation.
Homework 03
Homework 03 contains five required problems. Question 1 asks you to write and install a short explain-to-me skill, then test it by using the skill to understand Question 2. The remaining problems study coefficient instability under near-collinearity, singular-direction shrinkage, optimization geometry, and penalty selection by cross-validation and generalized cross-validation (GCV). All homework assignments are evaluated as Complete or Incomplete. For Questions 2 through 5, attempt each problem before consulting the solutions.
Update: The notation and wording in Homework 03 have been updated and slightly simplified. Submissions based on either version are accepted.
Place homework-03.pdf or homework-03.html in the homework/week-03/ folder of your stat432-fall2026 GitHub repository by Sunday, September 13, 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, September 15, 2026
Submit discussion/week-03-question.md by Sunday, September 13, 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.
Quiz 1 begins class on Tuesday, September 15, 2026. It is 30 minutes long, contains 8 questions, and covers the Week 1 and Week 2 discussions. The Week 3 discussion session follows the quiz. Week 3 is included in Quiz 2 on Tuesday, October 6, 2026. See Quizzes for the format.
Open Popping when the instructor asks you to join. See the Discussion tab for login information, and tell the instructor during class if you cannot sign in.
Discussion Question Topics
Your question may focus on one of the following topics:
Instability and shrinkage. Correlated predictors, coefficient stability, and shrinkage motivate ridge regression.
Bias, variance, and effective degrees of freedom. These concepts describe the effect of the ridge penalty on flexibility and prediction.
Standardization and the intercept. Predictor scaling and the treatment of the intercept affect the meaning of a coefficient penalty.
Optimization. Curvature, step size, and convergence describe the computation of the ridge estimator.
Choosing the penalty. Cross-validation, GCV, preprocessing, and selection rules offer different perspectives on tuning.
Concrete AI-use difficulties. Errors in AI-generated explanations, computations, or interpretations can arise throughout a ridge analysis.
Agentic AI utilization issues. Skill activation, file changes, and repository operations are practical aspects of directing an AI agent.
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 adding a question about the statistical reasoning or the specific difficulty you encountered.