Chi-square test
- To determine if two categorical variables have a significant correlation between them.
- Is used to determine if a difference between observed data and expected data is due to chance, or if it is due to relationship between the variables.
- In chi-square test, the data are frequencies rather than numerical scores.
Formula
i) For goodness of fit test, expected frequency ( f0) = p x n
where, P = proportion from the null hypothesis
n = size of the sample
ii) For test for independence, expected frequency ( fe) = (row total x column total) / n total
X2 = Σ ( f0 – fe)2/ fe
Or, X2 = Σ (O-E)2/ E
Z-test
- A statistical test used to determine whether two population means are different when the variance are known and the sample size is large.
Difference between t-test and z-test.
t-test |
z-test |
a) Done for small size sample. i.e. n< 30 |
a) Done for large size sample ( n>30) |
b) Here, SD is unknown |
b) Here, SD is known. |