freeCodeCamp/guide/english/machine-learning/bayes-classifier/index.md

20 lines
1.2 KiB
Markdown

---
title: Bayes Classifier
---
Bayes Classifier is based on applying Bayes Theorem to update its belief on the probability of an event occurring.
![Bayes Theorem](https://github.com/Cheungo/bayes_theorem_image/blob/master/CodeCogsEqn.gif?raw=true)
Bayes Theorem allows you to compute the probability of B given A, provided you have probabilities for A given B, A, and B. Here, P(B|A) is known as the posterior probability.
Bayes Classifier models uncertainty by keeping probabilities for each of the possible scenarios. As more information becomes available, the probabilities are updated to more accurately reflect what is now known about the given situation. Bayes classifier chooses the class that has the highest posterior probability.
#### Suggested Reading:
<!-- Please add any articles you think might be helpful to read before writing the article -->
- [A practical explanation of a Naive Bayes classifier](https://monkeylearn.com/blog/practical-explanation-naive-bayes-classifier/)
- [Naive Bayes classifier](https://en.wikipedia.org/wiki/Naive_Bayes_classifier)
- [How Naive Bayes Classifier Works 1/2](https://youtu.be/XcwH9JGfZOU)
- [How Naive Bayes Classifier Works 2/2](https://youtu.be/k2diLn5Nqbs)