Chapter 9 Naive Bayes model