Please verify you are human to use the calculator.
The chi-square test of independence determines whether two categorical variables are associated by comparing observed cell frequencies in a contingency table with the frequencies expected under the null hypothesis of independence. It is one of the most commonly used tests in survey analysis, market research, and biomedical studies.
A key validity requirement is that expected cell frequencies must not be too small: every cell should have an expected count of at least 1, and at least 80% of cells should have expected counts of 5 or greater. When these conditions are not met, Fisher's exact test should be used instead. Each observation must also belong to exactly one cell—if subjects can appear in multiple categories, the independence assumption is violated.
Because the chi-square statistic is proportional to sample size, very large samples can make trivially small associations statistically significant while very small samples may lack the power to detect meaningful associations. Always supplement the p-value with an effect size measure such as Cramér’s V to gauge whether the association has practical importance.
A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itCompare two independent proportions to determine if they differ significantly. Ideal for A/B testing and clinical trials.
Try itTest whether observed frequencies match expected frequencies from a theoretical distribution.
Try itExact test for independence in a 2×2 contingency table. Preferred over chi-square when sample sizes are small.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the chi-square test of independence