using bayes algorithm to compute comment and repost confidence