Chi-Square Calculator
Calculate chi-square statistic and p-value. Free online chi-square test calculator.
The Chi-Square Calculator computes the chi-square statistic for goodness-of-fit and independence tests. Enter observed and expected frequencies to find the χ² value and p-value. This test assesses whether observed data significantly differs from expected values, essential for categorical data analysis.
Chi-Square Calculator
Formula: χ² = Σ (O − E)² ÷ E
Worked example
- (50 − 40)² ÷ 40 = 2.5
- (30 − 40)² ÷ 40 = 2.5
- (20 − 20)² ÷ 20 = 0
- χ² = 2.5 + 2.5 + 0 = 5
Replace these values in the calculator above to compute your own numbers.
Common use cases
- Testing categorical independence
- Goodness-of-fit testing
- Survey response analysis
- Genetics ratio testing
- Quality control inspection
How to use
- Enter observed frequencies
- Enter expected frequencies
- Click calculate for χ² statistic
- View degrees of freedom and p-value
- Interpret statistical significance
FAQ
What is chi-square?
χ² = Σ(O-E)²/E, summing squared differences between observed (O) and expected (E), divided by expected.
What are degrees of freedom?
For goodness-of-fit: k-1 (k categories). For independence: (rows-1)×(columns-1).
How do I interpret p-value?
If p < α (typically 0.05), reject null hypothesis—observed differs significantly from expected.
What are the requirements?
Expected frequencies should generally be ≥ 5. Use exact tests for smaller samples.
Related tools
- Critical Values CalculatorFind critical values for hypothesis tests. Free online z and t critical value calculator.
- T-Value CalculatorCalculate t-statistic and p-value for t-tests. Free online t-test calculator.
- Probability CalculatorCalculate basic probability for events. Free online probability calculator with AND, OR operations.
- Normal Distribution CalculatorCalculate normal distribution probabilities. Free online Gaussian distribution calculator.
- Z-Score CalculatorCalculate z-scores for normal distributions. Free online standard score calculator.
- Average CalculatorCalculate the mean average of any set of numbers. Free online average calculator for quick statistical…