Week 2: Training and Test Error
This week studies why a larger linear model can fit the observed responses better while predicting less accurately. We first examine this behavior under a fixed design, then connect the theory to model-selection criteria and practical search methods.
Guiding question: If adding predictors cannot increase training MSE, why can they increase test MSE?
Learning goals
By the end of this week, you should be able to:
- explain why training MSE is too small on average;
- distinguish one observed test MSE from expected test MSE, also called prediction error;
- connect the fixed-design derivation to Mallows’ , AIC, BIC, and validation; and
- distinguish a model-selection criterion from the algorithm used to search through models.
Lecture notes
Fixed-Design Prediction Error and Model Selection
Simulation, expected training and test MSE, and the motivation for Mallows’ , AIC, BIC, and validation.
Implementing Linear Model Selection
Model scores, best-subset search, and stepwise search in R and Python.
Homework 02
Homework 02 contains five required problems. They move from whole-design and target-point simulations to theory, model comparison, and valid out-of-sample evaluation. All homework assignments are evaluated as Complete or Incomplete. Attempt each problem before consulting the solutions.
Place homework-02.pdf or homework-02.html in the homework/week-02/ folder of your stat432-fall2026 GitHub repository by Sunday, September 6, 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 8, 2026
Submit discussion/week-02-question.md by Sunday, September 6, 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 2 discussion session is Tuesday, September 8, 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. There is no quiz during this session.
Quiz 1 is Tuesday, September 15, 2026. It contains 8 questions and covers the Week 1 and Week 2 discussions. See Quizzes for the quiz format.
Discussion Question Topics
Your question may focus on one of the following topics:
Training and test MSE. Model size, observed errors, and expected prediction error describe different aspects of model performance.
Approximation bias and estimation variance. The balance between these two sources of error connects model size with expected test MSE.
Prediction at a particular target. Prediction at one covariate value and average prediction over the design can favor different models.
Optimism and Mallows’ . Training-error optimism, model complexity, and the assumptions behind the correction are closely connected.
AIC, BIC, and model search. Selection criteria and search algorithms play different roles in comparing candidate models.
Honest out-of-sample evaluation. Model selection, cross-validation, and final test assessment require careful separation of fitting and evaluation data.
Concrete difficulties using AI tools. Errors in generated analyses, unverifiable results, and coding or Git problems provide examples for discussing AI-assisted work.
Ask one focused question that calls for an explanation, a comparison, a short derivation, a counterexample, a small simulation, 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 difficulty you encountered.