Lesson 13 of 13 10 min · 139 words
Bayes' theorem
Updating a prior belief with evidence to get a posterior.
Bayes' theorem reverses a conditional probability:
is the prior — belief in hypothesis before seeing evidence. is the likelihood — how probable the evidence is if is true. is the posterior — the updated belief. normalises, usually via total probability.
Bayes' theorem underlies Naïve Bayes classifiers, Bayesian inference (putting priors on model parameters), and the interpretation of regularisation as a prior: L2 regularisation corresponds to a Gaussian prior on the weights, L1 to a Laplace prior.
Formula to remember
Lp norm
p = 1 Manhattan, p = 2 Euclidean, p → ∞ max-norm.
Quick check · +5 XP