What is Bayes’ theorem and why is it important?

Updated May 17, 2026

Short answer

Bayes’ theorem updates probabilities using prior knowledge and new evidence.

Deep explanation

Bayes’ theorem states P(A|B) = P(B|A)P(A)/P(B). It connects prior probability with likelihood and evidence, forming the foundation of Bayesian inference used in AI, statistics, and decision-making systems.

Real-world example

Spam email filtering based on word occurrence likelihood.

Common mistakes

  • Ignoring prior probability in calculations.

Follow-up questions

  • What is prior probability?
  • What is likelihood?

More Probability interview questions

View all →