Concept Flow - Chi-squared test
Start with observed data
Calculate expected data
Compute (Observed - Expected)^2 / Expected
Sum all values to get Chi-squared statistic
Compare statistic to Chi-squared distribution
Decide if variables are independent or not
The test compares observed counts to expected counts to check if variables are independent.