Linear Algebra for AI
Master the language of AI: vectors, matrices, transformations, and eigenvalues -- with Python code to ground every concept. From NumPy basics to LoRA fine-tuning and mechanistic interpretability.
About This Course
Linear algebra is the mathematical backbone of modern AI and machine learning. This course teaches you to think in vectors and matrices, with every concept grounded in worked Python.
You won't just memorize formulas -- you'll build intuition for what linear transformations actually do, visualize high-dimensional spaces, and understand why eigenvalues matter for everything from Google's PageRank to neural networks.
The course bridges theory and production: you'll see how SVD powers LoRA fine-tuning, how embeddings live in vector spaces, how attention is pure linear algebra, and how quantization trades precision for speed. Every module is a narrated lesson deck with the maths typeset, and you can ask questions against the slide you are on.
An AI tutor answers questions against the slide you are on, so help stays tied to the lesson rather than to the internet at large.
Inspired by Gilbert Strang's MIT 18.06, 3Blue1Brown's Essence of Linear Algebra, and modern AI research (LoRA, mechanistic interpretability, quantization).
Prerequisites
- Basic algebra (solving equations, working with variables)
- Familiarity with Python basics helpful but not required
- No prior linear algebra experience needed
What You Will Learn
- Understand vectors, matrices, and their geometric interpretations
- Visualize transformations with matplotlib and build geometric intuition
- Solve systems of linear equations using Gaussian elimination
- Grasp linear independence, span, and basis -- the core of vector spaces
- Compute and interpret determinants, inverses, eigenvalues, and eigenvectors
- Apply PCA for dimensionality reduction on real datasets
- Use SVD for image compression and low-rank approximation
- Understand how word embeddings and LLM embeddings work geometrically
- Know how ANN algorithms (HNSW, IVF) power vector search at scale
- Read neural network architectures as chains of matrix operations
- Understand the attention mechanism (QKV) as pure linear algebra
- Explain how LoRA compresses fine-tuning via low-rank factorization
- Grasp how mechanistic interpretability uses linear directions to decode model behavior
- Understand quantization as an affine transformation trading precision for speed
Published artifact provenance
How this course was made
This record is derived from the published course and deck manifests. It describes what the artifacts document—and states what they do not.
- Source attribution
- Inspired by Gilbert Strang's MIT 18.06, 3Blue1Brown's Essence of Linear Algebra, and modern AI research (LoRA, mechanistic interpretability, quantization).
- Published lesson decks
- 16 decks published across 16 lessons
- Slides
- 241 slides across 16 decks (13–22 per deck)
- Measured narration
- 20 min; duration recorded for 1 of 16 lessons
- Estimated study time
- Approximately 16 hours of study time—not video length
- Decks generated
- Mar 5, 2026 to Aug 23, 2026
- Course manifest generated
- Aug 23, 2026
Recorded speaker configuration
- Lena Brookshost · curious
Voice ID: English_CaptivatingStoryteller - Dr. Lena Hartmannteacher · workshop
Voice ID: Elegant_Man - Kaistudent · hands_on
Voice ID: Sweet_Girl_2 - Avery Chenassistant · engaged
Voice ID: English_CalmWoman - Dr. Lena Hartmannteacher · workshop
Voice ID: Weidong2025 - Kaistudent · hands_on
Voice ID: English_CalmWoman
Lesson-by-lesson build record
| Lesson | Published | Slides | Generated | Recorded versions | Measured narration |
|---|---|---|---|---|---|
| Vectors: The Language of Data01-vectors-the-language-of-data | Yes | 21 | Aug 23, 2026 | Lecture 2026-08-23 · Deck schema v3 | Not recorded |
| Matrices as Transformations02-matrices-as-transformations | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Systems of Linear Equations03-systems-of-equations | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Vector Spaces and Subspaces04-vector-spaces-and-subspaces | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Determinants and Inverses05-determinants-and-inverses | Yes | 13 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Linear Transformations06-linear-transformations | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Eigenvalues and Eigenvectors07-eigenvalues-and-eigenvectors | Yes | 22 | Aug 23, 2026 | Lecture 2026-08-23 · Deck schema v3 | 20 min |
| PCA: Dimensionality Reduction08-pca-dimensionality-reduction | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Singular Value Decomposition09-svd-and-low-rank-approximation | Yes | 15 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Embeddings: From Words to Vectors10-embeddings-from-words-to-vectors | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Vector Search at Scale11-vector-search-at-scale | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Neural Networks as Linear Algebra12-neural-networks-as-linear-algebra | Yes | 15 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| The Attention Mechanism13-the-attention-mechanism | Yes | 15 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| LoRA: Low-Rank Adaptation14-lora-and-low-rank-adaptation | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Mechanistic Interpretability15-mechanistic-interpretability | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
| Quantization: Precision vs. Speed16-quantization-precision-vs-speed | Yes | 14 | Mar 5, 2026 | Lecture 2026-03-05 · Deck schema v3 | Not recorded |
Your Learning Path
Each module builds on the last. Take your time—the AI tutor is with you at every step.