CIS 3333: Mathematics of Machine Learning (Fall 2026)

Note: This class starts the week of August 31st. There is no class on August 26.

Machine learning is the study of algorithms (i.e. gradient descent) that learn functions (i.e. deep networks) from experience (i.e. data). Behind this simple statement, is a lot of mathematical scaffolding: statistics for handling data, optimization for understanding learning algorithms, and linear algebra to create expressive models.

However, the typical computer science degree typical requires only a basic understanding of these mathematical concepts. This means that taking an advanced machine learning course may require taking multiple courses across graduate statistics and mathematics just to get up to speed. It will also get you used to the mathematical lingo of machine learning. If you’ve ever tried reading an ML paper and found it difficult to follow the concepts and equations, this might be the course for you.

To better prepare undergraduates for machine learning coursework and research, this course aims to provide the missing background required to be able understand mathematical concepts commonly used in machine learning. This course will be based on the Mathematics for Machine Learning textbook, which covers the mathematical foundations of machine learning as well as examples of how machine learning algorithms that use these foundations.

Course Attributes:

Instructor: Eric Wong (exwong@cis)

Class: Monday and Wednesday, 3:30PM-4:59PM, CHEM 109

Website: https://www.cis.upenn.edu/~exwong/moml/

Registration: To register, you need to sign up both on courses.upenn.edu and also submit the questionaire on the CIS waitlist before I can add you to the course.

Prerequisites: We will assume you’ve taken a basic introductory course in calculus, probability, and linear algebra. For a typical degree in computer science at Penn, this is typically:

If you have 2 out of the 3 pre-requisites, you can review the missing background and take the course. The pre-requisite topics are covered in chapters 2, 5, and 6 of the course textbook. The corresponding module may be more challenging than the others, but can be done successfully. If you are missing more than one pre-requisite, you may find this course to be extra challenging.

Structure: We will build upon these foundations and cover a more in depth study suited for machine learning problems. Each focus area will be structured in three parts as (1) review of prior material, (2) new ML fundamentals, and (3) an ML example. The review will quickly go over concepts that were already covered in a previous course. The ML fundamentals will introduce the advanced concepts for machine learning. The example will show you how these fundamentals are used in practice. These focus areas are:

  1. Probability & statistics. Review: probability spaces and discrete probability. Fundamentals: continuous probability. Example: generalization bounds.
  2. Linear & functional analysis. Review: linear algebra. Fundamentals: function spaces. Example: representer theorems.
  3. Calculus & optimization. Review: Multivariate calculus. Fundamentals: optimization. Example: convergence rates.

These topics will be accompanied with several examples demonstrating how these core techniques are used to prove fundamental results about machine learning algorithms. In particular, we will prove several hallmark theoretical results from machine learning: genearlization bounds that explain why learning from data works, representer theorems that identify what functions models can learn, and convergence rates that control how long it takes to learn models.

Grading: There will be 3 midterms at 15% each, one per focus area, and 5% for in-class participation. The remaining 50% comes from approximately 10 homeworks (estimated weekly).

There will be homeworks, but how they are assessed and submitted is TBD and will be announced in class.

Schedule

Tentative schedule.

Date Topic Notes  
August 26 No class    
August 31 Overview (1.1, extra notes)  
Probability & statistics   (probability lecture notes)  
September 2 Review Discrete + Continuous Probability
Reading: Chapters 6.1, 6.2
 
September 7 Labor day (no class)    
September 9 Review Discrete + Continuous Probability
Reading: Chapters 6.3, 6.4
 
September 14 Fundamentals Mean and Variance, Gaussian distribution
Reading: Chapters 6.4, 6.5
 
September 16 Fundamentals Exponential Distributions and Conjugacy
Reading: 6.6
 
September 21 Fundamentals Concentration inequalities (Markov, Chebyshev, WLLN)
(concentration lecture notes)
 
September 23 Example Generalization bounds  
September 28 Example Generalization bounds  
September 30 Midterm 1    
October 1-4 Fall term break (no class)    
Linear & functional analysis      
October 5 Review Linear algebra (2.2,2.4)
(linear algebra lecture notes)
 
October 7 Review Linear algebra (2.5,2.6)  
October 12 Fundamentals Change of Basis (2.7)  
October 14 Fundamentals Inner product spaces and Orthogonality (3.1-3.8)  
October 19 Fundamentals Decompositions (4.1, 4.2, 4.4)  
October 21 Example Functional analysis, Hilbert spaces, Kernels (12.4)
(representer lecture notes)
 
October 26 Example Representer theorems  
October 28 Midterm 2    
Calculus & optimization      
November 2 Review Multivariate calculus (5.1-5.4)
(calculus notes)
 
November 4 Review Multivariate calculus (5.5-5.7)  
November 9 Fundamentals Multivariate Taylor Series (5.8-5.9)  
November 11 Fundamentals Gradient Descent (7.1)
(continuous optimization notes)
 
November 16 Fundamentals Constrained and Convex Optimization (7.2-7.3)  
November 18 Fundamentals Conjugates & Taylor’s Theorem
(SGD convergence notes)
 
November 23 Example Convergence analysis  
November 25 Friday class schedule (no class)    
November 26-29 Thanksgiving break (no class)    
November 30 Example Convergence analysis  
December 2 Midterm 3    
December 7 No class (NeurIPS)    
December 17 Term ends