What is Naïve Bayes and why is it called 'naïve'?

Updated May 17, 2026

Short answer

Naïve Bayes is a probabilistic classifier based on Bayes’ theorem with the assumption that features are conditionally independent.

Deep explanation

Naïve Bayes applies Bayes’ theorem to compute posterior probabilities of classes given input features. The 'naïve' assumption means it assumes all features are independent given the class, which simplifies computation significantly even though it is rarely true in real-world data. Despite this simplification, it performs surprisingly well in text classification and high-dimensional sparse data.

Real-world example

Spam email detection using word frequencies as independent features.

Common mistakes

  • Assuming features must truly be independent for Naïve Bayes to work.

Follow-up questions

  • Why does Naïve Bayes work even when independence is violated?
  • What is Bayes’ theorem?

More Naïve Bayes interview questions

View all →