- Observations are two measurements on the same subject (e.g. eye color and hair color)
- Random samples (X1,Y1),…,(Xn,Yn)
- X and Y with different ranges {1,2,…,I} and {1,2,…,J}
- Consider hyothesis test: H0:P(X=i,Y=j)=P(X=i)P(Y=j) for all i and jHA:P(X=i,Y=j)≠P(X=i)P(Y=j) for some i and j
- Construct contingency table of n observations Oij=#1≤l≤n{(Xl,Yl)=(i,j)}