Block 4: Independence
Week 9 · Probability I · Imai §6.2.3 · about 4 min
NoteHow this works
Run each cell with Run Code, look at the output, then answer the question at the end of the block. Every cell is editable; Start Over resets it. Errors are information: read them.
If A and B are independent, \(P(A \text{ and } B) = P(A)\,P(B)\). We plot the joint probability against the product of the marginals: independence = points on the 45-degree line. (The probability tables are prepared in the background.)
1. Race and gender
2. Race, above 60 and female, jointly
Conclusion: Are race and gender independent? And race, age and gender jointly?
Race and gender are approximately independent (e.g. black women: joint 0.074 vs. product 0.070). Jointly with age they are not: the Florida electorate is older among whites than among black and Hispanic voters.