Conditional probability
Say it: "the probability of A given B"
What it means
The probability of when we already know happened: . Bayes' theorem turns it around: .
Example
Mixing these two up is a classic mistake.
In code
p_pos_sick, p_sick, p_pos_healthy = 0.9, 0.02, 0.05 p_pos = p_pos_sick * p_sick + p_pos_healthy * (1 - p_sick) print(round(p_pos_sick * p_sick / p_pos, 3))
Output
0.269
Where it appears in machine learning
Every classifier estimates : the probability of a label given the features.
Related symbols
Learn it properly in the free lesson Probability & Distributions, with practice questions that check your answers.