Imagine that you need to design a spam-filtering algorithm starting from this initial (over-simplistic) classification based on two parameters:
Parameter | Spam emails (X1) | Regular emails (X2) |
p1 -Â Contains > 5 blacklisted words | 80 | 20 |
p2Â -Â Message length < 20 characters | 75 | 25 |
Â
We have collected 200 email messages (X)Â (for simplicity, we consider p1 and p2Â mutually exclusive) and we need to find a couple of probabilistic hypotheses (expressed in terms of p1 and p2), to determine:
We also assume the conditional independence of both terms (it means that hp1 and hp2 contribute conjunctly to spam in the same way as they were alone).
For example, we could think about rules (hypotheses) like: "If there are more than five blacklisted words" or "If the message is less than 20 characters in...