Enter observed counts directly.
χ² = —
Select a dataset, then run a simulation to see results.
Shuffle the group labels many times — breaking any association between the two variables — recording the χ² statistic each time. The histogram is the null distribution of χ²; the p-value is the right-tail area beyond your observed χ². This is a test — there is no confidence interval.