Loading…

Chi Square Test Tool

Math Probability • Statistical Inference and Hypothesis Testing

View all topics

Run a Chi-square goodness-of-fit test or a Chi-square test of independence. Enter observed counts (and expected counts for GOF), compute \(\chi^2=\sum \frac{(O-E)^2}{E}\), degrees of freedom, and the p-value. Includes an animated \(\chi^2\) curve with shaded tail area.

Enter counts separated by commas. For matrices, use semicolons to separate rows. Example 2×3: 10,12,8; 9,11,10

Independence mode: expected counts are computed by \(E_{ij}=\frac{(\text{row}_i\ \text{total})(\text{col}_j\ \text{total})}{N}\). df \(=(r-1)(c-1)\). GOF df is typically \(k-1\) (or \(k-1-m\) if parameters are estimated).

Ready

\(\chi^2\) curve and p-value tail (animated)

Animation ready

For chi-square tests, the p-value is the right-tail area: \(p=P(\chi^2_{df}\ge \chi^2_{\text{obs}})\). The statistic value is labeled on the axis, and the p-value appears inside the plot box.

Choose a mode, enter counts, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.