Exercises the coming week
Week 6
Exercises from ISLR: Exercise 3.8, 3.5
- Solutions: See Vinni's solutions, this one or that one.
Extra exercises (see link above): 1, 2 and 3
- Solutions: See Vinni's solutions, except from 2d, for which Vera presented this solution (where the lower bound is simply \(\sigma^2\), attained when \(f(x) = g(x)\)). For exercise 1, there are also Geir's solutions (excluding the R-part).
Exercises for past weeks
Week 5
Exercises from the book: 2.7
- Solutions: See pages 8-9 in /studier/emner/matnat/math/STK2100/v23/Exercise%20solutions/esl_ch2ex.pdf (note a typo in (a) for linear regression, where $\hat\beta$ should be $(X^TX)^{-1}X^Ty$ not $X(X^TX)^{-1}X^Ty$)).
Exercises from ISLR: 1, 2, and 8 from Chapter 2 (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.