Chapter 7
Naive Bayes
Naive Bayes classifiers are a family of probabilistic models based on Bayes’ theorem. They estimate the probability of each class given a set of observed features, under the simplifying (or “naive”) assumption that all features are conditionally independent given the class. Although this assumption rarely holds exactly in practice, it leads to models that are highly efficient, scalable, and interpretable.
Different naive Bayes models make different assumptions about the type and distribution of the features. The most common include the Bernoulli model for binary features, the categorical model for discrete categories, the multinomial model for word counts or frequencies, and the Gaussian model for continuous features.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access