Applied MLby ArxFoundry

Foundations

Maths toolkit

The maths the rest of the book uses: vectors, matrices, derivatives, integrals and probability. Explained with pictures, not proofs.

Start course 17 lessons · 5 levels

Level 1·Warm-up

  1. Warm-up: functions and graphsA function turns each input into one output, and its graph shows every input–output pair at once.

Level 2·Linear algebra

  1. Vectors: lists of numbersA vector is a list of numbers, and the dot product measures how much two vectors point the same way.
  2. Matrices: tables of numbersA matrix is a table of numbers, and multiplying it by a vector does many dot products at once.
  3. Matrices as transformations: determinants and inversesA matrix moves the plane, its determinant measures how area scales, and its inverse moves everything back.
  4. Directions that only stretch: eigenvectors and eigenvaluesMost arrows turn under a matrix, but a few directions only stretch, and they decide what repeating it does.

Level 3·Calculus

  1. How things change: derivativesA derivative is the slope of a curve up close. Its sign tells you which way to nudge the input.
  2. Many knobs: partial derivatives and the gradientWith many inputs, wiggle one at a time to get each slope. Together they make the gradient, which points uphill.
  3. Chains of functions: the chain ruleWhen functions feed into each other, their slopes multiply. This one rule computes every gradient a neural network needs.
  4. Zooming in: linear and quadratic approximation (Taylor)Close to any point, a smooth curve looks like a straight line, and a little further out like a parabola.
  5. Adding up the continuous: integralsAn integral adds up a rate over time, which you can see as the area under its curve.

Level 4·Probability and information

  1. Chance: probability and distributionsA probability says how often something happens. A distribution lists the probability of every outcome.
  2. Averages you can trust: expectation, variance and learning from samplesThe expected value is the long-run average. You can learn it from samples by nudging a guess toward each one.
  3. Continuous chance: densities and the normal distributionWhen an outcome can be any number, probability lives in areas under a curve. Averaging samples estimates any expected value.
  4. Memoryless randomness: Markov chainsA Markov chain moves at random between states, and the next step depends only on where you are now.
  5. Scores to probabilities: argmax, softmax and log-probabilitiesSoftmax turns any list of scores into probabilities, and temperature sets how decisive it is.
  6. Surprise: entropy, cross-entropy and KL divergenceSurprise, entropy, cross-entropy and KL divergence: how to score a model's probabilities against what really happens.

Level 5·Exam

  1. Maths toolkit examTwenty-four multiple-choice questions on the whole course. Check your answers at the end.