Welcome to STATS 305B! Officially, this course is called Applied Statistics II. Unofficially, I'm calling it Models and Algorithms for Discrete Data, because that's what it's really about. We will cover models ranging from generalized linear models to sequential latent variable models, autoregressive models, and transformers. On the algorithm side, we will cover a few techniques for convex optimization, as well as approximate Bayesian inference algorithms like MCMC and variational inference. I think the best way to learn these concepts is to implement them from scratch, so coding will be a big focus of this course. By the end of the course, you'll have a strong grasp of classical techniques as well as modern methods for modeling discrete data.
Instructor: Scott Linderman
TAs: Xavier Gonzalez and Leda Liang
Term: Winter 2023-24
Time: Monday and Wednesday, 1:30-2:50pm
Location: Room 380-380D, Stanford University
Office Hours
- Scott: Wednesday 9-10am in the 2nd floor lounge of the Wu Tsai Neurosciences Institute
- Leda: Thursday 5-7pm in Sequoia Hall, Room 207 (Bowker)
- Xavier: Friday 3-5pm in Building 360, Room 361A
Students should be comfortable with undergraduate probability and statistics as well as multivariate calculus and linear algebra. This course will emphasize implementing models and algorithms, so coding proficiency with Python is required. (HW0: Python Primer will help you get up to speed.)
This course will draw from a few textbooks:
- Agresti, Alan. Categorical Data Analysis, 2nd edition. John Wiley & Sons, 2002. link
- Gelman, Andrew, et al. Bayesian Data Analysis, 3rd edition. Chapman and Hall/CRC, 2013. link
- Bishop, Christopher. Pattern Recognition and Machine Learning. Springer, 2006. link
We will also cover material from research papers.
Please note that this is a tentative schedule. It may change slightly depending on our pace.
Date | Topic | Reading |
---|---|---|
Jan 8, 2024 | Discrete Distributions and the Basics of Statistical Inference | {cite:p}agresti2002categorical Ch. 1 |
Jan 10, 2024 | Contingency Tables | {cite:p}agresti2002categorical Ch. 2-3 |
Jan 15, 2024 | MLK Day. No class | |
Jan 17, 2024 | Logistic Regression | {cite:p}agresti2002categorical Ch. 4-5 |
Jan 22, 2024 | Exponential Families | {cite:p}agresti2002categorical Ch. 4-5 |
Jan 24, 2024 | Generalized Linear Models | {cite:p}agresti2002categorical Ch. 6 |
Jan 29, 2024 | Bayesian Inference | {cite:p}gelman1995bayesian Ch. 1 |
Jan 31, 2024 | Bayesian GLMs | {cite:p}albert1993bayesian |
Feb 5, 2024 | L1-regularized GLMs | {cite:p}friedman2010regularization and {cite:p}lee2014proximal |
Feb 7, 2024 | Midterm (in class) | |
Feb 12, 2024 | Mixture Models and EM | {cite:p}bishop2006pattern Ch. 9 |
Feb 14, 2024 | Hidden Markov Models | {cite:p}bishop2006pattern Ch. 13 |
Feb 19, 2024 | Presidents' Day. No class | |
Feb 21, 2024 | Variational Autoencoders (Demo) | {cite:p}kingma2019introduction Ch.1-2 |
Feb 26, 2024 | Recurrent Neural Networks | {cite:p}goodfellow2016deep Ch. 10 |
Feb 28, 2024 | Tranformers | {cite:p}turner2023introduction |
Mar 4, 2024 | State Space Layers (S4, S5, Mamba) Guest lecture by Jimmy Smith |
{cite:p}smith2023simplified and {cite:p}gu2023mamba |
Mar 6, 2024 | Random Graph Models | |
Mar 11, 2024 | Cancelled | |
Mar 13, 2024 | Denoising Diffusion Models | {cite:p}turner2024denoising |
There will be 5 assignments due roughly every other Friday. They will not be equally weighted. The first one is just a primer to get you up to speed; the last one will be a bit more substantial than the rest.
-
- Released Mon, Jan 8, 2024
- Due Fri, Jan 12, 2024 at 11:59pm
-
Homework 1: Logistic Regression
- Released Wed, Jan 17, 2024
- Due Fri, Jan 26, 2024 at 11:59pm
-
- Released Wed, Jan 31, 2024
- Due Wed, Feb 14, 2024 at 11:59pm
-
Homework 3: Hidden Markov Models
- Released Fri, Feb 16, 2024
- Due Mon, Feb 26, 2024 at 11:59pm
-
Homework 4: Large Language Models
- Released Wed, Feb 28, 2024
- Due Fri, Mar 15, 2024 at 11:59pm
-
Midterm Exam: In class on Wed, Feb 7, 2024
- You may bring a cheat sheet covering one side of an 8.5x11" piece of paper
-
Final Exam: Wed, March 20, 2024 from 3:30-6:30pm in Room 530-127
- In addition to reviewing the midterm and the lecture notes, you may want to try these practice problems (solutions are here).
- You may bring a cheat sheet covering both sides of an 8.5x11" piece of paper
Tentatively:
Assignment | Percentage |
---|---|
HW 0 | 5% |
HW 1-3 | 15% each |
HW 4 | 20% |
Midterm | 10% |
Final | 15% |
Participation | 5% |