CS109: Probability for Computer Scientists
Fall 2025
Monday, Wednesday, Friday 3:00pm - 4:20pm in-person in Hewlett 200
Course Complete: Fall 2025 CS109 course is all wrapped up. Here is a link to Win 2026: web.stanford.edu/class/archive/cs/cs109/cs109.1264/

Week 10 TODO

Finish PSet 7
Submit Challenge
Vote for Songs!
Attend PEP
Study for Final

Teaching Team

Professor: Chris Piech
Chris

Awesome TAs: cs109 @ cs.stanford.edu

This Week in CS109
Date Lecture Outside Class
Mon, Dec 1 Diffusion Final PEP
Wed, Dec 3 Future of Probability Challenge / PSet 7
Fri, Dec 5 (Optional) Review Session
Pset 7: Reinforcement
2025111908 by the Teaching Team

Problem Set #7 has been released! In this pset, you'll practice practice practice!

Extra Late Days

Based on a few requests from students we are going to grant everyone in class 2 (two) extra late days. That means you have 7 late days total across the quarter not 5. Enjoy, and use this as an opportunity to manage your time well.

Pset 6: Machine Learning
2025110720 by the Teaching Team

Problem Set #6 has been released! In this pset, you'll implement logistic regression from scratch and apply machine learning methods to real world datasets. Hope you enjoy.

CS109 Challenge!
by the Teaching Team

One of the joys of probability+programming is the ability to make something totally of your own creation. In CS109 this quarter we are hosting a Challenge where you can make anything you like using the concepts and tools we learn in class. See the Challenge handout for more details.

Pset 5: Models, Beta, and CLT
2025102917 by the Teaching Team

Problem Set #5 has been released! Explore the beauty of the Beta distribution the Central Limit Theorem and Algorithmic Analysis.

Pset 4: Models
2025101715

Problem Set #4 has been released. Practice more with inference and probabilistic models. PSET4 is due October 24th. This is the last problem set before the midterm.

Sign Up for Personalized Exam Prep (PEP)
2025101409

PEP for the midterm is next week! PEP ("Personalized Exam Prep") is a one-on-one 15-minute meeting you have with a TA in the week before the midterm (you will have another one the week before the final as well!). PEP is designed to help you figure out how to best prepare for exams. In prior quarters, students found PEP to be super helpful, so we hope you'll think so too!

Sign up for PEP here: PEP Signup Form Sign ups are first come, first served so sign up asap to get your favorite time. Check out the Ed post on PEP for FAQs.

Pset 3: Random Variables
2025101015

Problem Set #3 has been released. Practice inference and work deeper with continuous random variables.

Pset 2: Discrete Random Variables
2025100315

Problem Set #2 has been released! It features the discrete random variables we've learned in class -- you'll analyze a bloom filter (a probabilistic datastructure), tell the difference between true randomness and a human faking it, and learn about exponential backoff!

Section + Theme Song

Sign up for section using the Section Sign up Form before Sunday Sept 28th at 5pm. Suggest songs for the class playlist (also by 5pm on Sunday).

Pset 1: Core Probability
2025092415

Problem Set #1 has been released! It is due on Friday, Oct 3rd at 10:00pm Pacific. Practice working with conditional probability, independence, and Bayes' Theorem. Problems 1, 2, 3, 7 and 8 can be done with Wednesday's lecture material and the rest of the problems can be completed after Friday's lecture.

Welcome

Welcome to CS109! We are looking forward to an uplifting and exciting quarter. Class starts Monday, Sept 22nd at 3pm PT in Hewlett 200. See you there 🌱.

Getting Started in CS109

The Syllabus page has details on course logistics. Read our FAQ for more information.
The Honor Code handout describes how the Honor Code applies in the context of the work you will do in CS109.
The Schedule page has a list of all topics that we will cover in CS109, and will have links to lecture materials and concept checks.
The Office Hours page has contact information for the teaching team. Office Hours will be listed on this calendar and start on Wednesday, Sept 24th.
Section enrollment details will be released on the first day of class; you do not need to enroll via Axess


RESOURCES

Discussion
Course Reader
Syllabus
Schedule
Office Hours

Key Dates

Midterm: Oct 27th, 7p
Final: Dec 9th, 8:30a
Last lecture: Dec 3rd

Course Values

