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

1.2 KiB

title
Bayes Classifier

Bayes Classifier is based on applying Bayes Theorem to update its belief on the probability of an event occurring.

Bayes Theorem

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: