aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 2. Mathematical Foundations
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

The dot product of (1, 2, 3) and (4, 0, −1) is…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser