1 / 17 · Lecture slides 1–5
Motivation
The data science question
A message arrives with an unknown label. How should evidence change our belief about its class?
The observed message
Off means the feature is known to be absent. It does not mean the feature is ignored.
A synthetic classifier has two possible labels: spam and regular.
Spam: 88.24%Regular: 11.76%
P(spam | features)88.24%
PredictionSpam
P(C | evidence) = prior × likelihoodsum of class scores
Try in class
Hide the answers. What should happen if the message contains “offer”, but no link? Will the more common class always win?
Probability lets us combine class frequencies with feature evidence. A predicted class and a posterior probability answer different questions. The classifier section shows every training count and factor.