Weekly exercises

Here you find the weekly exercises for the coming week, as well as an overview of exercises for past weeks. The week number refers to when the exercises will be discussed in the exercise class.

To learn the material well, it is important to spend time and make real efforts on trying to solve the exercises, preferably before the exercise class.

Some of the exercises are from the book James et al 2013: An Introduction to Statistical Learning, and will be referred to as ISLR

Note that the link to book website given in the book does not work any more; the new link is https://hastie.su.domains/ElemStatLearn/.

A link to the extra exercises is here.

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)).

?

Publisert 21. jan. 2026 12:56 - Sist endret 2. feb. 2026 11:59