Association Test

Chi-squared test

πij=P(jth outcome and in population i)=P(a sample is from population i and expresses jth outcome)=πi.π.j

Where

To test the independence between them (rows x columns):

H0:πij=πi.π.j,i,jvsHa:i,j s.t. πijπi.π.j

under H0:

π^ij=π^iπ^j=ninnjn

We reject H0 if

χobs2=ij(fijEij)2Eij>χdf,1α2