Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Bayes' rule

What is Bayes' rule?

The rule for updating a belief on new evidence: P(A∣B)=P(B∣A) P(A)/P(B)P(A \mid B) = P(B \mid A)\,P(A) / P(B)P(A∣B)=P(B∣A)P(A)/P(B). The belief afterwards is proportional to how well the evidence fits, times the belief before.

Where it is taught

Bayes' rule. How to update a belief when new evidence arrives. It explains why a positive result is often less alarming than it sounds, and it is the logic behind learning itself.

What the lesson leaves you with

  • Posterior is proportional to likelihood times prior.
  • Evidence shifts a belief. It does not replace it.
  • Always ask how common the thing was before the evidence arrived.
Open the lesson

Questions

What is Bayes' rule?
The rule for updating a belief on new evidence: P(A mid B) = P(B mid A),P(A) / P(B). The belief afterwards is proportional to how well the evidence fits, times the belief before.
Where is Bayes' rule used in AI?
How to update a belief when new evidence arrives. It explains why a positive result is often less alarming than it sounds, and it is the logic behind learning itself.
What is the key idea to remember about Bayes' rule?
Posterior is proportional to likelihood times prior.
Where can I learn Bayes' rule step by step?
In the lesson “Bayes' rule” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What is conditional probability? A visual guide3 min

Related terms

  • Cross-entropy
  • Entropy
  • Logit
  • Perplexity
  • Softmax
  • Temperature