Here's a clear explanation of a Naive Bayes Classifier.