Spam classification determines whether an email is unwanted spam or non-spam mail, also called ham. A simple model learns from earlier messages and predicts the likely category of a new one. section 1.11
Bob’s email history
Remember the last 10 emails from Bob: six were spam and four were ham. Formulate the rule “six out of every 10 are spam,” then predict that a new email is 60% likely to be spam and classify it as spam. The prediction can still be wrong; later evaluation and improvement are needed. section 1.11
Figure 1.5 A very simple machine learning model
Visualizes the simple frequency-based model used to predict whether Bob’s next email is spam. section 1.11

