Ad Space — Top Banner

Chi-Square Calculator

Perform a chi-square goodness-of-fit test.
Enter observed and expected frequencies to calculate the chi-square statistic and p-value.

Chi-Square Test Results

Chi-Square Statistic:

χ² = Σ (Observed - Expected)² / Expected

How it works:

  1. For each category, calculate (O - E)² / E
  2. Sum all the values to get χ²
  3. Compare to the chi-square distribution with the correct degrees of freedom

Degrees of freedom:

  • Goodness-of-fit: df = number of categories - 1

When to use:

  • Testing if observed frequencies match expected frequencies
  • Comparing categorical data distributions
  • Testing independence between two categorical variables

Example: Testing if a die is fair — roll it 60 times and check if each face appears roughly 10 times.


Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.