Chi-square Independence Calculator
Inspect a two-way count table with Pearson’s statistic, expected counts, and a conditional approximate p value.
Loading tool…
How to use Chi-square Independence Calculator
Expected cells equal row total×column total/grand total. Sum (observed−expected)²/expected; chi-square degrees of freedom are (rows−1)(columns−1).
- Enter observed count table (json rows).
- Check the model, units, and supported limits before calculating.
- Run the tool, inspect the result, then copy or download it.
Good to know
- 2–10 rows and columns, nonnegative whole counts, positive marginal totals. Approximate p is withheld if any observed or expected cell is below 5. Pearson only: no Yates, exact, permutation, or Monte Carlo mode.
- Runs locally. Numeric inputs are bounded; floating-point output is approximate and rounded to 12 significant digits. Unsupported or non-finite calculations produce an error.
Common questions
How does Chi-square Independence Calculator calculate its result?
Expected cells equal row total×column total/grand total. Sum (observed−expected)²/expected; chi-square degrees of freedom are (rows−1)(columns−1).
What assumptions and boundaries apply?
2–10 rows and columns, nonnegative whole counts, positive marginal totals. Approximate p is withheld if any observed or expected cell is below 5. Pearson only: no Yates, exact, permutation, or Monte Carlo mode.
Keep going with related tools
All math →Two-proportion A/B Test Calculator
Compare two independent success rates with an explicitly approximate two-sided pooled z test.
MathHypergeometric Probability Calculator
Calculate successes in sampling without replacement from a finite population.
MathBinomial Probability Calculator
Find exact-count and cumulative probabilities for independent trials with a fixed success chance.
MathConfusion Matrix Metrics Calculator
Calculate explicitly oriented binary or multiclass prediction metrics from a whole-count confusion table.
MathMcNemar Paired Binary Test Calculator
Analyze discordant outcomes in a matched binary table with exact or corrected approximate inference.
MathFisher Exact2×2 Test Calculator
Compute a bounded fixed-margin Fisher exact probability with a named one- or two-sided alternative.