Created separate method naive_bayes_for_change_type