Naive Bayes algorithm. A Simple and Effective Approach for…