User:TSC2DNP/sandbox

PEER - TEACHING Wiki Assignment
'''

Chi-square Test (X2)
A Chi-square test, a nonparametric test, is measured by categorical level (nominal or ordinal) where the distribution assumption is met.

Assumption

 * All observations are independent.
 * Each case/count in cells is > 1.
 * Each case/count over 20% of cells should be < 5.

Hypotheses
When setting up the hypotheses for testing the association between two categorical variables should be written as follows:
 * Ho: There is no association between the two categorical variables.
 * H2: There is an association between the two categorical variables.

The formula used to calculate the test statistic is:

X 2 =  ∑  (0i - Ei)2  /  Ei

X2 = Chi square

Oi = observed value

Ei = Expected value

Helpful Tutorial with interpretation and APA example:

The Chi-square test: https://youtube/HKDqlYSLt68

EZ SPSS tutorial, interpreting Chi-square results in SPSS:  https://www.youtube.com/wfIfEWMJY3s