Chapter 1 · Statistical Learning

ISLR Chapter 2 — what we are estimating, and what we are paying for it

We begin with a distinction that quietly reorganises everything you learned in econometrics. Write the world as \(Y = f(X) + \varepsilon\). Econometrics usually wants \(f\) itself, or one slope inside it. Statistical learning often wants \(\hat{f}\) only because it produces good \(\hat{Y}\), and is willing to accept an \(\hat{f}\) nobody can interpret if the predictions are better.

That willingness has a price, and the price has a name: the bias–variance trade-off. Expected test error at a point decomposes into squared bias, variance, and irreducible noise. Bias falls as the model grows more flexible; variance rises. The minimum sits somewhere in between, and finding it is most of what the rest of the course is about.

What you should take away

  • Why training error is a systematically optimistic estimate of test error
  • The bias–variance decomposition, and why the U-shaped test error curve appears
  • Parametric versus non-parametric approaches, and what each assumes
  • Supervised versus unsupervised problems
  • Why the Bayes error rate is a floor no classifier can pass

Slides

Labs

The introductory lab walks through the language basics, then the Auto and Advertising data, then a bias–variance simulation you can run yourself.

Rendered output: Chapter 2 lab · Exercise 10 write-up · Chapter 1 notes

Rendered output: Chapter 2 notebook

Readings

Exercises

TipA question worth sitting with

If a more flexible method always fits the training data better, why does anyone ever choose a less flexible one? Answer it in your own words before the next lecture; the whole course is downstream of that answer.

Back to top