Im trying to understand why naive is needed in Naive Bayes and everyone says Naive Bayes assumes the input features (predictors) are not correlated hence they are not dependent on each other .
i want to understand what will happen if features are dependent i.e Non Naive (the opposite part of being naive )
if we have a sentence "You won lottery for 1million" and we need to classify it as spam and not spam using naive bayes .
p(y|x)=p(x|y).p(y)
In the likelihood partwe will model the probability as p(x|y)
here x="You won lottery for 1million" and y=spam or not spam
p('You won lottery for 1million'|y=spam)
p('You won lottery for 1million'|y=notspam)
what is the correct way of writting this probability and finding its value without considering independence of event among X ?
should it be written as
**to find probaiblity of spam given feature are depenent**
p('You |won, lottery, for, 1million,spam) *
p('won| lottery, for, 1million,spam) *
p('lottery| for, 1million,spam)*
p(for| 1million,spam)*
p( 1million|spam)
**to find probaiblity of not spam given feature are depenent**
p('You |won, lottery, for, 1million,notspam) *
p('won| lottery, for, 1million,notspam) *
p('lottery| for, 1million,notspam)*
p(for| 1million,notspam)*
p( 1million|notspam)
is this correct way of finding the probability of the X considering its events are dependent on each other ? Should the spam/notspam also be included in the dependence part ?
What is the probelm in finding the above 2 probability and why is it so hard that naive has to pitch in and make the features as independent inorder to calculate probability .