STA 199: Introduction to Data Science and Statistical Thinking

This page contains an outline of the topics, content, and assignments for the semester. Note that this schedule will be updated as the semester progresses and the timeline of topics and assignments might be updated throughout the semester.

Lectures and labs Application exercises Homework
Lecture slides Exercises Questions
Lecture notes Suggested answers Model answers
Labs
WEEK DATE TOPIC READINGS VIDEOS DUE
1 Mon, Aug 24 Hello World and Hello STA 199! Syllabus


Wed, Aug 26 Meet the toolkit r4ds - intro
ims - chp 1
R and Positron
Quarto
First data viz with UN Votes
Getting to know you survey | 11:59 pm

Thu, Aug 27 Lab 0: Mise en place

Lab 0 | End of lab
2 Mon, Aug 31 Grammar of data visualization r4ds - chp 1
ims - chp 4
Visualizing data
Building a plot with ggplot2
Grammar of graphics
First look at Palmer Penguins


Wed, Sep 2 Grammar of data transformation r4ds - chp 2
r4ds - chp 3.1-3.5
Grammar of data transformation
Flights and pipes


Thu, Sep 3 Lab 1: What’s streaming around the world?

Lab 1 | End of lab
3 Mon, Sep 7
🛠️ No lecture - Labor Day



Wed, Sep 9 Exploratory data analysis I r4ds - chp 3.6-3.7 Visualizing and summarizing categorical data
Visualizing and summarizing numerical data
Visualizing and summarizing relationships
Star Wars characters
  HW 1 | 11:59 pm

Thu, Sep 10 Lab 2: Get in teams, then group_by() r4ds - chp 4
Lab 2 | End of lab
4 Mon, Sep 14 Exploratory data analysis II ims - chp 5
ims - chp 6
Diving deeper with Palmer Penguins

Wed, Sep 16 Tidying data r4ds - chp 5 Tidy data
Tidying data
Country populations over time
  HW 2 | 11:59 pm

Thu, Sep 17 Lab 3: The one with all the pivoting

Lab 3 | End of lab
5 Mon, Sep 21 Joining data r4ds - chp 19.1-19.3 Joining data
Continent populations


Wed, Sep 23 Data types and classes r4ds - chp 16 Data types
Data classes
That’s my type
  HW 3 | 11:59 pm

Thu, Sep 24 Lab 4: JOINing the Olympic Gymnastics Committee
Project: Team preferences


Lab 4 | End of lab
6 Mon, Sep 28 Importing and recoding data r4ds - chp 7
r4ds - chp 17.1 - 17.3
Importing data
Halving CO2 emissions
Student survey


Wed, Sep 30 Web scraping a single page r4ds - chp 24.1 - 24.6 Web scraping basics
Scraping an eCommerce page
  HW 4 | 11:59 pm

Thu, Oct 1 Project: Milestone 1 - Working collaboratively Merge conflicts
Project description

PM 1 | End of lab
7 Mon, Oct 5 Exam 1 review

PE 1 | 11:59 pm

Wed, Oct 7
Exam 1



Thu, Oct 8 Project: Milestone 2 - Proposal

PM 2 | End of lab
(Can turn in until 11:59 pm on Fri, Oct 9 without penalty)
8 Mon, Oct 12
🍂 No Lecture - Fall Break



Wed, Oct 14 Web scraping many pages r4ds - chp 25.1 - 25.2 Scraping many eCommerce pages
Web scraping considerations


Thu, Oct 15 Project: Milestone 3 - Improve & progress I Tidyverse style guide - Chp 1-5
PM 3 | End of lab
(Optional) Midsemester course feedback | 11:59 pm
9 Mon, Oct 19 Data science ethics
Misrepresentation
Data privacy
Algorithmic bias
Sectors and services
PE 2 | 11:59 pm

Wed, Oct 21 Linear regression with a single predictor ims - chp 7.1
ims - chp 7.2
ims - chp 7.3
The language of models
Linear regression with a numerical predictor
Modeling fish


Thu, Oct 22 Project: Milestones 4 + 5 - Peer review + Improve & progress II

