Why is Bayes rule so important?
Importance of Bayes rule
Bayes theorem allows us to reverse a conditional probability.
Thus, suppose we know the chance of testing positive for cancer, given we have cancer.
If we actually tested positive for cancer, though, we’d want to know: what are the chances I have cancer, given I tested positive? Bayes theorem shows us how to mathematically reverse this probability to find the answer to this question.
Thus, The Bayes rule help us to find the conditional probability of an event based on prior knowledge of conditions that might be related to the event.
Let us consider an example,
In two bags, black and white balls are kept. Bag has white and black and Bag have white and black. One ball is drawn, what is the conditional probability of the selected ball being a black ball from bag?
Using Bayes Theorem
Let be an event that the Ball is Black.
Let be an event that chosen ball is drawn from Bag
Let be an event that chosen ball is drawn from Bag
Where,
Probability that drawn ball is black and is from Bag
Probability that drawn ball is black and is from Bag
Where
Probability that drawn ball is from bag being it is given that the ball is black.