Exercises the coming week
Week 6
Exercises from ISLR: 3.8 and 3.5
Extra exercises (see link above): 1, 2 and 3
Exercises for past weeks
Week 5
Exercises from the book: 2.7
- Solutions: See pages 8-9 here. Note a typo in (a) for linear regression. \(\hat\beta\) should be \((X^TX)^{-1}X^Ty\) not \(X(X^TX)^{-1}X^Ty\). The slides from the exercise session are available here.
Exercises from ISLR: 2.1, 2.2, and 2.8 (see the webpage for the book for downloading data; the easiest alternative is to install the ISLR library (through the command install.packages("ISLR")), make the library available (through the library("ISLR")), and then make the data available through data(College)).
- Solutions:?link to R-file.