Chi-Square Test Calculator
Use this chi-square test calculator to test whether two categorical variables are significantly associated using raw data or an observed contingency table.
Enter Observed Contingency Table
Common values: 0.10, 0.05, 0.01
What is the Chi-Square Test of Independence?
The chi-square test of independence is a statistical hypothesis test used to determine whether two categorical variables are likely to be related or not. It compares the observed frequencies in a contingency table with the frequencies that would be expected if there were no association between the variables.
Hypotheses
- H₀ (Null Hypothesis): The variables are independent (there is no relationship between them).
- H₁ (Alternative Hypothesis): The variables are dependent (there is a relationship between them).
Assumptions
- The sample data was randomly selected.
- The variables under study are categorical.
- The expected value of the number of sample observations in each level of the variable is at least 5. If this assumption is violated, Fisher's Exact Test may be more appropriate for 2×2 tables.
Formula
χ² = Σ [ (Oᵢ - Eᵢ)² / Eᵢ ]
Where O is the observed frequency and E is the expected frequency for each cell in the table.