DATASCI 112: Principles of Data Science

This syllabus and everything else you need will be posted on the course website: datasci112.stanford.edu.

Learning Objectives

  • Acquire and process tabular, textual, hierarchical, and geospatial data.
  • Uncover patterns by summarizing and visualizing data.
  • Apply machine learning to answer real-world prediction problems.

Course Logistics

Winter 2027 · January 4–March 12 · 5 units · Letter (ABCD/NP)

Class Instructor(s) Days Time Room
Lecture 01 Chris Hays Mon, Wed, Fri 11:30 AM – 12:20 PM CoDa B60
Discussion 02 TBD Tue, Thu 9:30 – 10:20 AM McCullough 126
Discussion 03 TBD Tue, Thu 10:30 – 11:20 AM STLC 104
Discussion 04 TBD Tue, Thu 11:30 AM – 12:20 PM Thornton 211
Discussion 05 TBD Tue, Thu 2:30 – 3:20 PM Thornton 210
Discussion 06 TBD Tue, Thu 3:30 – 4:20 PM Thornton 210
Discussion 07 TBD Tue, Thu 4:30 – 5:20 PM 160-321

DATASCI 112 is a gateway course for the Data Science BS and BA. At the start of registration, seats are reserved for undeclared students, declared Data Science majors, and declared Data Science minors. Other students may enroll one week after registration opens if seats are available. View the class in Stanford Navigator.

CS 106A or equivalent Python programming experience is recommended. Students who know another programming language can take CS 193Q to learn Python.

Course Staff

Instructor · Chris Hays

Teaching assistants

  • Duru Unsal
  • Fangzhou Luo
  • Heon Lee
  • Leon Lufkin
  • Leqi Zhou
  • Rui Sun

Discussion staff assignments and office hours are to be announced.

Contact Outside Class and Office Hours

Grading

Your final grade in the course will be determined from the following components.

Component Weight

Participation

Lecture attendance is encouraged. Lectures are not recorded, but we will try to make the slides useful for self-study.

Section attendance and participation is required. Do not take this class if you cannot commit to attending section regularly.

  • If you cannot make it to your assigned section, but you can attend another section on the same day, please e-mail your TA and the TA whose section you plan to attend. You may do this 2x throughout the quarter.
  • If you know ahead of time that you cannot make any sections that day (e.g., planned travel), you may complete the section Colab on your own and e-mail a PDF to your TA and CA before the day of section. They will grade your Colab, and this score will replace your attendance for that day. You may do this 2x throughout the quarter.
  • To allow for emergencies, we will also forgive 2 absences at the end of the quarter.
We are effectively providing flexibility for 6 sections out of 20. If you know you will miss more than 6, you should take this class another quarter.

The grade will be a holistic one, based on attendance and participation (presenting solutions a few times a quarter). This grade will distinguish between outstanding participants and people who simply met the requirements (i.e., A+ vs. A).

15%

Labs (posted on the Schedule page)

Each lab is a self-contained investigation of a data set. Each lab will be due on Gradescope at 8 AM.

Late labs are not accepted under any circumstances. You will always have 1 week to complete every lab, so plan ahead.

There will be an optional Lab 6, due in Week 10, that will replace your lowest score from Labs 1-5.

15%

Exams

There will be two 50-minute midterms during class time. Dates are to be announced.

35%

Final Project

There will be a final project with a poster session during finals week (instead of an exam).

35%
Total 100%

AI Policy

The goal of this class is to prepare you to become a data scientist. A good data scientist can express their intentions in code faster than in words (not to mention the time spent waiting for AI to generate the code). You will never become a good data scientist if you rely on AI to do the material in this class. (On the other hand, if your goal is to do some data analysis using AI, then you can just do that without taking this class.)

As a result, we require that you turn off AI tools when doing labs:

  • Click the gear icon at the top right (next to the Share button).
  • Go to the "AI Assistance" menu.
  • Uncheck "Show AI-powered inline completions".
  • Check "Hide generative AI features".
Do not ask AI to generate code. You may copy and paste your own code and error messages into AI to help you debug if you are stuck. I recommend the 10-minute rule. Try to think about the error yourself because if you solve the problem yourself, you will learn the material better. Only ask AI if you are still stuck after 10 minutes.

However, for the final project, you are allowed to and even encouraged to use AI. You can turn generative AI features in Colab when working on the final project. This will give you a chance to practice what it is like to work as a data scientist, with AI as a tool that enhances your productivity, rather than a crutch.

Regrade Policy

You may submit regrade requests for labs directly on the grading platform (platform details to be announced).

For exam regrades, contact the instructor within one week of getting the exam back. The instructor will regrade the entire exam, so your grade could go up or down.

Letter Grades

We only assign a letter grade at the end of the quarter; we do not curve or assign letter grades to individual assignments.

When assigning final letter grades, we will ensure that the median grade among freshmen and sophomores who tried their best is no lower than a B+.

What does "tried their best" mean? Attending class regularly and submitting good-faith attempts on all assignments on time.

Why do we curve the class based on freshmen and sophomores? To make the class more accessible to students with less background. This way, a freshman or sophomore is not penalized if there are a lot of upperclassmen or graduate students (who often have more background) in the class.

How are upperclassmen and graduate students graded? Once we decide the letter grade cutoffs based on freshmen and sophomores, we apply the same cutoffs to upperclassmen and graduate students. So everyone is graded on the same standard.

Disability Accommodations

Students who may need an academic accommodation based on the impact of a disability must initiate the request with the Office of Accessible Education (OAE). Professional staff will evaluate the request with required documentation, recommend reasonable accommodations, and prepare an Accommodation Letter for faculty dated in the current quarter in which the request is being made.

Once you have your letter, contact the instructor promptly so the course staff can prepare your accommodations. For urgent accommodations needs, please consult your OAE advisor. If you are not yet registered with OAE, contact the office directly at oae-contactus@stanford.edu.