- Week 1:
- exercises 2.1 - 2.3 of the textbook;
- exercises 1, 2 and 8 from Section 2.4 (pp. 52-55) of the ISL book
- R solutions
- Week 2:
- exercises 2.7 and 2.8 of the textbook;
- exercise 3, 7, 9 and 10 from Section 3 (pp. 120-123) of the ISL book
- R solutions
- Week 3:
- exercise 1, points (a), (b), (c) and (d) of the 1st mandatory assignment from 2018 (here the original in Norwegian by Geir Storvik - note that only page 2 is relevant, until "Hvilken fortolkning har γ-ene i dette tilfellet.");
- exercise 4.10, points (a), (b) and (c) page 171 in ISL book. Note:
- with "confusion matrix" the book means the table we saw in lecture 3;
- code to get the data.
- R solutions
- Solutions to exercises from mandatory assignment 2018
- Week 5:
- Exercises 3.1 - 3.3 of the text book;
- Exercises 2, 3 and 8 from Section 5 (pp. 197-201) of the ISL book
- R solutions
- Text book solutions
- Week 6:
- Exercises 1 and 8 (only a-d) from Section 6 (pp. 259-263) of the ISL book
- Download the body fat data (here is the R code to do that). It contains a response variable (pcfat, percentage of body fat) and 13 explanatory variables (age and 12 measures of different body part circumferences). Fit a linear Gaussian model by using both backward elimination and forward selection, in both cases using AIC as stopping criterion. Do you obtain the same model with both procedures? Comment the result.
- Solutions
- Week 7:
- Exercises 2, 3, 4, 10 and 11 from Section 6 (pp. 259-264) of the ISL book (note that the dataset for the last exercises is in the R-package MASS)
- Solutions
- Week 8:
- Exercise 4.3 of the text book;
- Exercises 1, 3 and 9 from Section 7 (pp. 297-300) of the ISL book (note that the dataset for the last exercises is in the R-package MASS).
- R solutions
- Solution exercise 7.1
- Week 10:
- Exercises 5, 10, 11 and 12 from Section 7 (pp. 297-300) of the ISL book
- Solutions
- Week 11:
- Exercises 5.3, 5.4, 5.5, 5.8, 5.9 and 5.10 of the text book;
- Exercises 1, 9 and 10 from Section 4 (pp. 168-171) of the ISL book.
- R solutions
- Solution exercise 4.1 and 4.9
- Week 12:
- Exercise 4.8 of the text book;
- Exercises 1 and 4 from Section 8 (p. 332) of the ISL book;
- Exercise 4.2 in ESL book, p. 135 (points (a) and (e) are related to exercises 5.9 and 5.10 of the text book, respectively).
- R solutions
- Solution exercise 4.2 in ESL
- Week 13:
- Exercise 5.11 of the text book;
- Exercises 3 and 9 from Section 8 (pp. 332-334) of the ISL book;
- Exercises 3 and 7 from Section 9 (pp. 368-371) of the ISL book.
- R solutions
- Week 16:
- Exercises 1, 3 and 10 from Section 10 (pp. 413-417) of the ISL book.
- R solutions
- Solution 10.1
- Week 17:
- Exercises 4 and 9 from Section 10 (pp. 414-416) of the ISL book.
- R solutions
Lekser / Exercises
Publisert 9. jan. 2020 11:27
- Sist endret 15. mars 2023 11:20