A set or event intersection describes cases where two events happen at the same time. For email, “spam and contains lottery” is an intersection, written P(lottery ∩ spam). section 8.6
Spam emails containing “lottery”
Suppose 1/5 of emails are spam, and 3/4 of spam emails contain “lottery.” Multiply the probabilities: P(lottery ∩ spam) = (3/4)(1/5) = 3/20 = 0.15. Thus, 15 out of 100 emails are both spam and contain “lottery.” section 8.6
Figure 8.6 The tree of possibilities. The root splits into two branches: spam and ham. Then each of these splits into two branches: when the email contains the word lottery, and when it doesn’t.
Follow the tree from spam or ham to emails containing “lottery” or not; multiplying branch probabilities gives each intersection probability. section 8.6





