Chi-square Test

Definitions

The chi-square test-statistic

\chi_c { #2} = \sum \frac{(E_i - O_i)^2}{E_i}

where the subscript “c” is the degrees of freedom. “O” is observed value and E is expected value.

Chi-square distribution

The chi-square distribution (or the chi-squared distribution) is a special case of the gamma distribution.
A chi square distribution with n degrees of freedom is equal to a gamma distribution with a = n / 2 and b = 0.5 (or β = 2).
chi-sqrt-distribution.png|300

Relationship between $\chi

{ #2}
$ and \chi { #2} distribution
You can compare \chi { #2} to the critical value from the \chi { #2} distribution with df degrees of freedom and the selected confidence level p.

Applications

Pearson's chi-squared test is used to assess three types of comparison

How to determine df

Rules