Prerequisites: Python and math
Basic Python and just enough probability, linear algebra and calculus, learned right before you need them.
You need basic Python and three areas of math, but far less math than people fear. Learn each piece just before you need it, not all up front.
Python
If you have never programmed, start Phase 1 (CS50x or CS50P); it teaches Python. If you already code in another language, a few days with the official Python tutorial is enough. By the start of Phase 3 you should be comfortable with lists, dictionaries, functions, classes, and the libraries NumPy and pandas (Kaggle Learn's free Python and Pandas micro-courses cover both in a weekend).
Math, ranked by how soon you need it
| Area | What you actually use it for | Learn just enough of | Free resource |
|---|---|---|---|
| Probability and statistics | Uncertainty, evaluation, Bayesian reasoning (CS50 AI week 2) | Probability rules, conditional probability, Bayes' theorem, distributions, mean and variance | Khan Academy Statistics and Probability |
| Linear algebra | Data as vectors and matrices; how neural networks compute | Vectors, dot products, matrix multiplication, a feel for transformations | 3Blue1Brown Essence of Linear Algebra |
| Calculus | How models learn (gradient descent, backpropagation) | Derivatives, the chain rule, partial derivatives and gradients | 3Blue1Brown Essence of Calculus |
Want a structured course? Mathematics for Machine Learning and Data Science (DeepLearning.AI, Coursera) covers all three at the right level.
Rule of thumb: if you can explain what a gradient is and why multiplying a vector by a matrix transforms it, you have enough math to start deep learning.