DATA SCI 306 / STATS 306: Introduction to Statistical Computing

Winter 2020

Class Information

Instructor Information

Name: Ambuj Tewari

Office: 270 West Hall

Office Hours: Mondays 11:30 am -- 1 pm and Wednesdays 9:30 -- 10 am


GSI Information

Name: Enes Dilber

Lab Webpage:

Lab Hours and Location: Wednesdays 8:30 am -- 10 am in 1570 North University Building

Office Hours and Location: Wednesdays 7:30 pm -- 9:30 pm in 2165 Undergraduate Science Building


Name: Roger Fan

Lab Webpage:

Lab Hours and Location: Mondays 4 pm -- 5:30 pm in B760 East Hall

Office Hours and Location: Mondays 2 pm -- 4 pm in 2165 Undergraduate Science Building


Name: Yifan Jin

Lab Webpage:

Lab Hours and Location: Tuesdays 10 am -- 11:30 am in B760 East Hall

Office Hours and Location: Tuesdays 3 pm -- 5 pm in 2165 Undergraduate Science Building



The final grade in the course will be determined by your scores in homework, a midterm exam, and a final exam using the weights given below

Academic Integrity

All students are expected to abide by the LSA Community Standards of Academic Integrity. Any instances of academic dishonesty will be reported to the Dean’s office.

Accommodation for Students with Disabilities

If you think you need accommodation for a disability, please let me know at your earliest convenience. Some aspects of this course, the assignments, the in-class activities, and the way the course is usually taught may be modified to facilitate your participation and progress. As soon as you make me aware of your needs, we can work with the Office of Services for Students with Disabilities (SSD) to help us determine appropriate academic accommodations. SSD (734-763-3000; typically recommends accommodations through a Verified Individualized Services and Accommodations (VISA) form. Any information you provide is private and confidential and will be treated as such.

R Notebooks

The notebooks containing lecture material are all in a github repository:

The notebooks themselves are just static documents (in JSON format) but clicking on the links will show you properly rendered notebooks thanks to the awesome rendering service at

In order to run code in these notebooks, you can simply copy-paste the code cells into RStudio. You can also run the notebooks live here: Just copy-paste github URL above into the box that says “Github repository name or URL”. Also, if you navigate to the github repository above, you will see a “launch binder” button that you press to launch the live notebooks.


Week 0 (Jan 8)

Week 1 (Jan 13, 15)

Week 2 (Jan 20, 22)

Week 3 (Jan 27, 29):

Week 4 (Feb 3, 5):

Week 5 (Feb 10, 12):

Week 6 (Feb 17, 19):

Week 7 (Feb 24, 26)

Feb 29-March 8: SPRING BREAK

Week 8 (Mar 9, 11)

Week 9 (Mar 16, 18)

Week 10 (Mar 23, 25)

Week 11 (Mar 30, Apr 1)

Week 12 (Apr 6, 8)

Week 13 (Apr 13, 15)

Week 14 (Apr 20) [Classes end on Apr 21]