Professional Documents
Culture Documents
Bayer's Theorems Application
Bayer's Theorems Application
PATI CHAITANYA
22H51A0548
CSE-B
Introduction
Bayes’ Theorem
Bayes’ Theorem describes the conditional probability an event is
going to happen based on the prior knowledge of conditions
related to this event.
Bayes rule in spam filtering:
• These values are then used to calculate a spam score for the
email, determining whether it is likely to be spam or not.
Pr(S|W) is the probability that a message is a spam, knowing that the word “
OFFER” is in it;
Pr(W |S) is the probability that the word “OFFER” appears in spam
messages;
Pr(S) is the overall probability that any given message is spam;
Pr(H) is the overall probability that any given message is not spam (is
“ham”);
Pr(W |H) is the probability that the word “OFFER” appears in ham messages;
Conclusion: