Pro
Pro lesson

Probability and Bayes

Why a positive test can still mean you probably don’t have it, and what that means for AI classifiers.

This one’s part of How Models Learn Pro — every lesson, every interactive, and new ones as they land. About 11 minutes.

Already Pro? Sign in and you’ll go straight in.

Inside “Probability and Bayes”

What you’ll learn

  1. Probability as counting
  2. Joint and conditional probability
  3. P(A | B) is not P(B | A)
  4. Bayes’ theorem
  5. Back to the studies
  6. Why this matters for AI

Key terms

Prevalence (base rate)
The share of a group that has a condition before any test is done: P(condition).
Joint probability
The probability that two things are both true, such as having a condition and testing positive.
Conditional probability
P(A | B): the probability of A among only the cases where B is true. In general it is not the same as P(B | A).
Sensitivity
P(positive | has the condition): the share of real cases a test catches. Called recall in machine learning.
Specificity
P(negative | doesn’t have the condition): the share of people without it whom the test correctly clears.
Bayes’ theorem
P(A | B) = P(B | A) · P(A) / P(B): a way to turn P(B | A) into P(A | B) using the base rate.
Natural frequencies
Expressing probabilities as counts out of a whole group, such as “51 out of 10,000”.
Precision
Of the cases a classifier flags as positive, the share that really are: TP / (TP + FP).

Sources