bayes based inference tool