User:Herdrick

From Wikipedia, the free encyclopedia

[edit] Naive Bayes

We want to decide how like it is that a message is spam given that it contains the words "free" and "viagra".

\Pr(\mathrm{spam}|\mathrm{free,viagra}) = \frac{\Pr(\mathrm{free,viagra}|\mathrm{spam})\Pr(\mathrm{spam})}{\Pr(\mathrm{free,viagra})}

Since we assume independence of the variables, we can rewrite it like so:

\Pr(\mathrm{spam}|\mathrm{free,viagra}) = \frac{\Pr(\mathrm{free}|\mathrm{spam})\Pr(\mathrm{viagra}|\mathrm{spam})\Pr(\mathrm{spam})}{\Pr(\mathrm{free})\Pr(\mathrm{viagra})}

Which is identical to this:

\Pr(\mathrm{spam}|\mathrm{free,viagra}) = \Pr(\mathrm{spam})\frac{\Pr(\mathrm{free}|\mathrm{spam})\Pr(\mathrm{viagra}|\mathrm{spam})}{\Pr(\mathrm{free})\Pr(\mathrm{viagra})}




My blog is at herdrick.blogspot.com.

My homepage is at www.herdrick.com.

Wikipedia:Babel
en This user is a native speaker of English.
es-3 Este usuario puede contribuir con un nivel avanzado de espaƱol.
Search user languages