ZENITHLABGet access
Math for Machine LearningSelf-paced course

Mathematics for Machine Learning

From vectors to attention: build the real mathematical foundations behind machine learning in a computational lab, not a video series - drag a slider and watch entropy, gradients, and attention weights actually change.

11
modules
35
practice tasks
5
portfolio projects
13
in-app pages
8.8h
of module content
Full curriculum

12 modules, in order

  1. 0Orientation
    No calculus, linear algebra, or statistics required going in - just curiosity and a willingness to drag a slider before worrying about the formula underneath it.
Stage 1 · Thinking in vectors
  1. 1Thinking in Vectors45m
    A vector is not a list of numbers, it's an arrow with a direction - and comparing two arrows' directions is how machines decide whether two things are similar.
Stage 2 · Transforming data
  1. 2Transforming Data50m
    A matrix is a machine that transforms every point in space the same way - once you see that, y = Wx + b in a neural network layer stops being mysterious.
Stage 3 · Finding the important directions
  1. 3Finding the Important Directions55m
    Given a cloud of correlated data, which direction actually matters most? Eigenvectors and eigenvalues answer that, and the answer reappears everywhere from PCA to attention.
Stage 4 · Mathematics of change
  1. 4Mathematics of Change50m
    The derivative and its multivariable cousin, the gradient, are the entire mechanism behind how a model learns anything at all.
Stage 5 · Optimization
  1. 5How Models Learn45m
    Gradient descent turns the gradient into an algorithm: start somewhere, take a step downhill, repeat - and this module shows exactly what happens when the learning-rate dial is set wrong.
Stage 6 · Probability
  1. 6Reasoning Under Uncertainty45m
    A model's "87% confidence" is a probability statement - this module builds what that actually promises (and doesn't) from the simplest possible example, a biased coin.
Stage 7 · Statistics
  1. 7Learning From Data45m
    If you drew a different sample of the same size, how different would the average likely be? The Central Limit Theorem is why sample averages can be trusted at all.
Stage 8 · Probability meets ML
  1. 8Probability Meets Machine Learning45m
    Fitting a model to data is choosing the parameters that make the observed data most plausible - maximum likelihood estimation, the reason common loss functions look the way they do.
Stage 9 · Information and loss
  1. 9Information and Loss45m
    Built up piece by piece from "how surprising is an outcome" to cross-entropy loss, the exact formula behind almost every classifier you've ever used.
Stage 10 · Deep learning mathematics
  1. 10The Mathematics of a Neural Network55m
    Every previous module fuses into one working system: a real neuron's forward pass, loss, and backward pass, small enough to compute by hand.
Stage 11 · Modern ML connections
  1. 11The Math Behind Attention45m
    The reward module - the dot product, softmax, and everything before it come together in scaled dot-product attention, the core computation behind every large language model.
Inside the course

4 sections, 13 real pages

Learn2 pagesCourse structure, reference material, and where you left off
  • Skill Diagnostic
  • Cheat Sheet
Foundation Bridge (optional)3 pages
  • A: Algebra for ML
  • B: Graphs and Functions
  • C: Mathematical Notation
Practice2 pagesExtra reps, quizzes, and skill tracking
  • Practice Library
  • Math Detective
Build6 pagesThe real projects and labs you'll actually ship
  • Project: Similarity Engine
  • Project: PCA Explorer
  • Project: Gradient Descent
  • Project: Probability Simulator
  • Project: Neural Network
  • Capstone
What you'll actually do
  • See a vector as a direction, not just a list of numbers, and use that to measure similarity
  • Watch a matrix transform space and recognize it as a neural network layer
  • Find the directions that matter most in correlated data with PCA
  • Compute a gradient and use it to train a model with gradient descent
  • Reason honestly about probability, sampling, and confidence
  • Derive why cross-entropy loss looks the way it does, from maximum likelihood
  • Build a real neuron's forward and backward pass by hand
  • Compute scaled dot-product attention, the mechanism behind every transformer
Portfolio projects you'll build

5 real projects

Similarity Engine
Vectors & dot products
PCA Explorer
Eigenvectors & dimensionality reduction
Gradient Descent From Scratch
Calculus & optimization
Probability Simulator
Probability & sampling
Unlock in the course
Neural Network From Scratch
Forward & backward pass
Unlock in the course
Tools and topics covered
Linear AlgebraCalculusOptimizationProbabilityStatisticsInformation TheoryNeural NetworksAttention
What's actually included
  • Orientation plus 11 sequential modules, each with a real computational lab (real math, not precomputed animations)
  • A Foundation Bridge (optional): algebra, graphs, and notation for anyone rusty on the prerequisites
  • A non-gating Skill Diagnostic that links weak areas straight to the relevant Foundation lesson
  • A 35-task Practice Library and Math Detective (investigate a flawed ML claim, two-phase grading)
  • 5 projects plus a capstone that synthesizes the whole course into one small ML system
  • Animated guided tours, progressive hints, and Socratic quiz follow-ups on the modules that need them most
Why it matters

A vector's direction, not its raw numbers, is what most ML similarity measures actually compare.

"Training a model" is almost always "repeatedly asking a gradient which way is uphill, and stepping the other way."

Cross-entropy loss, used to train most classifiers, is the same formula this course builds up from scratch.

Scaled dot-product attention, the core of every transformer, is the same dot product from Module 1.

PCA, dimensionality reduction, and part of how attention works all come back to the same eigenvector question.

Career Path Edition

The math fluency to read a paper, a training curve, or a model architecture and actually reason about it, whether you're headed into ML engineering, data science, or research. Not a certification, no job guarantee.

Ready to start? Self-paced, start whenever you are.

Get access