This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
faq:bayesandlogs [2009/04/06 09:52] – created xuesheng | faq:bayesandlogs [2009/04/06 09:58] – Forgot to format the labelled equations xuesheng | ||
---|---|---|---|
Line 27: | Line 27: | ||
POPFile ignores the term P(E) since it is the same for each calculation and calculates: | POPFile ignores the term P(E) since it is the same for each calculation and calculates: | ||
- | (1) P(Bi|E) = P(E1|Bi) x P(E2|Bi) x ... x P(Eo|Bi) x P(Bi) | + | |
And picks the largest to determine which bucket the email belongs in. But equation (1) works well in theory and badly in practice. | And picks the largest to determine which bucket the email belongs in. But equation (1) works well in theory and badly in practice. | ||
Line 37: | Line 37: | ||
POPFile calculates the following: | POPFile calculates the following: | ||
- | (2) log P(Bi|E) = log P(E1|Bi) + log P(E2|Bi) + ... + P(Eo|Bi) + log P(Bi) | + | |
and then chooses the largest value of log P(Bi|E) in determining the bucket. | and then chooses the largest value of log P(Bi|E) in determining the bucket. |
Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.