AI/ML Foundations
The Math That Makes AI Work
Linear algebra, calculus, and probability through hands-on Python code. No proofs, just the intuition that matters.

Frameworks like PyTorch and TensorFlow hide a lot of math, but the math doesn't go away. It just becomes invisible until something breaks. Understanding the mathematical foundations1 lets you debug training failures, read research papers, and make informed architectural decisions. This tutorial covers the essential concepts with Python code for each one.
Tutorial Goals
- Linear Algebra — how data flows through AI models
- Calculus — how models learn and improve
- Probability & Statistics — how to handle uncertainty
- Every concept implemented in Python code
- Connections to real ML models you'll build next