Mathematics
The math behind neural networks: vectors, matrices, gradients, and the chain rule. Just the pieces that matter.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
Scalars
Number-line playground.
Vectors
2D vector canvas.
Matrices
Matrix grid with transformation canvas.
Dot Product
Two-vector angle visualizer.
Norms
Distance visualization.
Probability
Probability distribution playground.
Sampling
Random sampling simulator.
Derivatives
Interactive function graph.
Gradients
3D loss surface.
Chain Rule
Computational graph.
Gradient Descent
Loss landscape with moving parameter point.