Do you know the classical problem of sunny / rainy / overcast days and output yes / no the game will played. See the image below. Now the problem question is "Players will play if weather is sunny. Is this statement is correct?" And the computation using Naive Bayes is as follows:
P(Yes | Sunny) = P( Sunny | Yes) * P(Yes) / P (Sunny)
P (Sunny |Yes) = 3/9 = 0.33, P(Sunny) = 5/14 = 0.36, P( Yes)= 9/14 = 0.64
My question is, why should I use Naive Bayes and not a Common sense simple computation 3 / 5 = 0.6 probability (sunny yes / sunny yes + sunny no).