PM 4 + 5 | End of lab
10 Mon, Oct 26 Linear regression with categorical predictors and outliers
Linear regression with a categorical predictor
Outliers in linear regression
PE 3 | 11:59 pm

Wed, Oct 28 Linear regression with multiple predictors ims - chp 8.1-8.2
ims - chp 8.3-8.5
Linear regression with multiple predictors
Main and interaction effects
Modeling interest rates
  HW 5 | 11:59 pm

Thu, Oct 29 Lab 5: Linear models

Lab 5 | End of lab
11 Mon, Nov 2 Model selection and overfitting
Developing and communicating data science results
ims - chp 6
r4ds - chp 10



Wed, Nov 4 Logistic regression I ims - chp 9 Logistic regression
Building a spam filter


Thu, Nov 5 Project: Milestone 6 - Presentation

PM 6 | Start of lab
12 Mon, Nov 9 Logistic regression II
Clasification and decision errors
Overfitting and spending your data


Wed, Nov 11 Spending your data
Forest classification HW 6 | 11:59 pm

Thu, Nov 12 Lab 6: Logistic models

Lab 6 | End of lab

Fri, Nov 13


PM 7 | 11:59 pm
13 Mon, Nov 16 Exam 2 review

PE 4 | 11:59 pm

Wed, Nov 18
Exam 2



Thu, Nov 19 Lab 7: Leavin’ on a jet plane, confidently
Quantifying uncertainty Lab 7 | End of lab
14 Mon, Nov 23 Quantifying uncertainty with bootstrap intervals ims - chp 11
ims - chp 12
Bootstrapping
Bootstrapping Duke Forest houses


Wed, Nov 25
🦃 No lecture - Thanksgiving



Thu, Nov 26
🦃 No lab - Thanksgiving


15 Mon, Nov 30 Making decisions with randomization tests ims - chp 11 Hypothesis testing

Wed, Dec 2 Looking further

HW 7 | 11:59 pm

Thu, Dec 3 Lab 8: Inference

Lab 8 | End of lab
16 Mon, Dec 7
Final review (10 - 11:15 am, Old Chem 116)



Thu, Dec 10
Final exam (9 am - 12 pm)


WEEK DATE TOPIC READINGS VIDEOS DUE
1 Mon, Aug 24 Hello World and Hello STA 199! Syllabus


Wed, Aug 26 Meet the toolkit r4ds - intro
ims - chp 1
R and Positron
Quarto
First data viz with UN Votes
Getting to know you survey | 11:59 pm

Thu, Aug 27 Lab 0: Mise en place

Lab 0 | End of lab
2 Mon, Aug 31 Grammar of data visualization r4ds - chp 1
ims - chp 4
Visualizing data
Building a plot with ggplot2
Grammar of graphics
First look at Palmer Penguins


Wed, Sep 2 Grammar of data transformation r4ds - chp 2
r4ds - chp 3.1-3.5
Grammar of data transformation
Flights and pipes


Thu, Sep 3 Lab 1: What’s streaming around the world?

Lab 1 | End of lab
3 Mon, Sep 7
🛠️ No lecture - Labor Day



Wed, Sep 9 Exploratory data analysis I r4ds - chp 3.6-3.7 Visualizing and summarizing categorical data
Visualizing and summarizing numerical data
Visualizing and summarizing relationships
Star Wars characters
  HW 1 | 11:59 pm

Thu, Sep 10 Lab 2: Get in teams, then group_by() r4ds - chp 4
Lab 2 | End of lab
4 Mon, Sep 14 Exploratory data analysis II ims - chp 5
ims - chp 6
Diving deeper with Palmer Penguins

Wed, Sep 16 Tidying data r4ds - chp 5 Tidy data
Tidying data
Country populations over time
  HW 2 | 11:59 pm

Thu, Sep 17 Lab 3: The one with all the pivoting

Lab 3 | End of lab
5 Mon, Sep 21 Joining data r4ds - chp 19.1-19.3 Joining data
Continent populations


