Naive Bayes
The theory for this example is explained in detail
here
.