How to use bayes theorem