NATIONAL ENGINEERING COLLEGE, K.R.Nagar, Kovilpatti – 628 503.
(An Autonomous Institution – Affiliated to Anna University, Chennai)
Statistical Analysis Tool

Chi-Square Statistical Analysis

Perform Goodness of Fit and Test of Independence with step-by-step solutions, interactive charts, and professional-grade results.

Start Analysis ↓

📂 Upload File

Auto-fill form from your data file

📁

Drag & Drop your file here

or click Browse to choose a file

📊 CSV 📗 Excel (.xlsx / .xls) 📄 PDF

Data Entry

Enter comma-separated values for each category

📂 Upload File

Auto-fill contingency table from your data file

📁

Drag & Drop your file here

or click Browse to choose a file

📊 CSV 📗 Excel (.xlsx / .xls) 📄 PDF

Contingency Table

Define table dimensions and enter observed values

What is Chi-Square?

📖

Definition

The Chi-Square (χ²) test is a statistical hypothesis test used to examine how well observed data matches an expected distribution (Goodness of Fit) or whether two categorical variables are independent (Test of Independence).

🔢

Formula

χ² = Σ (O − E)² / E

O = Observed frequency  ·  E = Expected frequency  ·  Σ = Sum across all categories

📊

Types

  • Goodness of Fit — Does the observed data follow the expected distribution? (1 row of data, df = n−1)
  • Test of Independence — Are two categorical variables associated? (contingency table, df = (r−1)(c−1))
✅

When to Use

  • Data is in the form of counts / frequencies
  • Categories are mutually exclusive
  • Expected frequency in each cell ≥ 5
  • Observations are independent
⚖️

Decision Rule

If χ²calc > χ²critical → Reject H₀

If χ²calc ≤ χ²critical → Fail to Reject H₀

Equivalently: if p-value < α → Reject H₀

📐

Degrees of Freedom

  • Goodness of Fit: df = n − 1 (n = number of categories)
  • Independence: df = (r − 1) × (c − 1) (r = rows, c = columns)

Chi-Square Critical Values Table

Highlighted row and column show the selected df and α from your last analysis.

df \ α 0.10 0.05 0.01