Linear Algebra
Learn Linear Algebra from everyday stories and live visual sandboxes — from pixels & embeddings to Attention QKᵀ, Ridge Regression, PCA, SVD/LoRA fine-tuning, and Backpropagation.
Modern AI doesn't run on if-statements — it runs on matrix multiplications on GPUs. Every dataset is a matrix, every image/prompt is a tensor, every RAG search is a dot product, and every neural network training step is matrix calculus.
Debug PyTorch shape mismatches in seconds, implement Transformer Attention (QKᵀ/√d) & LoRA low-rank adapters, and reason about GPU FLOPs and backpropagation gradients.
Understand why multicollinearity crashes OLS regression, why L1 Lasso creates sparse features while L2 Ridge stabilizes weights, and how PCA/SVD compresses noisy tabular data.
Linear algebra powers 40%+ of ML coding interviews (Cosine Top-K, OLS/Ridge closed form, PCA via SVD, Attention, and Backprop from scratch) — knowing the geometry makes solutions obvious!
Scalars, Vectors, Matrices & Tensors — The Building Blocks
Start from zero: numbers, arrows, coordinates, grids, vector arithmetic, linear combinations, and how every ML dataset lives in Linear Algebra
Vector Norms, Distances, Dot Products & Cosine Similarity
Measure length, distance, and directional alignment — the geometric core of KNN, Lasso/Ridge, RAG search, and Transformer attention
Matrix Algebra, Multiplication, Broadcasting & Tensor Shapes
From hand-multiplying 2×2 matrices to mastering (B, H, T, D) Transformer shapes, FLOPs counting, broadcasting, and einsum
Solving Linear Systems (Ax = b), Gaussian Elimination & Inverses
Row vs. Column geometry, the 3 outcomes of Ax = b, step-by-step Gaussian elimination, matrix inverses, and LU/Cholesky solvers
Span, Linear Independence, Basis, Rank & The Four Subspaces
Understand true data dimensionality, why redundant features break regression, and Gilbert Strang's Four Fundamental Subspaces
Linear Transformations, Determinants & Condition Numbers
Read every matrix as a living warp of space — canonical 2D transforms, 2×2 & 3×3 determinants, signed volume, and numerical conditioning
Orthogonality, Projections, Gram–Schmidt & Least Squares (OLS / Ridge)
Why orthonormal bases are magic (Qᵀ = Q⁻¹), Gram–Schmidt & QR factorization, Normal Equations, Hat Matrix H, and Ridge shrinkage
Eigenvalues, Eigenvectors, Diagonalization & Spectral Theory
Invariant axes Av = λv, trace/det shortcuts, matrix powers A^k, Spectral Theorem for covariance matrices, PSD curvature, and Power Iteration
Singular Value Decomposition (SVD), PCA & Low-Rank Compression (LoRA)
Factorize ANY rectangular matrix M = UΣVᵀ — optimal rank-k compression, PCA without forming XᵀX, Moore–Penrose pseudoinverse, and LoRA
Matrix Calculus Essentials for ML & Backpropagation
Bridge Linear Algebra straight into Deep Learning: gradients, Jacobians, Hessians, the 6 core matrix derivatives, and shape-matching backprop