I am studying few examples of simple Naive Bayes for Spam detection. I had a question it, but I am unable to find it in any of the examples.
I was wondering, what will happen if a word appears multiple times in emails. For example, if we have total of 4 Spam Emails, and they contain the word "Password" 8 times, what will be the probability of P(Password|Spam) then. According to the formula they are using in examples, it will become 8/4 = 2, which obviously is not possible, as probability can never be greater than 1. What am I missing, please help.