The lectures and exercise classes in STK4900 will take place Monday to Friday over one week beginning in March (Mar 18 - 22) and one in April (15-19) . There will in these weeks be exercises from 12.15 to 16.00. The exercises will consist of two parts: (i) computer exercises using R ("datalab") and (ii) "Pen and paper exercises" using calculator, pen, and paper. Further details on the organisation of the exercises will be provided throughout the course.
Below are the exercises for each day. Solutions will be posted as the course progresses.
Part 1 March 18 - 22
Monday March 18:
Computer exercises:
Full code for R-exercise 1 (also 1b!), R-exercise 2, and R-exercise 3.
Additional Markdown document with solutions (shown in class): day1_exercises
"Pen and paper" exercises:
Here are tables of the standard normal, student t, Fisher F and chi-square distributions.
These may come in handy for today's and later pen-and-paper exercises as well as for the final exam.
Tuesday March 19:
Computer exercises:
Full code for R-exercise 4, R-exercise 5, R-exercise 6, and R-exercise 7.
Additional Markdown document with solutions (shown in class): day2_exercises
Pen and paper exercises:
- Exercise 4 (Solution)
- Exam STK 4900 spring 2008: Problem 1 (Suggested solution, note a typo for question b, the expression should read beta_hat_1/se(beta_hat_1)).
Wednesday March 20:
Computer exercises:
Full code for R-exercise 8, R-exercise 9, and R-exercise 10.
Additional Markdown document with solutions (shown in class): day3_exercises
Pen and paper exercises:
- Exam STK4900 spring 2010: Problem 1. (Suggested solution)
- Exercise 5 (Suggested solution)
Thursday March 21:
Computer exercises:
Full code for R-exercise 11 and R-exercise 12.
Additional Markdown document with solutions (shown in class): day4 exercises
Pen and paper exercises:
- Exercise 6 (Suggested solution)
- Exam ST301 spring 1996: problem 2a -2b (in Norwegian, in English) (Suggested solution)
- Exam STK4900 spring 2018, problem 1, questions a) and b) (Suggested solution)
Friday March 22:
Computer exercises:
- R-exercise 13 (R-help)
- R-exercise 14 (R-help). Before you do this exercise, you have to read into R a function that may compute cross-vallidated R2. It is explained here how you should do this.
Full code for R-exercise 13 and R-exercise 14.
Pen and paper exercises:
- Exam ST4900 Spring 2019: Problem 1 (Suggested solution)
- Exam ST301 spring 2000: Problem 1 a-e (in Norwegian) English translation (Suggested solution)
- Exam STK4900 spring 2013: Problem 1 (Suggested solution)
Part 2 April 15 - 19
Monday April 15:
Computer exercises:
Sol. Oblig 1. code example: here
Code from the Datalab: R-exercise 15, R-exercise 16, R-exercise 17
Additional Markdown document with solutions (shown in class): day6_exercises
Pen and paper exercises:
- Exercise 7 (Suggested solution)
- Repetition exercises (if time) Exam STK9900 spring 2017, Problem 1 and 2. (Suggested solutions)
Tuesday April 16:
Computer exercises:
Code from the Datalab: R-exercise 18, R-exercise 19, R-exercise 20
Additional Markdown document with solutions (shown in class): day7_exercises
Pen and paper exercises:
- Exam STK 4900 spring 2010: Problem 2. (Sketch of solution)
- Exam STK 9900 spring 2011: Problem 2. (Sketch of solution)
- Additional exercise (if time) Exam STK9900 spring 2017, Problem 3. (Suggested solution)
Wednesday April 17:
Computer exercises:
Code from the Datalab: R-exercise 21, R-exercise 22
Additional Markdown document with solutions (shown in class): day8_exercises
Pen and paper exercises:
- Exam STK 9900 spring 2011: Problem 3. (Sketch of solution)
- Exam STK 4900 spring 2009: Problem 2. (Sketch of solution)
- Additional exercise (if time) Exam STK9900 spring 2017, Problem 4. (Suggested solution)
Thursday April 18:
Computer exercises:
Additional Markdown document with solutions (shown in class): day9_exercises
Pen and paper exercises:
- Exam STK 9900 spring 2010: Problem 3. (Sketch of solution)
- Exam STK 4900 spring 2012: Problem 3. (Sketch of solution)
- Additional exercise (if time) Exam STK9900 spring 2017, Problem 3. (Suggested solution)
Friday April 19:
Computer exercise:
Code from the Datalab: R-exercise 25, AUC
Pen and paper exercises:
- Exam STK 9900 spring 2012 (Sketch of solution)
- Otherwise, use the opportunity today to ask about any previous computer and pen-and-paper exercises.