Linear algebra for machine learning
Free linear algebra course from zero: vectors, matrices, matrix multiplication, determinants, eigenvectors, SVD and PCA, with NumPy.
Module 1 · Beginner
Getting started with linear algebra
What linear algebra is, why every ML model uses it, and the four objects it works with.
Module 2 · Beginner
Vectors
Arrows and lists of numbers: add them, measure them, and compare them, with pictures and NumPy.
Module 3 · Beginner
Matrices
Tables of numbers, and the operations that power every dataset and neural network.
Module 4 · Intermediate
Transformations and equations
See matrices as movements of space, and use them to solve many equations at once.
- Matrices as transformations: rotate, scale and shear
- Systems of linear equations with matrices
- Gaussian elimination explained
- The determinant explained visually
- The inverse of a matrix
- Rank of a matrix explained
- Linear independence explained
- Span, basis and dimension
- Change of basis explained visually
- Solve linear equations with NumPy
Module 5 · Advanced
Eigenvectors and decompositions
Break matrices into simpler pieces: the maths behind PCA, recommendations and compression.
- Eigenvalues and eigenvectors explained visually
- Eigendecomposition explained
- The covariance matrix explained
- Quadratic forms and positive definite matrices
- Singular value decomposition (SVD) explained
- PCA from scratch with NumPy
- Matrix factorisation for recommendation systems
Module 6 · Advanced
Linear algebra in machine learning
Where every idea in this course appears in real ML models, with projects.
- Linear algebra for machine learning, explained
- Datasets as matrices
- Linear regression with matrices: the normal equation
- Least squares as a projection
- A neural network layer is a matrix multiplication
- Tensors and broadcasting for deep learning
- Embeddings and vector search explained
- Project: compress an image with SVD
- Linear algebra interview questions