forked from DGoretzko/slv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
508 lines (313 loc) · 24.4 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
---
title: "Supervised Learning & Visualization"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: scroll
self_contained: false
---
```{r setup, include=FALSE}
library(flexdashboard)
```
# Intro {.sidebar}
This online dashboard covers the course materials for the course [***Supervised learning and visualization***](https://osiris.uu.nl/osiris_student_uuprd/OnderwijsCatalogusSelect.do?selectie=cursus&cursus=INFOMDA1&collegejaar=2022&taal=en)
---
Course team: <br>
- [David Goretzko](https://www.uu.nl/staff/dgoretzko) <br>
- [Maarten Cruyff](https://www.uu.nl/staff/mcruyff) <br>
- [Erik-Jan van Kesteren](https://erikjanvankesteren.nl) <br>
Study load: 7.5 ECTS <br>
Assessment: Assignments and Exam <br>
---
All practicals and assignments should be hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset)
---
**LECTURES:**
| When? | | Where? |
|--------|---------|-------------|
| 11-Sep | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 18-Sep | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 25-Sep | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 02-Oct | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 09-Oct | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 16-Oct | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 23-Oct | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 30-Oct | 9 am | [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500) |
| 07-Nov | 5 pm | **Exam** |
---
# Quick Overview
## Column 1
### Statistical Learning and Visualization
In eight weeks we will dive into statistical learning and visualization in R. We will focus on supervised learning techniques and data wrangling in the context of data analysis and inference, as well as the connection to research philosophy. During every lecture we will treat a different theoretical aspect. Following each lecture there will be a computer lab exercise that connects the statistical theory to practice, as well as a Q&A meeting (Wednesdays @ 11am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500)) wherein you can pose any and all questions that remain unanswered about the course materials, theory, practice and your practical assignments.
### Assignment and Grading
The final grade is computed as follows
| Graded part | Weight |
|:-------|:------|
| Assignment 1 | 25 % |
| Assignment 2 | 25 % |
| Exam (BYOD) | 50 % |
To develop the necessary skills for completing the assignments and the presentations, `R` exercises must be made and submitted via the course Blackboard page. These exercises are not graded, but students must fulfill them to pass the course.
In order to pass the course, the final grade must be 5.5 or higher, your contribution to the course should be sufficient, all `R` exercises should be handed in and all assignments must have a passing grade. Otherwise, additional work is required concerning the assignments and/or exercises you have failed.
## Column 2
### Schedule
| Week # | Focus | Practical | Materials | Prof |
|--------|---------------------|--------|-----------|------|
| 1 | Data wrangling with `R` | `tidyverse: filter(), select(), join(), pivot(), dbplyr`, etc. | [R4DS](https://r4ds.had.co.nz) | DG |
| 2 | The grammar of graphics | `ggplot()`: `geoms`, `aesthetics`, `scales`, `themes` | [R4DS](https://r4ds.had.co.nz) | DG |
| 3 | Exploratory data analysis | `Histograms`, `density plots`, `boxplots`, etc. | [R4DS](https://r4ds.had.co.nz) [FIMD Ch1](https://stefvanbuuren.name/fimd/ch-introduction.html) | DG |
| 4 | Statistical learning: regression | `lm()`, `glm()`, `knn()` | ISLR | MC |
| 5 | Statistical learning: classification | `glm()`, trees, `lda()` | ISLR | EJvK |
| 6 | Classification model evaluation | `prop.table()`, `pROC()`, etc. | ISLR | EJvK |
| 7 | Nonlinear models | `R` formulas advanced: `I()`, splines, e.g., `bs()` | ISLR | MC |
| 8 | Bagging, boosting, random forest and support vector machines | `randomforest`, `xgboost` | ISLR | MC |
<!-- | 5 | Regression model evaluation | model comparison with cross-validation | ISLR | -->
# Course Manual
## Column 1
### Course description
Supervised learning is such an integral part of contemporary data science, that you will most likely use it dozens of times a day, without knowing it. In this class you will learn about the most effective supervised learning techniques and you will acquire the skills to implement them to work for you.We will not only discuss the theoretical underpinnings of supervised learning, but focus also on the skills and experience to rapidly apply these techniques to new problems.
During this course, participants will actively learn how to apply the main statistical methods in data analysis and how to use machine learning algorithms and visualizing techniques.
The course has a strongly practical, hands-on focus: rather than focusing on the mathematics and background of the discussed techniques, you will gain hands-on experience in using them on real data during the course and interpreting the results.
This course provides a broad introduction to supervised learning and visualization. Topics include:
- Data manipulation and data wrangling with `R`
- Data visualization
- Exploratory data analysis
- Regression and classification
- Non-linear modeling
- Bagging, boosting and ensemble learning
Students will learn to adapt these techniques in their way of thinking about analyses problems. We will consider statistical learning techniques in the context of estimation, testing and prediction. Students will learn to adapt these techniques in their way of thinking about statistical inference, which will help students to quantify the uncertainty and measure the accuracy of statistical estimates. Students will develop fundamental `R` programming skills and will gain experience with `tidyverse`, visualize data with `ggplot2` and perform basic data wrangling techniques with `dplyr`. This course makes students better equipped for a further career (e.g. junior researcher or research assistant) or education in research, such as a (research) Master program, or a PhD.
### Assignments
Students will form groups to choose work on two assignments. Students will need to perform calculations and program code for these assignments. All work needs to be combined in an easy understandable, self-contained and insightful `RStudio` project and must be submitted to the [course Blackboard page](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset). Each assignment will be graded.
### Grading
Students will be evaluated on the following aspects:
1. apply and interpret the theories, principles, methods and techniques related to contemporary data science, and understand and explain different approaches to data analysis:
- apply data wrangling and preprocessing techniques to tidy data sets
- apply, implement, understand and explain methods and techniques that are associated with statistical learning, including regression, trees, clustering, classification techniques and learning ensembles in `R`
- evaluate the performance of these techniques with appropriate performance measures.
- select appropriate techniques to solve specific data science problems
- motivate and explain the choice for techniques to investigate data problems
- implement and understand generic data science tools, such as bootstrapping, cross validation, bagging, boosting and error evaluation in `R`
- interpret and evaluate the results of analyses and explain these techniques in simple terminology to a broad audience
- understand and explain the basic principles of data visualization and the grammar of graphics.
- construct appropriate visualizations for each data analysis technique in `R`
### Relation between assessment and objective
In this course, skills and knowledge are evaluated on these separate occasions:
1. With the exam and the assignments the knowledge from methodological and statistical concepts is evaluated, as well as the application of these concepts to research scenarios. During the exam students need to interpret, evaluate and explain statistical software output and results.
2. With the practical lab and the assignments it is tested if the student has sufficient skills to solve analysis problems and execute the relevant methodology on real-life data sets.
After taking this course students can understand innovations in statistical markup, statistical simulation and reproducible research. Students are also able to approach challenges from different professional viewpoints. They have gained experience in marking up a professional manuscript and designing a state-of-the-art statistical archive in an open source repository.
# How to prepare
## Column 1
### Preparing your machine for the course
Dear all,
This semester you will participate in the **Supervised Learning & Visualization** course at Utrecht University. To realize a steeper learning curve, we will use some functionality that is not part of the base installation for `R`. Many of you are already familiar with `R`. The below guide serves as a point of departure for those who are not. The following steps guide you through installing both `R` as well as some of the necessary packages.
We look forward to seeing you all,
*David Goretzko*, *Maarten Cruyff*, and *Erik-Jan van Kesteren*
### **System requirements**
Bring a laptop computer to the course and make sure that you have full write access and administrator rights to the machine. We will explore programming and compiling in this course. This means that you need full access to your machine. Some corporate laptops come with limited access for their users, I therefore advice you to bring a personal laptop computer to the workgroup meetings.
### **1. Install `R`**
`R` can be obtained [here](https://cran.r-project.org). We won't use `R` directly in the course, but rather call `R` through `RStudio`. Therefore it needs to be installed.
### **2. Install `RStudio` Desktop**
Rstudio is an Integrated Development Environment (IDE). It can be obtained as stand-alone software [here](https://www.rstudio.com/products/rstudio/download/#download). The free and open source `RStudio Desktop` version is sufficient.
### **3. Start RStudio and install the following packages. **
Execute the following lines of code in the console window:
```{r eval=FALSE, echo = TRUE}
install.packages(c("ggplot2", "tidyverse", "magrittr", "micemd", "jomo", "pan",
"lme4", "knitr", "rmarkdown", "plotly", "ggplot2", "shiny",
"devtools", "boot", "class", "car", "MASS", "ggplot2movies",
"ISLR", "DAAG", "mice"),
dependencies = TRUE)
```
If you are not sure where to execute code, use the following figure to identify the console:
<center>
<img src="console.png" alt="HTML5 Icon" width = 70%>
</center>
Just copy and paste the installation command and press the return key. When asked
```{r eval = FALSE, echo = TRUE}
Do you want to install from sources the package which needs
compilation? (Yes/no/cancel)
```
type `Yes` in the console and press the return key.
## Column 2
### **What if the steps to the left do not work for me?**
If all fails and you have insufficient rights to your machine, the following web-based service will offer a solution.
1. Open a free account on [rstudio.cloud](https://rstudio.cloud). You can run your own cloud-based `RStudio` environment there.
2. Use Utrecht University's [MyWorkPlace](https://myworkplace.uu.nl/). You would have access to `R` and `RStudio` there. You may need to install packages for new sessions during the course.
Naturally, you will need internet access for these services to be accessed.
# Assignments
## Column 1
### Assignment 1
You can [find this year's assignment 1 here](assignments/assignment_eda.html)
Due date is Oct 3 @ 23.59pm.
### Assignment 2
You can [find this year's assignment 2 here](assignments/assignment_prediction.html)
Due date is Nov 13 @ 23.59pm.
### Rubric for Grading
You can [find the rubric that we will use for grading here](assignments/Rubric-for-Assignments.html)
### Version Control
If you want to use version control for your group work, you might want to check out [GitHub](https://github.com). It is not mandatory to use it, but if you want to give it a try, you can study [this GitHub tutorial](https://docs.github.com/en/get-started/quickstart/hello-world). You can also use [GitHub Desktop](https://desktop.github.com/) to handle your commits and merge requests. **Don't make your workflow too complicated, though!**
# Week 1
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
Please find the [Lecture Slides here](lectures/L1/Lecture-1.html)
### Practical
This week's practical is on data wrangling. The answers are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 1: Data wrangling](practicals/01_Data_Wrangling/01_Data_Wrangling.html)
- [Practical 1: Data wrangling with answers](practicals/01_Data_Wrangling/01_Data_Wrangling_Answers.html)
- [googleplaystore.csv](practicals/01_Data_Wrangling/data/googleplaystore.csv)
- [students.xlsx](practicals/01_Data_Wrangling/data/students.xlsx)
- [SLV_practical1 - or create your own project](practicals/01_Data_Wrangling/SLV_practical1.zip)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
### A must watch
The below 4-part series by Garrett Grolemund on `dplyr` and the `tidyverse` is very informative:
<br>
<center>
<iframe width="200" height="100" src="https://www.youtube-nocookie.com/embed/jOd65mR1zfw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="200" height="100" src="https://www.youtube-nocookie.com/embed/1ELALQlO-yM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<iframe width="200" height="100" src="https://www.youtube-nocookie.com/embed/Zc_ufg4uW4U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="200" height="100" src="https://www.youtube-nocookie.com/embed/AuBgYDCg1Cg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
## Column 2
### Required reading
Study the following materials
- [ISLR V2 Chapter 1](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
- [R4DS Chapters 1 and 9 - 16](https://r4ds.had.co.nz)
### Useful links
The following links may be useful
- [Gerko's quick `R` scripting course with video walkthroughs](https://www.gerkovink.com/prepR/)
- [ISLR's web page](https://www.statlearning.com)
# Week 2
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture Slides](lectures/L2/Lecture_2_WS.html)
### Practical
This week's practical is on data visualization. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 2: Data visualization](practicals/02_Data_Visualization/02_Data_Visualization.html)
- [Practical 2: Data visualization with code solutions](practicals/02_Data_Visualization/02_Data_Visualisation_answers.html)
- [SLV_practical2 - or create your own project](practicals/02_Data_Visualization/SLV_practical2.zip)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
### Must watch
The following lecture by [Dewey Dunnington](https://fishandwhistle.net) is quite informative. Also for those that already (think they) know the `ggplot2` package.
<center>
<iframe width="560" height="315" src="https://www.youtube.com/embed/nqI5CmdUYRQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
## Column 2
### Required reading
Study the following materials
- [R4DS Chapters 2 and 3](https://r4ds.had.co.nz)
### Useful links
The following links may be useful
- [A Harvard Business Review article on communication through visuals](https://hbr.org/2016/06/visualizations-that-really-work). Good to also study some content that relate to the business-side of information exchange.
- [`ggplot`'s reference page](https://ggplot2.tidyverse.org)
- [A simulation that demonstrates the (mis)use of confidence intervals](https://www.gerkovink.com/markup/Wk1/Solution_to_Ex1_future.html)
# Week 3
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture Slides part 1](lectures/L3/week-2.pdf)
- [Lecture Slides part 2](lectures/L3/Example_titanic.html)
- [The titanic set from part 2](lectures/L3/titanic.csv). I don't remember where I got it from, originally. There is also a copy of the `titanic` data in `R`, but I found this data set and its labeling to be more informative.
- A [Best Practices Guide for Data Visualization](https://royal-statistical-society.github.io/datavisguide/) published by the Royal Statistical Society for self-study.
### Practical
This week's practical is on exploratory data analysis. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 3: EDA](practicals/03_Exploratory/03_Exploratory.html)
- [Practical 3: EDA with code solutions](practicals/03_Exploratory/03_Exploratory_Answers.html)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
## Column 2
### Required reading
Study the following materials
- [R4DS Section on Explore (Chapters 2-8)](https://r4ds.had.co.nz)
- [FIMD Chapter 1 and Chapter 2.2, 2.3 and 2.6](https://stefvanbuuren.name/fimd/)
### Useful links
The following links may be useful
- [A wonderful post about misusing the y-axis](https://www.thisismetis.com/blog/misleading-graphs-manipulating-the-y-axis).
- [`ggplot`'s reference page](https://ggplot2.tidyverse.org)
- [A tool to pick color palettes](https://colorbrewer2.org/) including palettes that are color-blind accessible.
- [A color palette tutorial for seaborn, vega-altair, and ggplot2 ](https://towardsdatascience.com/how-to-use-color-palettes-for-your-data-visualization-ac4eaf3de37b)
### Must watch
The following lecture by [Edward Tufte](https://www.edwardtufte.com/tufte/) is quite nice.
<center>
<iframe width="560" height="315" src="https://www.youtube.com/embed/rHUDJ8RyseQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
# Week 4
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture 4](lectures/L4/week-4.pdf)
### Practical
This week's practical is on regression. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 4: Regression](practicals/04_Regression/04_Regression.html)
- [Practical 4: Regression with code solutions](practicals/04_Regression/04_Regression_answers.html)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
## Column 2
### Required reading
Study the following materials
-[ISLR V2 Chapter 1, 2 and 3](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
# Week 5
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture 5](lectures/L6/week-6.pdf)
### Practical
This week's practical is on classification. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 5: Classification](practicals/06_classification/06_classification.html)
- [Practical 5: Classification answers](practicals/06_classification/06_classification_answers.html)
- [data](practicals/06_classification/data.zip)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
**NOT HAND IN, BUT STILL USEFUL**: I also give you the following practical from last year. Please view and study the practical up to and including Exercise 10. No need to hand anything in. All the regularization (`glmnet`) exercises 11-19 are not relevant for this course, but you may of course use the methods in your Assignment 2 if you wish. Let me know if you have any questions.
- [Practical: Best subset selection and regularization](practicals/05_Regression_Evaluation/05_Regression_Evaluation_answers.html)
- [the generate_formulas() code](practicals/05_Regression_Evaluation/generate_formulas.R)
## Column 2
### Required reading
Study the following materials
- [ISLR V2 Sections 4.1, 4.2, 4.3, 4.4.1, 4.4.2 and 8.1 ](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
# Week 6
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture 6](lectures/L7/week-7.pdf)
### Practical
This week's practical is on classification. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 6: Classification evaluation](practicals/07_classification_evaluation/07_classification_evaluation.html)
- [Practical 6: Classification evaluation answers](practicals/07_classification_evaluation/07_classification_evaluation_answers.html)
- [data](practicals/07_classification_evaluation/data.zip)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
## Column 2
### Required reading
Study the following materials
- [ISLR V2 Sections 5.2, 8.2.1, 8.2.2, 8.2.3](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
# Week 7
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture 7](lectures/L8/week-8.pdf)
### Practical
This week's practical is on nonlinear regression. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 7: Nonlinear regression](practicals/08_nonlinear_regression/08_nonlinear_regression.html)
- [Practical 7: Nonlinear regression answers](practicals/08_nonlinear_regression/08_nonlinear_regression_answers.html)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
## Column 2
### Required reading
Study the following materials
- [ISLR V2 Sections ISLR: Chapter 7](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
# Week 8
## Column 1
### Lecture (Monday 9am - [Dalton 500 8.27](https://www.uu.nl/en/daltonlaan-500))
This week's slides:
- [Lecture 8](lectures/L9/week-9.pdf)
### Practical
This week's practical is on nonlinear regression. Code solutions are also given to you. Use these answers to help yourself when you're stuck.
- [Practical 8: Tree-based methods and SVM](practicals/09_ensemble/09_ensemble.html)
- [Practical 8: Tree-based methods and SVM answers](practicals/09_ensemble/09_ensemble_answers.html)
- [Data](practicals/09_ensemble/data.zip)
Hand in [via blackboard](https://uu.blackboard.com/webapps/blackboard/content/listContentEditable.jsp?content_id=_4472168_1&course_id=_146275_1&mode=reset).
## Column 2
### Required reading
Study the following materials
- [ISLR V2 Sections ISLR: Chapters 8.1, 8.2 and 9](https://web.stanford.edu/~hastie/ISLR2/ISLRv2_website.pdf)
# Practice Exam
## Column 1
### Practice Exam
This exam gives an idea of the type of questions that could have been expected last year. It is by no means meant to be representative in length nor difficulty with respect to the actual exam. The actual exam is usually a bit longer.
- [Last year's Practice Exam](practice_exam/SLV_Practice.pdf)
- [RMD with code answers](practice_exam/SLV_Practice.Rmd)
- [data.Rdata](practice_exam/data.Rdata)