Skip to content
← All questions

How is Bayes' formula derived from the shared intersection of two events?

Bayes' formula is derived by expressing the joint probability of the intersection of events A and B, P(A∩B)P(A \cap B), in two different ways using the definition of conditional probability. By equating these two expressions, P(A∣B)P(B)P(A|B)P(B) and P(B∣A)P(A)P(B|A)P(A), and then dividing by P(B)P(B), we isolate P(A∣B)P(A|B) to obtain Bayes' theorem.

Conditions

  • P(B)>0P(B) > 0 to allow division.
  • Events A and B are defined in the same probability space.

Reasoning, step by step

  1. Write the joint probability using the definition of conditional probability for A given B: P(A∩B)=P(A∣B)P(B)P(A \cap B) = P(A|B)P(B).
  2. Write the joint probability using the definition of conditional probability for B given A: P(A∩B)=P(B∣A)P(A)P(A \cap B) = P(B|A)P(A).
  3. Equate the two expressions for the intersection: P(A∣B)P(B)=P(B∣A)P(A)P(A|B)P(B) = P(B|A)P(A).
  4. Divide both sides by P(B)P(B) (assuming P(B)>0P(B) > 0).
  5. Result: P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}, which is Bayes' formula.

Example

The script states: 'Write P(A∩B)=P(A|B)P(B)=PP(B)=P(B|A)P(A)P(A). Dividing by a positive P(B)P(B) gives Bayes’ formula. The two conditional definitions require nonzero conditioning probabilities.'

Common misconceptions

  • Forgetting that the derivation relies on the commutativity of the intersection (A∩B=B∩AA \cap B = B \cap A).
  • Attempting to divide by zero if P(B)=0P(B)=0.
  • Confusing the joint probability P(A∩B)P(A \cap B) with the conditional probability P(A∣B)P(A|B).

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Understand why

↗
Find a method

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.