Understanding Bayes theorem.
The Bayes theorem describes the probability of an event based on the prior knowledge of the conditions that might be related to the event.

https://machinelearningmastery.com/bayes-theorem-for-machine-learning/