Statistical learning and the bias–variance tradeoff#
The question and the claim#
Expected prediction error depends on the data-generating process, training procedure, loss, and target population. Bias and variance describe behavior over repeated training samples. Parameter count alone is not a universal measure of effective complexity.
What you should be able to do#
Specify the scientific target and the observations needed to address it.
Vary sample size and noise while keeping evaluation conditions fixed. Explain which parts of error change and why.
Explain the assumptions, uncertainty, and limits of your conclusion.
Worked investigation#
Fit polynomial models to repeated noisy samples and compare squared bias, prediction variance, and noise on a fixed evaluation grid. The worked notebook is self-contained and uses documented teaching data. Its output is evidence about that example, not a finding about a human population.
Challenge the result#
A U-shaped curve is not guaranteed in every realized dataset or learning regime. Repeated simulation should estimate behavior rather than manufacture a desired curve. Before running an analysis, predict what this failure would change. After running it, distinguish a software check from a scientific justification.
Practice and verification#
Complete the exercise, then discuss the interpretation questions. Submit a runnable notebook, your assumptions, and a short evidence-based interpretation. The shared analysis workflow defines the reporting and assessment standard.
For AI assistance, first write your own target and expected behavior. Use generated suggestions as candidates, inspect the code or claims, and retain evidence of the checks you performed. The AI analysis guide includes a saved-output activity that requires no account or paid service.
Connection across lessons#
Use the information/knowledge distinction to motivate held-out prediction; linear models provide the first concrete estimator.
Earlier lecture resources#
The recordings and slides below are retained from the earlier course edition and have not been revised. Use the written chapter, revised notebook, and exercise for current definitions and procedures; earlier examples may conflict with the corrections described here.
