What Is Bayes' Theorem?

Bayes’ theorem tells you how to find P (AB) when you already know P (BA), P (A) and P (B). This is really useful in the real world, as the example below will show you. This is what Bayes’ theorem says:

Formula

Bayes’ theorem

P (AB) = P (A) P (BA) P (B)

In many assignments, P (B) will not be given. In that case you can find it in this way:

P (B) = P (A B) + P (A B) = P (A) P (BA) + P (A) P (BA)

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 90%.

  • If a person is telling the truth, there’s a 15% 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 25%, 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.

1.
First, write down what you can tell from the information you’ve been given: L = the person is lying, T = the person is telling the truth, AL = the lie detector indicates a lie, AT = the lie detector indicates truth.
2.
You know that P (L) = 0.25. That makes
P (T ) = 1 P (L) = 0.75
3.
Furthermore, you know that P (ALL) = 0.90 and P (ALT ) = 0.15

You want to find the conditional probability of P (LAL). This is where you use Bayes’ theorem, but first you’ll have to calculate P (AL) 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:

P (AL) = P (L) P (ALL) + P (T ) P (ALT ) = 0.25 0.90 + 0.75 0.15 = 0.3375

Then you can insert all the known numbers into Bayes’ theorem to find the answer.

P (LAL) = P (L) P (ALL) P (AL) = 0.25 0.90 0.3375 0.67

The probability of the witness actually lying when the lie detector says they’re lying is just 0.67, or 67%. That’s not particularly convincing!

Want to know more?Sign UpIt's free!