Chi Square Test Definition And Formula. Chi square test of independence. A chi square test of independence uses the following null and alternative hypotheses.
χ 2 o i e i 2 e i. χ2 σ o e 2 e σ means to sum up see sigma notation. We use the following formula to calculate the chi square test statistic x 2.
Where o i is the observed value and e i is the expected value.
Alternative hypothesis a variable does not follow a hypothesized distribution. The chi square formula is used in the chi square test to compare two statistical data sets. Null hypothesis a variable follows a hypothesized distribution. X 2 σ o e 2 e.