Chi-Square Test Formula
Chi-square test is a hypothesis test that compares observed frequencies to expected frequencies using the chi-square statistic to assess independence or.
The Formula
When to use: You expect a die to land on each face about of the time. You roll it 600 times and compare what you observed to what you expected. If the differences are small, the die is probably fair. If they're large, something is off. The chi-square statistic measures 'how far off are the observed counts from what we expected?'
Quick Example
Notation
What This Formula Means
A hypothesis test that compares observed frequencies to expected frequencies using the chi-square statistic to assess independence or goodness of fit.
You expect a die to land on each face about of the time. You roll it 600 times and compare what you observed to what you expected. If the differences are small, the die is probably fair. If they're large, something is off. The chi-square statistic measures 'how far off are the observed counts from what we expected?'
Formal View
Worked Examples
Example 1
mediumAnswer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
hardExample 3
mediumCommon Mistakes
- Dividing by Observed instead of Expected - the formula is , scaling each gap by the expected count.
- Using percentages or means as the data - chi-square requires raw category counts, not proportions or averages.
- Using the wrong degrees of freedom - goodness-of-fit uses ; a two-way independence test uses .
Why This Formula Matters
It's the standard test for categorical data β the place a mean-based t-test simply doesn't apply because there's nothing to average. Knowing that big squared deviations relative to expected counts drive a large is what connects 'the counts look off' to a real, p-value-backed conclusion about fairness or association. Recognizing it by "Are the data counts of cases falling into categories, being compared to expected counts (rather than means or continuous values)?" β rather than by familiar numbers β is what lets a student tell it apart from two-sample t-test and two-proportion z-test and correlation / lsrl in a mixed problem set.
Frequently Asked Questions
What is the Chi-Square Test formula?
A hypothesis test that compares observed frequencies to expected frequencies using the chi-square statistic to assess independence or goodness of fit.
How do you use the Chi-Square Test formula?
You expect a die to land on each face about of the time. You roll it 600 times and compare what you observed to what you expected. If the differences are small, the die is probably fair. If they're large, something is off. The chi-square statistic measures 'how far off are the observed counts from what we expected?'
What do the symbols mean in the Chi-Square Test formula?
is the test statistic. Degrees of freedom: goodness-of-fit ; independence/homogeneity .
Why is the Chi-Square Test formula important in Math?
It's the standard test for categorical data β the place a mean-based t-test simply doesn't apply because there's nothing to average. Knowing that big squared deviations relative to expected counts drive a large is what connects 'the counts look off' to a real, p-value-backed conclusion about fairness or association. Recognizing it by "Are the data counts of cases falling into categories, being compared to expected counts (rather than means or continuous values)?" β rather than by familiar numbers β is what lets a student tell it apart from two-sample t-test and two-proportion z-test and correlation / lsrl in a mixed problem set.
What do students get wrong about Chi-Square Test?
The procedure for chi-square test is the easy part; the trap is dividing by Observed instead of Expected. Asking "Are the data counts of cases falling into categories, being compared to expected counts (rather than means or continuous values)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
What should I learn before the Chi-Square Test formula?
Before studying the Chi-Square Test formula, you should understand: hypothesis testing, p value, probability.