Chi Squared Distribution

Hypothesis Testing

χ2 Distribution

The χ2 distribution allows you to:

It takes a test statistic

χ2=∑(O−E)2E

where O refers to observed frequencies, and E refers to expected frequencies.

If we’re using test statistic X2 with the χ2 distribution, we write

X2∼χα2(ν)

where ν is the number of degrees of freedom, and α is the level of significance.
chi dist v less than 2.png|center
chi dist v greater than 2.png|center

Value of ν

In a goodness of fit test, ν is the number of classes minus the number of restrictions.

In a test for independence for two variables, if your contingency table has h rows and k columns,

ν=(h−1)∗(k−1)

Interpretation

If the value of X2 is low, then this means there’s a less significant difference between the observed and expected frequencies. The higher X2 is, the more significant the differences become.

Sources: 1

Connect With Me!