Bayes ' theorem can be used to calculate the probability that the person was a woman .
That is where Bayes ' theorem comes in .