Tests for independence

Tests for the independence of 2 categorical variables and their properties and assumptions.

Test Purpose
Pearson X² Test if the variables are independent.  

Uses the score statistic and computes an asymptotic p-value.

Likelihood ratio G² Test if the variables are independent.  

Uses the likelihood ratio statistic and computes an asymptotic p-value.   Pearson X² usually converges to the chi-squared distribution more quickly than G². The likelihood ratio test is often used in statistical modeling as the G² statistic is easier to compare between different models.