Question
An auditor compares two equally busy delivery venues, East and West. For each order, \(X=1\) means a particular routing flag was switched on, and \(Y=1\) means the delivery arrived early. Their joint probabilities are shown below; rows are X and columns are Y.
East venue:
| Y=0 | Y=1 | |
|---|---|---|
| X=0 | 0.40 | 0.10 |
| X=1 | 0.10 | 0.40 |
West venue:
| Y=0 | Y=1 | |
|---|---|---|
| X=0 | 0.10 | 0.40 |
| X=1 | 0.40 | 0.10 |
An order is selected by first choosing East or West with probability \(1/2\) each, then sampling from that venue's table. Is X independent of Y in the pooled orders? Is it independent of Y within either venue? Demonstrate both conclusions using the joint probabilities, not a significance test.
Get hint
Hint 1
Check the X and Y marginal probabilities in each venue before combining the two tables.
Check your answer
Solution
Each table is a valid joint probability distribution: its four cells are nonnegative and sum to one. In East, both marginals are 1/2 because \(P(X=1\mid\text{East})=0.10+0.40=0.50\) and \(P(Y=1\mid\text{East})=0.10+0.40=0.50\). Independence would require \(P(X=1,Y=1\mid\text{East})=0.5\times0.5=0.25\), but the given value is 0.40. The joint-minus-product difference is +0.15, so \(X\) and \(Y\) are dependent in East.
Likewise, in West the \(X=1\) and \(Y=1\) marginals are 0.50 each, but \(P(X=1,Y=1\mid\text{West})=0.10\), giving difference −0.15. They are also dependent there, in the opposite direction.
The overall sampling rule assigns probability 1/2 to each venue. Averaging each corresponding joint cell gives
\(P(X=0,Y=0)=0.5(0.40)+0.5(0.10)=0.25\);
\(P(X=0,Y=1)=0.5(0.10)+0.5(0.40)=0.25\);
\(P(X=1,Y=0)=0.5(0.10)+0.5(0.40)=0.25\);
\(P(X=1,Y=1)=0.5(0.40)+0.5(0.10)=0.25\).
Consequently the pooled marginals are \(P(X=1)=P(Y=1)=1/2\) and every pooled cell equals the product of its marginals, 1/4. \(X\) and \(Y\) are independent in the pooled sample. A check based only on the pooled joint-minus-product difference gives 0, exactly the average of the context-specific +0.15 and −0.15 effects. Independence after mixing does not imply independence within each venue: the opposite associations have cancelled.
Assumptions
Each venue-specific 2×2 table gives joint probabilities, not counts or conditional row percentages.
The venue is selected with exactly equal probability, independently of the subsequent within-venue draw.
The question concerns distributional independence only; no hypothesis test or causal attribution is implied.
Final Answer
Pooled: \(X\) and \(Y\) are independent. Within East and within West: \(X\) and \(Y\) are dependent, with \(P(X=1,Y=1)-P(X=1)P(Y=1)\) equal to +0.15 and −0.15 respectively.