Wed, Sep 23 Data types and classes r4ds - chp 16 Data types
Data classes
That’s my type
  HW 3 | 11:59 pm

Thu, Sep 24 Lab 4: JOINing the Olympic Gymnastics Committee
Project: Team preferences


Lab 4 | End of lab
6 Mon, Sep 28 Importing and recoding data r4ds - chp 7
r4ds - chp 17.1 - 17.3
Importing data
Halving CO2 emissions
Student survey


Wed, Sep 30 Web scraping a single page r4ds - chp 24.1 - 24.6 Web scraping basics
Scraping an eCommerce page
  HW 4 | 11:59 pm

Thu, Oct 1 Project: Milestone 1 - Working collaboratively Merge conflicts
Project description

PM 1 | End of lab
7 Mon, Oct 5 Exam 1 review

PE 1 | 11:59 pm

Wed, Oct 7
Exam 1



Thu, Oct 8 Project: Milestone 2 - Proposal

PM 2 | End of lab
(Can turn in until 11:59 pm on Fri, Oct 9 without penalty)
8 Mon, Oct 12
🍂 No Lecture - Fall Break



Wed, Oct 14 Web scraping many pages r4ds - chp 25.1 - 25.2 Scraping many eCommerce pages
Web scraping considerations


Thu, Oct 15 Project: Milestone 3 - Improve & progress I Tidyverse style guide - Chp 1-5
PM 3 | End of lab
(Optional) Midsemester course feedback | 11:59 pm
9 Mon, Oct 19 Data science ethics
Misrepresentation
Data privacy
Algorithmic bias
Sectors and services
PE 2 | 11:59 pm

Wed, Oct 21 Linear regression with a single predictor ims - chp 7.1
ims - chp 7.2
ims - chp 7.3
The language of models
Linear regression with a numerical predictor
Modeling fish


Thu, Oct 22 Project: Milestones 4 + 5 - Peer review + Improve & progress II

PM 4 + 5 | End of lab
10 Mon, Oct 26 Linear regression with categorical predictors and outliers
Linear regression with a categorical predictor
Outliers in linear regression
PE 3 | 11:59 pm

Wed, Oct 28 Linear regression with multiple predictors ims - chp 8.1-8.2
ims - chp 8.3-8.5
Linear regression with multiple predictors
Main and interaction effects
Modeling interest rates
  HW 5 | 11:59 pm

Thu, Oct 29 Lab 5: Linear models

Lab 5 | End of lab
11 Mon, Nov 2 Model selection and overfitting
Developing and communicating data science results
ims - chp 6
r4ds - chp 10



Wed, Nov 4 Logistic regression I ims - chp 9 Logistic regression
Building a spam filter


Thu, Nov 5 Project: Milestone 6 - Presentation

PM 6 | Start of lab
12 Mon, Nov 9 Logistic regression II
Clasification and decision errors
Overfitting and spending your data


Wed, Nov 11 Spending your data
Forest classification HW 6 | 11:59 pm

Thu, Nov 12 Lab 6: Logistic models

Lab 6 | End of lab

Fri, Nov 13


PM 7 | 11:59 pm
13 Mon, Nov 16 Exam 2 review

PE 4 | 11:59 pm

Wed, Nov 18
Exam 2



Thu, Nov 19 Lab 7: Leavin’ on a jet plane, confidently
Quantifying uncertainty Lab 7 | End of lab
14 Mon, Nov 23 Quantifying uncertainty with bootstrap intervals ims - chp 11
ims - chp 12
Bootstrapping
Bootstrapping Duke Forest houses


Wed, Nov 25
🦃 No lecture - Thanksgiving



Thu, Nov 26
🦃 No lab - Thanksgiving


15 Mon, Nov 30 Making decisions with randomization tests ims - chp 11 Hypothesis testing

Wed, Dec 2 Looking further

HW 7 | 11:59 pm

Thu, Dec 3 Lab 8: Inference

Lab 8 | End of lab
16 Mon, Dec 7
Final review (10 - 11:15 am, Old Chem 116)



Thu, Dec 10
Final exam (9 am - 12 pm)