Foundations roadmap

Field 1 of 14. Work through the steps in order: each one explains an idea, points you to one thing to read and gives you a problem to build.

Steps
18
Problems
20
Learn first
Nothing. Start here.
Leads to
Classical AI, Data Science, Machine Learning, Robotics
Track this field on the map

Python & NumPy

  1. Arrays and shapes

    A NumPy array is a grid of numbers with a shape like (rows, cols). Almost every AI bug starts as a shape mismatch, so learn to read and reshape them fluently.

    Concept · Easy · 1 problem · full lesson, 3 questions

  2. Vectorization & broadcasting

    Replace Python loops with whole-array operations; NumPy runs the loop in C. Broadcasting stretches smaller arrays to match bigger ones so you can, for example, compute every pairwise distance in one line.

    Build · Easy · 2 problems · full lesson, 3 questions

Linear Algebra

  1. Vectors & the dot product

    A vector is a list of numbers that can represent a point, a direction, or a data example. The dot product measures how aligned two vectors are; it is the single most used operation in ML.

    Concept · Easy · 1 problem · full lesson, 3 questions

  2. Matrices & matrix multiplication

    A matrix is a transformation: multiplying by it rotates, stretches or projects vectors. Each output cell is a dot product of a row and a column, which is why inner dimensions must match.

    Build · Easy · 2 problems · full lesson, 3 questions

  3. Linear systems & inverses

    Solving Ax = b asks which input produces a given output. When A is invertible there is one answer; when it is not, there are none or infinitely many. Linear regression is exactly this problem.

    Concept · Medium · 1 problem · full lesson, 3 questions

  4. Eigenvectors & eigenvalues

    An eigenvector is a direction a matrix only stretches, never turns; the eigenvalue is how much. They reveal a system's long-run behaviour.

    Concept · Medium · 1 problem · full lesson, 3 questions · case study

  5. Singular Value Decomposition

    Every matrix factors as rotation × scaling × rotation (A = UΣVᵀ). Keeping only the largest singular values gives the best low-rank approximation (Eckart–Young theorem). Behind PCA, compression and recommenders.

    Theorem · Medium · 1 problem · full lesson, 3 questions · case study

Calculus

  1. Derivatives

    A derivative is the slope: how much the output changes for a tiny change in input. Learning algorithms use it to know which way to nudge parameters.

    Concept · Easy · 1 problem · full lesson, 3 questions

  2. Partial derivatives & the gradient

    With many inputs, each partial derivative is the slope along one axis; together they form the gradient, the direction of steepest increase.

    Concept · Easy · 1 problem · full lesson, 3 questions

  3. The chain rule

    The derivative of a composition is the product of the derivatives along the chain. This one rule is all backpropagation is.

    Theorem · Medium · 1 problem · full lesson, 3 questions

  4. Taylor approximation

    Near a point, any smooth function looks like a polynomial: value + slope·Δ + curvature·Δ²/2. Gradient descent trusts the first-order term; Newton's method uses the second.

    Theorem · Medium · 1 problem · full lesson, 3 questions

Probability

  1. Rules & conditional probability

    P(A|B) is the probability of A once you know B happened. Mixing up P(A|B) and P(B|A) is the most common reasoning error in data work.

    Concept · Easy · 1 problem · full lesson, 3 questions

  2. Bayes' theorem

    P(H|E) = P(E|H)·P(H) / P(E): update a prior belief with evidence. The basis of spam filters, medical diagnosis and Bayesian ML.

    Theorem · Easy · 1 problem · full lesson, 3 questions · case study

  3. Random variables & distributions

    A distribution describes how likely each outcome is. Bernoulli, binomial, Gaussian and Poisson cover most of what you will model.

    Concept · Easy · 1 problem · full lesson, 3 questions

  4. Expectation & variance

    Expectation is the long-run average; variance is the spread around it. Loss functions are expectations, and much of ML is about controlling variance.

    Concept · Easy · 1 problem · full lesson, 3 questions

  5. Law of large numbers & central limit theorem

    Averages of many samples converge to the true mean (LLN), and their distribution becomes Gaussian whatever the original shape (CLT). This is why sample statistics and A/B tests work.

    Theorem · Medium · 1 problem · full lesson, 3 questions

Statistics

  1. Estimation & maximum likelihood

    Maximum likelihood picks the parameters that make the observed data most probable. Most ML loss functions are negative log-likelihoods in disguise.

    Concept · Medium · 1 problem · full lesson, 3 questions

  2. Confidence intervals & hypothesis tests

    A confidence interval gives a range of plausible values; a p-value is how surprising the data would be if nothing were going on. Neither is the probability your hypothesis is true.

    Concept · Medium · 1 problem · full lesson, 3 questions · case study

Capstone project

Eigenfaces: compress and recognise faces using only NumPy, SVD and probability