using naive bayes to classify given new tweetthe only part left is to simply calculate the probabilitieswe also need to choose the class having the higher probability as for both classes the denominatoris the sameso we can simply ignore it without changing the winner class notehoweverthat we don' calculate any real probabilities any more insteadwe are estimating which class is more likely given the evidence this is another reason why naive bayes is so robustit is not so much interested in the real probabilitiesbut only in the information which class is more likely to in shortwe can write it as followshere we are calculating the part after argmax for all classes of ("posand "negin our caseand returning the class that results in the highest value but for the following examplelet us stick to real probabilities and do some calculations to see how naive bayes works for the sake of simplicitywe will assume that twitter allows only for the two words mentioned earlierawesome and crazyand that we had already manually classified handful of tweetstweet class awesome positive awesome positive awesome crazy positive crazy positive crazy negative crazy negative