The Chi-squared test of independence
The Chi-Squared Test is a statistical test used to determine if there is a significant association between two categorical variables. It compares the observed counts in each category to the counts we would expect to find if there were no association between the variables.
Hypothesis chi squared
Null hypothesis (H₀): The two categorical variables are independent. This means the proportion of one variable’s categories is the same across all categories of the other variable.
Alternative hypothesis (H₁): The two categorical variables are dependent (related). This means the proportion of one variable’s categories is not the same across all categories of the other variable.
Assumptions chi squared