Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Test Whether Two Events Are Independent

Two events are independent when knowing one happened does not change the chance of the other. Numerically, the probability of both equals the product of the two probabilities.

Recognize the task

"Are AA and BB independent?", "show that the events are dependent", "does the result of one affect the other?". You are given the probabilities, a table, or an experiment you can list. Test: can you find P(A∩B)P(A \cap B) without assuming independence?
Independence is defined in the formal definition of independence; the test is the independence formula.

Two ways to do it

Product testusual choice
P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A)\cdot P(B)
Equal means independent (independence formula).
Conditional testwhen a conditional is given
P(A∣B)=P(A)P(A \mid B) = P(A)
Compare the conditional probability with the unconditional one.

Steps

StepOn one die: A = even, B = at most 2
1Find each probability. Count or read them off.P(A)=36=12P(A) = \frac{3}{6} = \frac{1}{2}, P(B)=26=13P(B) = \frac{2}{6} = \frac{1}{3}
2Find the probability of both from the outcomes. Do not multiply here; that is what is being tested.A∩B={2}A \cap B = \{2\}, P(A∩B)=16P(A \cap B) = \frac{1}{6}
3Multiply the single probabilities. This is what independence would predict.P(A)⋅P(B)=12⋅13=16P(A)\cdot P(B) = \frac{1}{2}\cdot\frac{1}{3} = \frac{1}{6}
4Compare. Equal: independent. Different: dependent.16=16\frac{1}{6} = \frac{1}{6}: independent

Worked examples

Example 1 · two coins

independent
AA = first is heads, BB = second is heads
P(A∩B)=14=12⋅12P(A \cap B) = \frac{1}{4} = \frac{1}{2}\cdot\frac{1}{2}: independent
one of four outcomes

Example 2 · a heart and a king

independent
P(heart)=14P(\text{heart}) = \frac{1}{4}, P(king)=113P(\text{king}) = \frac{1}{13}
P(king of hearts)=152=14⋅113P(\text{king of hearts}) = \frac{1}{52} = \frac{1}{4}\cdot\frac{1}{13}
one card is both
independent

Example 3 · even and above 3

dependent
A={2,4,6}A = \{2, 4, 6\}, B={4,5,6}B = \{4, 5, 6\}, A∩B={4,6}A \cap B = \{4, 6\}
P(A∩B)=13P(A \cap B) = \frac{1}{3}, P(A)P(B)=14P(A)P(B) = \frac{1}{4}
compare the two
13≠14\frac{1}{3} \neq \frac{1}{4}: dependent

See it happen

In a unit square, give AA the left strip of width P(A)P(A) and BB the bottom strip of height P(B)P(B). If the events are independent, their overlap is exactly the corner rectangle of area P(A)⋅P(B)P(A)\cdot P(B). A larger or smaller overlap means one event pulls the other up or down. Try it in the two events calculator.

Common mistakes

Disjoint read as independent

✗ AA and BB cannot happen together, so they are independent
✓ disjoint events with positive probabilities are dependent: 0≠P(A)P(B)0 \neq P(A)P(B)

Assuming the answer

✗ P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B), so the product equals itself
✓ find P(A∩B)P(A \cap B) from the outcomes or the table first

Judging by the story

✗ "the events seem unrelated", so independent
✓ independence is a numerical fact; check the product