The website is in Maintenance mode. We are in the process of adding more features.
Any new bookmarks, comments, or user profiles made during this time will not be saved.

AIML.com

Machine Learning Resources

How Does Naive Bayes Work?

Bookmark this question

Naive Bayes uses the framework of Bayes Theorem and the assumption of conditional independence between all pairs of predictors to assign class labels to observations based on the prior probabilities of belonging to each class and the conditional probability or likelihood of the observed feature values falling within the distribution of each class label. The prior probabilities are usually chosen based on the observed ratio of observations within the training data. For example, if 80 observations fall within class A and 20 within class B, the prior probabilities of class A and B would be .8 and .2, respectively. The likelihood score for belonging to each class is calculated by multiplying the prior probability times the conditional probability or likelihood of each feature belonging to that class based on its values relative to the class distribution. The decision rule then assigns the observation to the class with the highest likelihood.

Leave your Comments and Suggestions below:

Please Login or Sign Up to leave a comment

Partner Ad  

Find out all the ways
that you can

Explore Questions by Topics

Partner Ad

Learn Data Science with Travis - your AI-powered tutor | LearnEngine.com