Using the Naive Bayes formula to classify text I have something like...
$$ P(Cat|Word1) = \frac{P(Word1|Cat) * P(Cat)}{P(Word1)} $$
Using a small example ...
Cat1 = 4 documents
= 1x word 'Hello'
= 3x word 'World'
Cat2 = 10 documents
= 10x word 'Hello'
= 1x word 'World'
Total of 14 docs. with 2 'categories'
I can then calculate the probability of Cat1 and Cat2
$$ P(Cat1|Hello,World) = \frac{P(Hello|Cat1) * P(World|Cat1) * P(Cat1)}{P(Hello) * P(World)} $$
For category 1
$$ P(Cat1|Hello,World) = \frac{\frac{1}{4} * \frac{4}{4} * \frac{4}{14}}{\frac{11}{14} * \frac{4}{14}} \approx 0.31818 $$
And category 2
$$ P(Cat2|Hello,World) = \frac{\frac{10}{10} * \frac{1}{10} * \frac{11}{14}}{\frac{11}{14} * \frac{4}{14}} = 0.35 $$
But I am struggling to interpret the values been returned,
- Does it mean that there is a 31% chance of category 1 and 35% chance of category 2?
- Does it mean that there is a slightly better chance of category 1 vs category 2
- How much more likely is one category over the other?
How can I interpret the actual values been returned?