Naive Bayes classifier equation