Prerequisites: Python and math

As needed, months 1–60/5

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

AreaWhat you actually use it forLearn just enough ofFree resource
Probability and statisticsUncertainty, evaluation, Bayesian reasoning (CS50 AI week 2)Probability rules, conditional probability, Bayes' theorem, distributions, mean and varianceKhan Academy Statistics and Probability
Linear algebraData as vectors and matrices; how neural networks computeVectors, dot products, matrix multiplication, a feel for transformations3Blue1Brown Essence of Linear Algebra
CalculusHow models learn (gradient descent, backpropagation)Derivatives, the chain rule, partial derivatives and gradients3Blue1Brown 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.

Phase 0 checklist0 of 5 done · saved in this browser