- Input
- A 2 by 2 table: 20, 15 on row one and 12, 18 on row two.
- Method
- Compute row totals, column totals, expected counts, residuals, and Cramer's V.
- Formula
- E_ij = row_i total * column_j total / grand total
- Intermediate steps
- Expected counts depend on marginal totals
- Residuals show where observed cells differ most
- Final result
- The output includes the chi-square statistic, p-value, residual table, and association effect size.
- Interpretation
- Association does not establish causal direction.
- Limitation
- Exact tests and complex survey tables are out of scope.