Everyone is welcome. Intellectual joy. Be kind. Be humane. Social connection. Learn by doing. Thrill of building. Adapt to new contexts.
CS109: Probability for Comp. Science
Fall 2025, MWF 3:00pm - 4:20pm, Hewlett 200

Course Complete: Fall 2025 CS109 course is all wrapped up. Here is a link to Win 2026: web.stanford.edu/class/archive/cs/cs109/cs109.1264/

Week 10 TODO

Finish PSet 7
Submit Challenge
Vote for Songs!
Attend PEP
Study for Final

Teaching Team

Professor: Chris Piech

RESOURCES


Key Dates

Midterm: Oct 27th, 7p
Final: Dec 9th, 8:30a
Last lecture: Dec 3rd

Announcements

This Week in CS109
Date Lecture Outside Class
Mon, Dec 1 Diffusion Final PEP
Wed, Dec 3 Future of Probability Challenge / PSet 7
Fri, Dec 5 (Optional) Review Session
Pset 7: Reinforcement
2025111908 by the Teaching Team

Problem Set #7 has been released! In this pset, you'll practice practice practice!

Extra Late Days

Based on a few requests from students we are going to grant everyone in class 2 (two) extra late days. That means you have 7 late days total across the quarter not 5. Enjoy, and use this as an opportunity to manage your time well.

Pset 6: Machine Learning
2025110720 by the Teaching Team

Problem Set #6 has been released! In this pset, you'll implement logistic regression from scratch and apply machine learning methods to real world datasets. Hope you enjoy.

CS109 Challenge!
by the Teaching Team

One of the joys of probability+programming is the ability to make something totally of your own creation. In CS109 this quarter we are hosting a Challenge where you can make anything you like using the concepts and tools we learn in class. See the Challenge handout for more details.

Pset 5: Models, Beta, and CLT
2025102917 by the Teaching Team

Problem Set #5 has been released! Explore the beauty of the Beta distribution the Central Limit Theorem and Algorithmic Analysis.

Pset 4: Models
2025101715

Problem Set #4 has been released. Practice more with inference and probabilistic models. PSET4 is due October 24th. This is the last problem set before the midterm.

Sign Up for Personalized Exam Prep (PEP)
2025101409

PEP for the midterm is next week! PEP ("Personalized Exam Prep") is a one-on-one 15-minute meeting you have with a TA in the week before the midterm (you will have another one the week before the final as well!). PEP is designed to help you figure out how to best prepare for exams. In prior quarters, students found PEP to be super helpful, so we hope you'll think so too!

Sign up for PEP here: PEP Signup Form Sign ups are first come, first served so sign up asap to get your favorite time. Check out the Ed post on PEP for FAQs.

Pset 3: Random Variables
2025101015

Problem Set #3 has been released. Practice inference and work deeper with continuous random variables.

Pset 2: Discrete Random Variables
2025100315

Problem Set #2 has been released! It features the discrete random variables we've learned in class -- you'll analyze a bloom filter (a probabilistic datastructure), tell the difference between true randomness and a human faking it, and learn about exponential backoff!

Section + Theme Song

Sign up for section using the Section Sign up Form before Sunday Sept 28th at 5pm. Suggest songs for the class playlist (also by 5pm on Sunday).

Pset 1: Core Probability
2025092415

Problem Set #1 has been released! It is due on Friday, Oct 3rd at 10:00pm Pacific. Practice working with conditional probability, independence, and Bayes' Theorem. Problems 1, 2, 3, 7 and 8 can be done with Wednesday's lecture material and the rest of the problems can be completed after Friday's lecture.

Welcome

Welcome to CS109! We are looking forward to an uplifting and exciting quarter. Class starts Monday, Sept 22nd at 3pm PT in Hewlett 200. See you there 🌱.

Getting Started in CS109

The Syllabus page has details on course logistics. Read our FAQ for more information.
The Honor Code handout describes how the Honor Code applies in the context of the work you will do in CS109.
The Schedule page has a list of all topics that we will cover in CS109, and will have links to lecture materials and concept checks.
The Office Hours page has contact information for the teaching team. Office Hours will be listed on this calendar and start on Wednesday, Sept 24th.
Section enrollment details will be released on the first day of class; you do not need to enroll via Axess


Course Values

Everyone is welcome. Intellectual joy. Be kind. Be humane. Social connection. Learn by doing. Thrill of building. Adapt to new contexts.