Naive bayes is a multi-class classifier that makes the assumption of independence of the probability of of the features given the class.
We want the MAP estimate of the class, i.e., what's the class with maximum posterior probability given the
For one point
Apply Bayes rule:
Throw out the numerator because it does not depend on
Write out the individual components of
Make the naive assumption of independence of features conditioning on the class: