Exercises

Weekly exercises. Exercises with only numbers refer to exercises from the textbook.

Earlier exams are given here.

Solutions to some exercises are given in the files below. These will be continuously updated when new exercises are given

Solution to text book exercises

Solutions to exercises from note of Nils Lid Hjort

Solutions to exam exercises

Trial exam: (These will be discussed Tuesday November 17)

  • Exam 2018: Exercises 1, 2, 3
  • Exam 2020: Exercise 2

Exercises for November 10:

  • From Chapter 6: 1, 2 (do exercise 2.13 first), 3, 7 (from last week)
  • Exam 2014, exercises 2, 3
  • Exam 2013: exercise 2

Exercises for November 3 (we discuss the exercises on Wednesday this week):

  • From Chapter 6: 1, 2 (do exercise 2.13 first), 3, 7

Exercises for October 27:

  • Main exercises:
    • Exercises from chapter 7: 4 and 5
  • Supplementary exercises:
    • Exercises from chapter 14: Exercises 3 and 4

Exercises for October 20:

  • Run the script example_stan_poisson.r (you will need to download the corresponding stan files as well).
    • Make sure you understand the different commands.
    • In particular explain what the bf, waic and loo commands are doing.
    • (You will here need both to look in the book for definition of bayes factors, waic and leave-one-out (loo) cross-validation as well as looking at the help functions for these commands)
  • Exam STK4021 spring 2020: Exercise 1

Exercises for October 13:

Exercises for October 6:

 

Exercises for September 29:

Exercises for September 22:

Exercises for September 15:

Exercises for September 8:

Exercises for Tuesday September 1:

  • Exercises from chapter 2: 1, 3, 5, 7, 8, 9, 14

Exercises for Tuesday August 25:

 

    Published Aug. 19, 2020 8:51 AM - Last modified Nov. 10, 2020 12:56 PM