-
Notifications
You must be signed in to change notification settings - Fork 3
/
dsci-100-ssc-2019.Rmd
445 lines (279 loc) · 11.1 KB
/
dsci-100-ssc-2019.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
---
title: 'DSCI 100: Introduction to Data Science'
subtitle: "Course Design Intent & Lessons Learned"
author: "Tiffany A. Timbers (@TiffanyTimbers)"
institute: "University of British Columbia"
date: "2019/05/24 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
class: middle
# DSCI 100 - Introduction to Data Science
*Use of data science tools to summarize, visualize, and analyze data. Sensible workflows and clear interpretations are emphasized*
Links:
- [UBC course calendar](https://courses.students.ubc.ca/cs/courseschedule?pname=subjarea&tname=subj-course&dept=DSCI&course=100)
- [Course repository on GitHub](https://github.com/UBC-DSCI/dsci-100)
---
# Design Intent
<img src="https://2.bp.blogspot.com/--nwHn7d6qbk/Vs8ukMIaVmI/AAAAAAAAej8/fBg9o4i2i58/s1600/good-intentions.jpg" width="700">
---
class: middle
# Design Intent
1. Introduce Data Science to undergraduates in an authentic way
2. Use pedagogical best practices
3. Reduce barriers to entry and success
---
# Learner Personas
*intended audience*
prerequisite: MATH 12
--
*Emily is a first year undergraduate who is thinking of becoming a data analyst after she graduates. She only has grade 12 Math. She has heard of the R programming language and knows it is used at her university in many statistics courses (which she plans to take) but never used it (or any other programming language) before. She is finding university very financially challenging and can only afford a Chrome book.*
--
*Mohammed is fourth year Biology undergraduate who plans to attend graduate school next year. His undergraduate honours thesis project requires analysis of data sets that are too big to be opened in JMP, the only data analysis software he has ever used. His thesis supervisor suggested he learn R to do the analysis. The supervisor gave him a book to read to do this, but Mohammed is having a hard time staying motivated doing this on his own without any feedback.*
---
# Our actual learners
.pull-left[
<img src="img/year.png" width="250">
<img src="img/program.png" width="250">
]
.pull-right[
<img src="img/pre-confidence.png" width="800">
]
---
# High-level learning goals of this course
At the end of the course, students will know how to:
--
- Use modern reproducible tools (Jupyter notebooks, R, `tidyverse` & `caret` R packages) to do data analysis
--
- Recognize when a data science problem can be solved by classification, regression\* or clustering (_ \* in a predictive context only_)
--
- Use R to solve classification, regression and clustering problems, and correctly interpret and communicate the results
---
class: middle
# Course organization and mechanics
.pull-left[
- Two 90 min meetings a week (lecture + tutorial)
- 3/4 flipped classroom
- paperless course
- ~ 60% of assessments were autograded
]
.pull-right[
| Deliverable | % grade |
|------------|----------|
| Lecture worksheets | 5 |
| Tutorial problem sets | 15 |
| Group project | 20 |
| Two quizzes/exams | 20 |
| Final exam | 40 |
]
---
class: inverse, middle
# Introduce Data Science to undergraduates in an authentic way
- Practice what you preach (e.g., teaching materials & tools)
- Give students many opportunities to learn and practice Data Science tools and workflows
---
# Textbook/readings
No modern yet accessible textbooks available that are suitable for our target learners... at least that I am aware of...
--
... so we wrote our own using the `bookdown` R package!
.pull-left[
<img src="https://bookdown.org/yihui/bookdown/images/logo.png" width="150">
]
.pull-right[
**An Introduction to Data Science**
by Tiffany Timbers, Melissa Lee & Samuel Hinshaw
https://ubc-dsci.github.io/introduction-to-datascience/
]
- still a work in progress (planned edits/updates happening this summer)
- [open source](https://github.com/UBC-DSCI/introduction-to-datascience) and licensed [CC BY 2.5 CA](https://creativecommons.org/licenses/by/2.5/ca/)
---
# Lecture worksheets & tutorial homework
.pull-left[
<img src="https://jupyter.org/assets/main-logo.svg" width="250">
]
.pull-right[
- Jupyter notebooks are literate code documents similar to R Markdown
- Markdown and LaTeX rendering in developing environment makes them easier to read while editing
- notebooks can be manually or autograded using an open source tool, [nbgrader](https://nbgrader.readthedocs.io/en/stable/)
]
Examples of DSCI 100 worksheets:
- [worksheet_01](https://github.com/UBC-DSCI/dsci-100/blob/master/materials/worksheet_01/worksheet_01.ipynb)
- [worksheet_08](https://github.com/UBC-DSCI/dsci-100/blob/master/materials/worksheet_08/worksheet_08.ipynb)
---
# Group project
End product is a self-contained reproducible data analysis and report inside a Jupyter notebook
<img src="img/jupyter_project_screenshot.png" width="700">
---
class: inverse, middle
# Use pedagogical best practices
- Case studies
- Practice with immediate feedback
- Active learning activities
---
# Case studies
Each topic was taught within the context of Data Science case studies:
<img src="https://d33wubrfki0l68.cloudfront.net/795c039ba2520455d833b4034befc8cf360a70ba/558a5/diagrams/data-science-explore.png" width="700">
*source: [R for Data Science](https://r4ds.had.co.nz/) by Garrett Grolemund & Hadley Wickham*
---
# Practice with immediate feedback
- autograding via nbgrader has the added advantage that students can run the test to assess if their answer is correct
--
- *they also get to learn about tests as a side-affect*
--
- we used 3 types of exercises:
- multiple choice questions
- code & run with fill in the blanks
- classic code & run
---
class: middle
## Code and run examples
<img src="img/cnr1.png" width="1000">
---
class: middle
## Code and run examples
<img src="img/cnr2.png" width="1000">
---
class:middle
# Active learning activites
Most lectures and some tutorials had in-class activities, examples include:
- pair/group programming challenges
- tactile exercises
- dance/role-playing
---
## Example pair/group programming challenge
**Instructions to students:** Can petal length and width be used to separate the Iris flower species? Create an effective plot to answer this question! When you are done, share your code on the class forum.
**Then bring everyone together to discuss a solution from the class forum:**
<img src="img/class_activity_group_programming.png" width="550">
---
## Example pair/group programming challenge
The screens in the DSCI 100 classroom greatly facilitated these activites:
<img src="https://learningspaces.ubc.ca/sites/learningspaces.ubc.ca/files/styles/room_images/public/classroom-images/ORCH%204074-3-2.JPG?itok=26VLoCsA&c=67023bb16f7f8c344c08cb93eef0f4d6" width="800">
---
## Example tactile exercise
At the beginning of a tutorial on classification of the handwritten digits data set it is very hard for students to understand how you go from images like those shown below to tabular data for k-nn classification.
<img src="https://assets.digitalocean.com/articles/handwriting_tensorflow_python3/wBCHXId.png">
---
## Example tactile exercise
<img src="img/grids.png" width="500">
**Materials:** scissors, tape & printed images (above)
**Exercise:** For each grid:
- give each square an estimated value for pixel intensity (0 for completely white, 1 for completely black)
- use the scissors to cut the printed images into rows
- with tape, paste the rows together to get a single row
---
## Example of dance/role-playing
To reinforce the algorithm behind Kmeans clustering:
<img src="img/kmeans_materials.png" width="550">
**Set-up:**
- TA's wear coloured t-shirts & students have a post it of each colour
- one post-it note for each student has an asterisk (random)
**Exercise:**
1. students hold up post-it with asterisk
2. TA's move the center of the students holding up the colour corresponding to their shirt
3. students look for the closest TA and update the colour of the post-it they are holding to match
4. iterate over 2 & 3 until things stop changing
---
class: inverse, middle
# Reducing barriers to entry and success
- Gender and cultural minorities are under represented in STEM
- Aim: remove as many barriers as possible for entry & success in DSCI 100
---
class: middle
## How?
- Minimal pre-requisites (MATH 12)
- Anonymous class discussion forum (Piazza)
- Formal and public course code of conduct
- **Web server to provide access to homework via the course learning management system (LMS)!**
---
class: middle
## A JupyterHub server accessed via the course LMS
- Did not want to relying on computer labs and/or managing student installation of course software
- Students access homework and necessary software via a button inside course LMS (e.g., Canvas, EdX)
---
class: center, middle
# [Demonstration time!](https://canvas.ubc.ca/courses/19078)
---
class: middle
## Experiment with JupyterHub yourself!
The below links let you access the homework for DSCI 100 via a JupyterHub server that uses Google authentication (and therefore open to everyone):
- [worksheet_01](https://cybera.syzygy.ca/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FUBC-DSCI%2Fdsci-100&branch=master&urlpath=tree%2Fdsci-100%2Fmaterials%2Fworksheet_01%2Fworksheet_01.ipynb)
- [worksheet_08](https://cybera.syzygy.ca/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FUBC-DSCI%2Fdsci-100&branch=master&urlpath=tree%2Fdsci-100%2Fmaterials%2Fworksheet_08%2Fworksheet_08.ipynb)
---
class: middle
# Exit survey results
*16 students have completed our exit survey, so far...*
.pull-left[
- **94%** student respondents reported they are **more interested in taking additional Data Science courses**
- **69%** of students said they perceive **every topic in the course as valuable**
]
.pull-right[
<img src="img/confidence.png" width="800">
]
---
class: middle
# Exit survey results
.pull-left[
### Topics reported as most valuable
- Data Wrangling
- Data visualization
- Modelling/prediction/machine learning
- Practical/hands on work with data
- R programming language
- Working in a group
- Jupyter notebooks
- Git & GitHub
- Scraping data off the web
]
.pull-right[
### Topics reported as least valuable
- R programming language
- Git & GitHub
- **Visualizing high dimensional data visualization**
- Scraping data off the web
]
**_bolded terms do not intersect these two lists_**
---
# Lessons learned
Many, but here are the big 3:
--
1. May not have enough time and learner prior knowledge & motivation to teach Git & GitHub
--
2. Assessing incoming and exiting knowledge is difficult
--
3. Have many eyeballs review autograded questions
---
# Acknowledgements
.pull-left[
#### DSCI 100 Development:
- Paul Gustafson
- Matias Salibian-Barrera
- Will Welch
- Nancy Heckman
- Tiffany Timbers
- Melissa Lee
- Samuel Hinshaw
- Melissa Guzman
- Harmeet Gill
- Ian Flores Siaca
]
.pull-right[
#### DSCI 100 Infrastructure:
- Ian Allison
- Samuel Hinshaw
- The Ha
- Calvin Leung
- Yuvi Pandas
#### DSCI 100 Teaching Team:
- Tiffany Timbers
- Aaron Quinton
- Harmeet Gill
- Ian Flores-Siaca
]
---
class: inverse, middle, center
# Questions?