Chi Square Test for Goodness of Fit

By Anthony M. Wanjohi: Chi square is a non-parametric test commonly used to test either goodness of fit or association between two categorical variables (test of independence).  Categorical variables are grouped as nominal (names), ordinal (ordered) or dichotomous (binary). The purpose of this article is to illustrate chi square test for goodness of fit commonly used to […]

Chi-Square Test for Independence

By Anthony M. Wanjohi Chi-square is used either to analyze whether a frequency distribution for a categorical variable, say sex is consistent with expectations (a goodness of fit test), OR whether two categorical variables are significantly associated with each other (a test for independence). Chi square test for independence is used to test two categorical […]