ToolJovia
Math

Chi-square Independence Calculator

Inspect a two-way count table with Pearson’s statistic, expected counts, and a conditional approximate p value.

✓ Browser-local processing

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).

  1. Enter observed count table (json rows).
  2. Check the model, units, and supported limits before calculating.
  3. 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 →