There is a very useful result in probability called Bayes’ theorem, which tells us the relationship between these two conditional probabilities.
The basic principle of Bayes’ Theorem is to take a set of “prior beliefs" and see how they change in the face of given evidence