Naive Bayes

first revise the bayse theorem: