library(tidyverse)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_frac(1) %>%
mutate(team = rep(1:9, length = 17)) %>%
arrange(team)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_n(2)
Problem Sets
Problem Set 4
Instructions
- Posted on Slack under
#general
- Individual
PS04.ipynb
files- Complete
PS04.ipynb
by Thu 12/7 class time - Due Tue 12/12 9:25am on Moodle
- Complete
- In-class on Thu 12/7: “Think, Pair, Share” exercise
Clarifications:
In-Class Presentations
- If you can’t make it to lecture, it is your responsibility to send a screencast recording of you narrating your work by the end of the day.
- Groups still made at random, presenters still chosen at random
- No need to merge two files, you can select only one person’s and modify it (if at all)
- Rate your peer’s preparation using this Google Form
- Answer the sli.do poll here
***
= presented
Last First team
<chr> <chr> <int>
1 O'Meara Abbey 1
2 Martin Teddy 1
3 Yang Christy 2
4 An Rachael 2
5 Khan Nubraz 3
6 Pu Betty 3
7 Ding Jenny 4
8 Kogalovski Aleksandra 4
9 Xu Xiaoman 5
10 Qiu Chi 5
11 Knecht Beata 6 ***
12 Huang Juniper 6 ***
13 Tha Ra Wun Tint 7 ***
14 Murray Kiera 7 ***
15 Basnet Chettri Charavee 8
16 Slosser Tillie 8
Example Solutions
- Presentations:
- Prof Kim’s solution.
Problem Set 3
Instructions
- Posted on Slack under
#general
- Individual
PS03.ipynb
files- Complete
PS03.ipynb
by Tue 11/14 class time - Due Thu 11/16 9:25am on Moodle
- Complete
- In-class on Tue 11/14: “Think, Pair, Share” exercise
Clarifications:
In-Class Presentations
- Groups still made at random, presenters still chosen at random
- No need to merge two files, you can select only one person’s and modify it (if at all)
- Reminder: submission due on Moodle before next class
- Answer the sli.do poll here
- Rate your peer’s preparation using this Google Form
library(tidyverse)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_frac(1) %>%
mutate(team = rep(1:9, length = 17)) %>%
arrange(team)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_n(2)
***
= presented
Basnet Chettri Charavee 1 ***
An Rachael 1 ***
Slosser Tillie 2
O'Meara Abbey 2
Huang Juniper 3 ***
Murray Kiera 3 ***
Tha Ra Wun Tint 4
Yang Christy 4
Xu Xiaoman 5
Pu Betty 5
Knecht Beata 6
Qiu Chi 6
Martin Teddy X1
Kogalovski Aleksandra X1
Ding Jenny X2
Anesko Greta X2
Khan Nubraz X3
Example Solutions
- Presentations:
- Prof Kim’s solution. Note a couple of things I did have time to address b/c of my conference last week:
- I didn’t polish my graphs. (An example of bad role modeling on my part: “Do as I say, not do as I do.” Apologies)
- I realized I calculated the seasonal naive forecast wrong! Where as you were supposed to using only the prior year’s worth of seasons (i.e. 4 time points each corresponding to the last four quarters), I computed the average for all past quarters! i.e. all springs, all summers, etc. And thus my solution was more complicated than necessary.
Problem Set 2
- Slides on PS02 data’s context. Prof Kim quote: “Numbers are numbers, but data has context”
- My thoughts about ChatGPT. It is a very powerful tool, but you need to be:
- Knowledgeable enough to understand the code
- Experienced enough in your domain and programming to know what to prompt
- Disciplined enough to sanity check your results
Instructions
- Posted on Slack under
#general
- Individual
PS02.ipynb
files- Complete
PS02.ipynb
by Tue 10/24 class time - Due Thu 10/26 9:25am on Moodle
- Complete
- In-class on Tue 10/24: “Think, Pair, Share” exercise
Clarifications:
- Use the
dbh
variable, not thedbh_orig
variable. - D’oh! Say you do 5 queries on ChatGPT and then get the share URL link. Now saw you do a 6th query. The share URL does NOT reflect this 6th search. So you will need to get the share URL link AFTER you’re done your PS02.
In-Class Presentations
- Groups still made at random, presenters still chosen at random
- No need to merge two files, you can select only one person’s and modify it (if at all)
- Reminder: submission due on Moodle before next class
- Answer the sli.do poll here
- Rate your peer’s preparation using this Google Form
library(tidyverse)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_frac(1) %>%
mutate(team = rep(1:9, length = 17)) %>%
arrange(team)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_n(2)
***
= presented
1 Xu Xiaoman 1
2 An Rachael 1
3 Pu Betty 2 ***
4 Qiu Chi 2 ***
5 Tha Ra Wun Tint 3
6 Martin Teddy 3
7 Knecht Beata 4
8 Murray Kiera 4
9 O'Meara Abbey 5 ***
10 Yang Christy 5 ***
11 Basnet Chettri Charavee 6
12 Huang Juniper 6
13 Ding Jenny 7
14 Slosser Tillie 7
15 Kogalovski Aleksandra 8
16 Anesko Greta 8
Example Solutions
- Presentations:
- Prof Kim’s solution
Problem Set 1
Instructions
- Posted on Slack under
#general
- Individual
PS01.ipynb
files- Due Thu 10/5 9:25am on moodle (see Moodle link on top right of page)
- Submit both a
PS01.ipynb
where all code is reproducible and a.csv
file of your data
- In-class on Thu 10/5: “Think, Pair, Share” exercise
- I will randomly create teams of pairs. Any remaining odd number student will be paired with me.
- You will show each other your code and prepare a single mini-presentation
.ipynb
- I will pick 2-3 pairs at random to present their work in front of the class
- You will rate your peer’s preparation using this Google Form
Clarifications added afterwards:
- Dataset should be at least 100 rows
- For mini-presentation, you will have to choose one of the two datasets
- Do problem set in python
In-Class Presentations
- I will make groups at random using code below. I will join a group if there is an odd person left out.
- Work together for 20 minutes to come up with single
.ipynb
- I will pick two teams at random to present to the class
- I will present my work to the class. click here
- Answer the sli.do poll here
- Rate your peer’s preparation using this Google Form Code to generate groups:
library(tidyverse)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_frac(1) %>%
mutate(team = rep(1:9, length = 17)) %>%
arrange(team)
read_csv("390.csv") %>%
filter(First != "Albert") %>%
sample_n(2)
***
= presented
1 Yang Christy 1
2 O'Meara Abbey 1
3 Slosser Tillie 2 ***
4 Murray Kiera 2 ***
5 Khan Nubraz 3
6 Ding Jenny 3
7 Anesko Greta 4
8 Martin Teddy 4
9 Xu Xiaoman 5
10 An Rachael 5
11 Kogalovski Aleksandra 6
12 Qiu Chi 6
13 Knecht Beata 7 ***
14 Basnet Chettri Charavee 7 ***
15 Tha Ra Wun Tint 8
16 Huang Juniper 8
17 Pu Betty 9