naive bayes theorem gives negative or small probabilities when the input is large. how to handle it? kindly help. I mean to say when i use naive bayes to calculate the probability of a certain word, and multiply all probabilities of such words the multiplication is so small that finally it gets rounded to either a 0 (zero) or nan. Exa i can give is: word proba for 8192 is 8132025 = 0 word proba for 8193 is 134514305 = 0 word proba for 8194 is -1081995183 = nan word proba for 8195 is 8192001 = nan
such thing comes when the no. of words in a document are more (in 1000's). i hope now its more clear. Thank u for any help.