How does a Spam Classifier Work?

Bayes Theorem