chapter eight
8 Using probability to its maximum: The naive Bayes model
This chapter covers
- What is Bayes theorem?
- Dependent and independent events.
- The prior and posterior probabilities.
- Calculating conditional probabilities based on events.
- What is the naive Bayes model?
- Using the naive Bayes model to predict if an email is spam or ham, based on the words in the email.
- Coding the naive Bayes algorithm in Python.
Naive Bayes is a very important machine learning model used for prediction. The naive Bayes model is a purely probabilistic classification model, which means the prediction is a number between 0 and 1, indicating the probability that a label is positive. The main component of the naive Bayes model is Bayes theorem.