Why is P(A∣B) generally not equal to P(B∣A), and how does Bayes' rule connect the two, with a small example?

Probability and statistics, Conditional probability
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you can tell the two conditional probabilities apart (the "prosecutor's fallacy") and can convert between them.

Key idea

P(A∣B)=P(B∣A) P(A)P(B), so when P(A∩B)>0 the two are equal only if P(A)=P(B).

Steps

  1. Write the definition P(A∣B)=P(A∩B)/P(B) and P(B∣A)=P(A∩B)/P(A). Both share the numerator, but the denominators differ.
  2. Divide one by the other to get P(A∣B)/P(B∣A)=P(A)/P(B). Rearranging gives Bayes' rule.
  3. Take an example: let A = "person is a professional footballer" and B = "person is male and over 6 feet tall". Almost all footballers are tall, so P(B∣A) is large, but very few tall people are footballers, so P(A∣B) is tiny.
  4. Say the size of the gap is set by the ratio of the base rates P(A)/P(B). That is why a rare disease with an accurate test still has a modest posterior.

Common mistakes

How long your answer should be

4–5 sentences with one example.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: What do covariance and correlation tell you about two variables, and why is correlation usually easier to interpret than covariance?
Next in Probability and statistics: If two events A and B both have positive probability and are mutually exclusive, can they be independent?