Skip to content

Independence and Homogeneity

Test for Independence

Contingency table: 2-way table

Conditions for Independence Test

  • Random sample
  • Independent values
    • Sample with replacement
    • or n<0.1Nn < 0.1N
  • Large counts condition
    • Expected values 5\geq 5
    • or 80%\geq 80\% of expected values >5> 5 and all are 1\geq 1

Calculate Independence Test

  • Expected valueExpected\ value = Probability in row×Probability in column×Total number in the sampleProbability\ in\ row \times Probability\ in\ column \times Total\ number\ in\ the\ sample = Row total×Column totalTotal number in the sample\dfrac{Row\ total \times Column\ total}{Total\ number\ in\ the\ sample}
  • dof=(Nrow1)(Ncol1)dof = (N_{row} -1)(N_{col} -1)