by Suraj Rampure (rampure@umich.edu; rampure.org)
Overview¶
Linear algebra, calculus, and probability form the basis of modern machine learning and artificial intelligence. This course introduces linear algebra from scratch by focusing on methods and examples from machine learning. It will give students strong intuition for how linear algebra, calculus and probability are used in machine learning. While the course is primarily theoretical, we’ll look at practical applications involving real data in Python each week, so that students are able to apply what they’ve learned.
These notes are organized into 10 core chapters, plus an appendix that covers some mathematical foundations that are used throughout the course.
Introduction to Supervised Learning
Simple Linear Regression
Vectors
Linear Independence
Matrices
Linear Transformations and Projections
Regression using Linear Algebra
Gradients
Eigenvalues and Eigenvectors
Singular Value Decomposition
Each chapter consists of several pages, called “sections”, so Chapter 3.2 (for example) is a section.
Why Write These Notes?¶
There are a plethora of great resources for learning these ideas already, and I’ve read and taken inspiration from many of them (linked below) in writing these notes and preparing for EECS 245.
So, why write these notes? I – like other teachers – have a “story” in my mind that I want to tell, and that story has a particular order and flair that I haven’t seen in other books or courses on linear algebra. Most linear algebra courses start with analyzing systems of equations and unknowns. These are extremely important to machine learning, as they are in other fields, but not in an immediately obvious way (at least not to me). This course will start by introducing the foundations of supervised learning – a branch of machine learning that deals with predicting a target variable, , given a set of input variables, – and dive deep into the relevant ideas from linear algebra as they become necessary to advance this story.
This is, admittedly, an experiment in how to teach linear algebra. We may change directions in future iterations of the course if it turns out that the best practice is to cover content in a more conventional order. But, I’m excited and optimistic about this plan, and you, the student, are sure to learn a great deal regardless. The first offering in Fall 2025 went well, so I’m optimistic you’ll have a great experience.
While I could refer students to different books for different topics, I want to provide a single source of truth that I can refer students to, so that the course narrative is consistent. This is especially important since EECS 245 will be taught without slides. Instead, in each lecture, I will start with a blank whiteboard (on my iPad) and provide high-level overviews of the content. These notes will follow the same story, but with added details, examples, and exercises.
Additionally, I’m using these digital notes as an opportunity to develop interactive visualizations of various concepts in linear algebra, to bring these ideas to life.