The chi-square test is used to compare observed and expected frequencies to determine if two characteristics are related, based on a null hypothesis. Key requirements include frequency data organized into categories, with a total observations count greater than 20 and expected frequencies above 5. In a sample analysis, the null hypothesis was rejected, indicating an association between gender and hypertensive status at the significance level of 0.05.