Bayes’ theorem tells you how to find when you already know , and . This is really useful in the real world, as the example below will show you. This is what Bayes’ theorem says:
Formula
In many assignments, will not be given. In that case you can find it in this way:
This is called the law of total probability.
Example 1
In the United States, lie detectors, or polygraphs, are used by the police during interrogations to try to determine whether a witness is telling the truth or not. In a study investigating lie detectors, it was found that:
If a person is lying, the probability of the lie detector uncovering the lie is .
If a person is telling the truth, there’s a chance that the lie detector thinks they’re lying.
A witness in a criminal case is connected to a lie detector, which claims that the witness is lying. If the probability of the witness lying is , what is the probability that the claim of the lie detector is correct?
This is an example where you’ll have to use Bayes’ theorem. Simply keep your head on straight and take it one step at a time.
You want to find the conditional probability of . This is where you use Bayes’ theorem, but first you’ll have to calculate using the law of total probability. You can insert the formula for this probability straight into Bayes’ theorem, but it might be easier to calculate it on its own first. You can do so like this:
Then you can insert all the known numbers into Bayes’ theorem to find the answer.
The probability of the witness actually lying when the lie detector says they’re lying is just , or 67%. That’s not particularly convincing!