Exercises
Many of the problems are from the book used in the course, Introduction to Linear Regression Analysis by Montgomery et al. There is a solutions manual for the book.
The book and it's solutions manual contain a few misprints, misprints_montgomery_fifth_ed.pdf Download misprints_montgomery_fifth_ed.pdf (for the fifth edition)
There are some results that are used several times in the exercises that are collected in a pdf, exercises_general_notes.pdf. Download exercises_general_notes.pdf. Note that this is not a formula sheet for the exam, just something that might help since the book isn't always clear when these results are used.
R stuff
- To start working with computer exercises, you should download the programming language R. The main page with links to downloads is https://www.r-project.org/ Links to an external site..
- R-studio is a very nice developing environment for R. It will be used in the exercise sessions as an editor. You can download it from here https://www.rstudio.com/ Links to an external site. and install it on your own computer.
- A quick introduction to R for beginners can be found here http://www.statmethods.net/ Links to an external site.
- A little longer introduction Links to an external site.
- John Cook's intro to R for programmers Links to an external site.
- Some of the exercises use data from Montgomery et al. Most of the data is found in a CRAN package called MPV, which can be downloaded from here Links to an external site. or installed directly from R-studio. The remaining data is found below.
Zoom link
Link: https://kth-se.zoom.us/j/63151958791
Links to an external site.
Meeting ID: 631 5195 8791
Exercise session 1 - 24/1, 8.00-10:00.
- introduction_to_r.pdf Download introduction_to_r.pdf
- exercises_1.pdf Download exercises_1.pdf
- Data for MPV 2.1 - 2.7: rocket.data Download rocket.data
- Handwritten notes: Exercise-session-1_handwritten.pdf Download Exercise-session-1_handwritten.pdf
- Exercise corrections: Exercise-session-1_correction.pdf Download Exercise-session-1_correction.pdf
- Code for MPV 2.1 - 2.7: MPV2_1-2_7.R Download MPV2_1-2_7.R
- Code for MPV 2.23: MPV2_23.R Download MPV2_23.R
Exercise session 2 - 28/1, 10:00-12:00.
- exercises_2.pdf Download exercises_2.pdf
- Handwritten notes: Exercise-session-2_handwritten.pdf Download Exercise-session-2_handwritten.pdf
- Exercise corrections: Exercise-session-2_correction.pdf Download Exercise-session-2_correction.pdf
- Code for MPV 3.1: MPV3_1.R Download MPV3_1.R
Exercise session 3 - 1/2, 8:00-10:00.
- exercises_3.pdf Download exercises_3.pdf
- Handwritten notes: Exercise-session-3_handwritten.pdf Download Exercise-session-3_handwritten.pdf
- Exercise corrections: Exercise-session-3_correction.pdf Download Exercise-session-3_correction.pdf
- Code for MPV 4.1-4.2: MPV4_1-4_2.R Download MPV4_1-4_2.R
- Code for MPV 5.10: MPV5_10.R Download MPV5_10.R
Exercise session 4 - 4/2, 15:00-17:00.
- exercises_4.pdf Download exercises_4.pdf
- R code for enhanced residual plots: resplot.R Download resplot.R
- Transistor data for Moore's law: moore.csv Download moore.csv
- Handwritten notes: Exercise-session-4_handwritten.pdf Download Exercise-session-4_handwritten.pdf
- Exercise corrections: Exercise-session-4_correction.pdf Download Exercise-session-4_correction.pdf
- Code for exercises 2 to 6: exercise4_2.R Download exercise4_2.R, MPV6_1.R Download MPV6_1.R, MPV9_6.R Download MPV9_6.R, MPV9_10.R Download MPV9_10.R, exercise4_6.R Download exercise4_6.R
Exercise session 5 - 17/02, 15:00-17:00.
- exercises_5.pdf Download exercises_5.pdf
- Handwritten notes: Exercise-session-5_handwritten.pdf Download Exercise-session-5_handwritten.pdf
- Exercise corrections: Exercise-session-5_correction.pdf Download Exercise-session-5_correction.pdf
- Code for James et al., 6.8.9: James6_8_9.R Download James6_8_9.R
- Code for James et al., 6.8.8: James6_8_8.R Download James6_8_8.R
Exercise session 6 - 25/2, 15:00-17:00.
- Q&A session about Project 2.
Exercise session 7 - 1/3, 15:00-17:00.
- Q&A session about Project 2.