Course contentsShow
← Mathematics
Lesson 2804 of 3,12155. Probability — FoundationsFree lesson

Testing for Independence

Practice verifying independence by checking if P(A|B) = P(A) or equivalently P(A ∩ B) = P(A)·P(B).

Testing for Independence

What you'll learn: You'll learn how to verify whether two events are independent by checking mathematical conditions using their probabilities.

The Core Idea

Two events A and B are independent if knowing that B occurred doesn't change the probability of A. To test if events are actually independent, you check one of two equivalent mathematical conditions:

  1. Conditional probability test: Does P(A|B) = P(A)?
  2. Product rule test: Does P(A ∩ B) = P(A) · P(B)?

If either equation holds (and they're mathematically equivalent), the events are independent. If not, they're dependent.

Why This Matters

Testing is about verification. You're given some probabilities and must determine whether independence holds. This is like being handed a contract and checking if all the clauses are satisfied—you're not assuming independence, you're proving it.

How to Apply the Tests

Example: Suppose P(A) = 0.4, P(B) = 0.5, and P(A ∩ B) = 0.2.

Using the product rule test:

  • Calculate P(A) · P(B) = 0.4 · 0.5 = 0.2
  • Compare to P(A ∩ B) = 0.2
  • Since they match: Events are independent ✓

Using the conditional probability test:

  • Calculate P(A|B) = P(A ∩ B) / P(B) = 0.2 / 0.5 = 0.4
  • Compare to P(A) = 0.4
  • Since they match: Events are independent ✓

Counter-example: If P(A ∩ B) = 0.15 instead:

  • P(A) · P(B) = 0.2 ≠ 0.15
  • Events are dependent

Practical Tip

The product rule test (condition 2) is usually faster when you already know P(A ∩ B). The conditional test is better when working with tables or tree diagrams where conditional probabilities are explicit.

Key Takeaway: To test for independence, verify either P(A|B) = P(A) or P(A ∩ B) = P(A)·P(B); if the equation fails, the events are dependent.