Module 2
BeginnerMath for AI
The linear algebra, calculus, optimization, probability, and information theory behind modern AI, taught intuition first with NumPy code, and connected to embeddings, backpropagation, LoRA, softmax, RLHF, and distillation.
What you'll be able to do
- โExplain the geometry of dot products and cosine similarity and read matrix multiplication as a transformation
- โUse eigenvectors and the SVD to reason about PCA, low-rank approximation, and LoRA fine-tuning
- โDerive gradients with the chain rule, implement backpropagation by hand, and verify it with a gradient check
- โCompare gradient descent, momentum, Adam, and AdamW, and design learning-rate schedules
- โConnect probability to softmax, maximum likelihood, and cross-entropy, and evaluate models with honest uncertainty
- โExplain entropy, perplexity, and KL divergence and their roles in RLHF and knowledge distillation
Lessons
- 1
Linear Algebra Essentials
Vectors, the geometry of dot products and cosine similarity, matrix multiplication as transformation, and why embeddings and neural network layers are linear algebra, with NumPy code for every idea.
22 minโก 80Free preview - ๐
Eigenvectors, SVD, and Low Rank
The intuition behind eigenvectors and the singular value decomposition, and how low-rank structure powers PCA, compression, and LoRA fine-tuning of large models.
22 minโก 85Pro - ๐
Calculus and Gradients
Derivatives, gradients, and the chain rule as backpropagation: the mathematics of how every neural network learns, implemented from scratch in NumPy with a gradient check.
22 minโก 85Pro - ๐
Gradient Descent and Optimizers
From plain gradient descent to mini-batch SGD, momentum, Adam, and AdamW, plus learning-rate warmup and decay, gradient clipping, and how to read a loss curve.
20 minโก 80Pro - ๐
Probability and Statistics
Distributions, expectation, Bayes' rule, softmax as a probability distribution, maximum likelihood as the reason behind cross-entropy loss, and the statistics you need to evaluate models honestly.
22 minโก 85Pro - ๐
Information Theory Basics
Entropy, cross-entropy, perplexity, and KL divergence explained intuitively, and why they are the loss behind every classifier and language model, the leash in RLHF, and the signal in knowledge distillation.
22 minโก 85Pro