← Back to course

Math for Machine Learning

The bridge that ties linear algebra, calculus, and probability together for AI/ML – in Python. 23 single weeks at a sustainable ~1.5 hrs/week (two short sessions). Video weeks list exact sections with lecture counts and run times; the last weeks use the free book. Primary course: Mathematical Foundations of Machine Learning by Dr Jon Krohn - https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab) (covers linear algebra and calculus). Free book: Mathematics for Machine Learning by Deisenroth, Faisal and Ong - https://mml-book.github.io (opens in a new tab) (chapter references in each week). Take after Calculus and Linear Algebra.

Week 1: Linear algebra: Data Structures for Linear Algebra (part 1)1h 2m

Watch this week (~57m of video): Data Structures for Linear Algebra. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §1 Data Structures for Linear Algebra – lectures 1–7 (~57m) — 57m
  • Run the course notebooks yourself in Python
  • Review this course’s flashcards (5 min) — 5m
  • Free book: skim Mathematics for Machine Learning ch. 2 Linear Algebra (https://mml-book.github.io)

Week 2: Linear algebra: Data Structures for Linear Algebra (part 2)48m

Watch this week (~48m of video): Data Structures for Linear Algebra. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §1 Data Structures for Linear Algebra – lectures 8–13 (~48m) — 48m
  • Run the course notebooks yourself in Python

Week 3: Linear algebra: Tensor Operations1h

  • Krohn §2 Tensor Operations (9 lectures, 55m) — 55m
  • Run the course notebooks yourself in Python
  • Review this course’s flashcards (5 min) — 5m

Week 4: Linear algebra: Matrix Properties (part 1)47m

  • Krohn §3 Matrix Properties – lectures 1–5 (~47m) — 47m
  • Run the course notebooks yourself in Python

Week 5: Linear algebra: Matrix Properties (part 2)42m

  • Krohn §3 Matrix Properties – lectures 6–9 (~37m) — 37m
  • Run the course notebooks yourself in Python
  • Review this course’s flashcards (5 min) — 5m

Week 6: Linear algebra: Eigenvectors and Eigenvalues (part 1)53m

Watch this week (~53m of video): Eigenvectors and Eigenvalues. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §4 Eigenvectors and Eigenvalues – lectures 1–4 (~53m) — 53m
  • Run the course notebooks yourself in Python
  • Free book: Mathematics for Machine Learning ch. 4 Matrix Decompositions (eigen, SVD)

Week 7: Linear algebra: Eigenvectors and Eigenvalues (part 2)58m

Watch this week (~53m of video): Eigenvectors and Eigenvalues. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §4 Eigenvectors and Eigenvalues – lectures 5–8 (~53m) — 53m
  • Run the course notebooks yourself in Python
  • Review this course’s flashcards (5 min) — 5m
  • Free book: Mathematics for Machine Learning ch. 4 Matrix Decompositions (eigen, SVD)

Week 8: Linear algebra: Eigenvectors and Eigenvalues (part 3)26m

Watch this week (~26m of video): Eigenvectors and Eigenvalues. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §4 Eigenvectors and Eigenvalues – lectures 9–10 (~26m) — 26m
  • Run the course notebooks yourself in Python
  • Free book: Mathematics for Machine Learning ch. 4 Matrix Decompositions (eigen, SVD)

Week 9: Linear algebra: Matrix Operations for Machine Learning1h 20m

Watch this week (~1h 15m of video): Matrix Operations for Machine Learning. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §5 Matrix Operations for Machine Learning (8 lectures, 1h 15m) — 1h 15m
  • Run the course notebooks yourself in Python
  • Review this course’s flashcards (5 min) — 5m

Week 10: Calculus: Limits1h 8m

  • Krohn §6 Limits (8 lectures, 1h 8m) — 1h 8m
  • Run the course notebooks yourself in Python
  • Free book: Mathematics for Machine Learning ch. 5 Vector Calculus

Week 11: Calculus: Derivatives and Differentiation (part 1)43m

Watch this week (~43m of video): Derivatives and Differentiation. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §7 Derivatives and Differentiation – lectures 1–7 (~43m) — 43m
  • Run the course notebooks yourself in Python

Week 12: Calculus: Derivatives and Differentiation (part 2)43m

Watch this week (~43m of video): Derivatives and Differentiation. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §7 Derivatives and Differentiation – lectures 8–14 (~43m) — 43m
  • Run the course notebooks yourself in Python

Week 13: Calculus: Automatic Differentiation (part 1)39m

  • Krohn §8 Automatic Differentiation – lectures 1–3 (~39m) — 39m
  • Run the course notebooks yourself in Python

Week 14: Calculus: Automatic Differentiation (part 2)39m

  • Krohn §8 Automatic Differentiation – lectures 4–6 (~39m) — 39m
  • Run the course notebooks yourself in Python

Week 15: Calculus: Partial Derivative Calculus (part 1)48m

Watch this week (~48m of video): Partial Derivative Calculus. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §9 Partial Derivative Calculus – lectures 1–4 (~48m) — 48m
  • Run the course notebooks yourself in Python
  • 3Blue1Brown Neural Networks series: the backpropagation videos (YouTube)

Week 16: Calculus: Partial Derivative Calculus (part 2)48m

Watch this week (~48m of video): Partial Derivative Calculus. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §9 Partial Derivative Calculus – lectures 5–8 (~48m) — 48m
  • Run the course notebooks yourself in Python
  • 3Blue1Brown Neural Networks series: the backpropagation videos (YouTube)

Week 17: Calculus: Partial Derivative Calculus (part 3)48m

Watch this week (~48m of video): Partial Derivative Calculus. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §9 Partial Derivative Calculus – lectures 9–12 (~48m) — 48m
  • Run the course notebooks yourself in Python
  • 3Blue1Brown Neural Networks series: the backpropagation videos (YouTube)

Week 18: Calculus: Partial Derivative Calculus (part 4)48m

Watch this week (~48m of video): Partial Derivative Calculus. Course: https://gale.udemy.com/course/machine-learning-data-science-foundations-masterclass/ (opens in a new tab)

  • Krohn §9 Partial Derivative Calculus – lectures 13–16 (~48m) — 48m
  • Run the course notebooks yourself in Python
  • 3Blue1Brown Neural Networks series: the backpropagation videos (YouTube)

Week 19: Calculus: Integral Calculus1h 4m

  • Krohn §10 Integral Calculus (13 lectures, 1h 4m) — 1h 4m
  • Run the course notebooks yourself in Python

Week 20: Probability for ML (part 1)

Krohn’s Gale course covers linear algebra and calculus only, so probability comes from the free Mathematics for Machine Learning book (https://mml-book.github.io (opens in a new tab)) plus a refresh of your Statistics & Probability course.

  • Mathematics for Machine Learning ch. 6 – first half (probability spaces, discrete and continuous distributions)
  • Review your Statistics course notes on distributions and expected value

Week 21: Probability for ML (part 2)

Finish the probability chapter, focusing on Bayes’ theorem and the Gaussian distribution – the two ideas ML uses most.

  • Mathematics for Machine Learning ch. 6 – second half (Bayes’ theorem, Gaussian distribution)
  • Explain Bayes’ theorem in your own words with a real example

Week 22: Optimization: how models learn

Gradient descent ties your calculus to training real models.

  • Mathematics for Machine Learning ch. 7 Continuous Optimization (gradient descent sections)
  • Implement gradient descent from scratch on a simple function in Python

Week 23: Putting it together

See the math inside real models and build one yourself. This connects forward to Getting More Productive with AI, where you build on top of models.

  • Mathematics for Machine Learning ch. 9 Linear Regression
  • Implement linear regression from scratch in NumPy
  • Optional: 3Blue1Brown Neural Networks series start to finish