Weekly exercises

Week 46 (November 12)

Week 45 (November 5) 

Week 44 (October 29)

Week 43 (October 22)

Week 42 (October 15)

Week 41 (October 8)

Week 40 (October 1)

  • starting from Table 3.3: (i) include lasso as well; (ii) add 3 columns to Table 3.3 with the results for SCAD, adaptive lasso and elastic-net (using prostate data); 
    • Hint: The glmnet function has an option penalty.factor. The ncvreg package has a routine called ncvreg with an option  penalty="SCAD"
      • Check 3.17 Rcode on week 38
  • Exercises 6.2 and 6.3
  • Exam 2021: Problem 1
  • Exam 2020: Problem 3

Week 39 (September 24)

  • Exercises 3.13, 3.17 (skip the PLS part)
  • Exam 2023, Problems 1, 2, 3

Week 38 (September 17)

  • Exercises 3.6, 3.16, 3.19 (not the question about PLS), 7.7, 7.9
  • Starting from exercise 3.17: (i) include lasso as well; (ii) add 4 columns to Table 3.3 with the results for non-negative garrote, SCAD, adaptive lasso and elastic-net (using prostate data); (iii) repeat exercise 3.17 using logistic (penalized) regression for (weighted) LS, best subset, lasso and ridge regression; 

Week 37 (September 10)

Week 35 (August 27-28)

  • This week, both Tuesday and Wednesday are used for exercises. The Tuesday exercises are mainly for those that not have taken STK2100 earlier (but can be a good repetition for everyone).
  • On Tuesday, exercises 1 , 2, 4 from the STK2100 exercise set. 
  • On Wednesday:
    • Pen-and paper: 2.3, 2.5, 2.7 (except (d), 2.9 from the textbook
    • Coding: 2.8 from the textbook

 

    Published Aug. 16, 2024 1:41 PM - Last modified Nov. 13, 2024 1:24 PM