Skip to Content
03 MathsFoundational

Foundational Mathematics

Core mathematical building blocks for machine learning. Start here if you’re new to the math side.

This is the default entry point for the math section. Use it to get just enough mathematical fluency for the rest of the curriculum before you decide whether you need deeper theory.

Notebooks

#NotebookTopics
00Python ML LibrariesNumPy, Matplotlib, SciPy essentials for ML math
01Linear Algebra FundamentalsVectors, matrices, operations, systems of equations
02Calculus & DerivativesDerivatives, chain rule, partial derivatives, gradients
03Probability & StatisticsDistributions, Bayes’ theorem, expectation, variance
04Gradient DescentOptimization basics, learning rate, convergence
05Information TheoryEntropy, cross-entropy, KL divergence
06Statistical InferenceHypothesis testing, confidence intervals, MLE
07Neural Network MathForward pass, backpropagation, loss functions
08Advanced Linear AlgebraEigendecomposition, SVD, PCA foundations
09Analytical vs NumericalClosed-form vs iterative solutions, numerical stability
10Control Theory for AIControl theory connections to RL and optimization
11Markov Models & HMMsMarkov chains, hidden Markov models, Viterbi
12Optimization from ScratchSGD, momentum, Adam optimizer implementation

Prerequisites

  • Python 3.8+
  • NumPy, Matplotlib

Suggested Order

Essential first pass (covers what you need for 90% of ML):

  1. 01 Linear Algebra → 02 Calculus → 03 Probability → 04 Gradient Descent

Then pick based on need:

  • Going into NLP? → 05 Information Theory
  • Going into neural nets? → 07 Neural Network Math → 12 Optimization
  • Going into Bayesian ML? → 06 Statistical Inference
  • Going into sequence models? → 11 Markov Models

How To Use This Folder Well

  • Complete the essential first pass before branching into specialized notebooks.
  • Focus on understanding what the math is doing in ML systems, not just reproducing derivations.
  • Use these notebooks as targeted reinforcement when later phases expose a specific gap.

Next Steps

After completing the essential pass, continue to:

Last updated on