โ† Curriculum
๐Ÿ“

Module 2

Beginner

Math 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.

Your progress

0/6

2.2 hoursโšก 500 XP
Start module

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. 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.

  2. ๐Ÿ”’

    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.

  3. ๐Ÿ”’

    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.

  4. ๐Ÿ”’

    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.

  5. ๐Ÿ”’

    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.

  6. ๐Ÿ”’

    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.