Skip to content
BIASED

What probability is

Block 1 of 7~2 min

Why machine learning needs probability

One question runs through this course: how do we reason exactly about what we cannot predict, and how do we learn about the world from random data? The first half builds a language for chance. The second half turns that language into statistics and simulation. This topic asks the most basic question first: what does the number "probability" mean at all?

Machine learning needs the answer because randomness is everywhere in it.

  • Data. A training set is one of many sets we could have collected. Collect another one and you get a slightly different model. The error rate on a test set is random for the same reason.
  • Noise. Labels contain mistakes, sensors are noisy, and two annotators disagree on the same image.
  • Training. Initial weights are random, minibatches come in a random order, and dropout switches off random units. Two runs that differ only in the random seed end with different networks.
  • Prediction and generation. A classifier outputs probabilities of the classes. A language model outputs a distribution over the next token, and generation draws the token from it.

So every model makes probabilistic claims, and we need to know what they mean and how to compute with them. There are several readings of the word "probability". We start with the oldest one.

Answers are saved on the server and tied to this browser until you sign in.