calculate probability using bayes theorem - Search