Simafore provides tools and expertise to:
The Analytics Compass Blog is aimed at two types of readers:
individuals who want to build analytics expertise and
small businesses who want to understand how analytics can help them improve their business performance.
If you fall into one of these categories, join hundreds of others and subscribe now!
(contributed by Sangeetha Krishnan) In a few previous articles we introduced a few common business analytics applications of the chi-square test, described the common steps in implementing the chi-square test, and also discussed the core working of the chi-square technique. In this article we touch upon two very important assumptions that go into the chi-square test which analysts must pay heed to.
1. Sample size assumption:
The chi-square test can be used to determine differences in proportions using a two-by-two contingency table. It is however important to understand that the chi-square tests yields only an approximate p-value, on which a correction factor is then applied. This only works well when your datasets are large enough. When sample sizes are small, as indicated by more than 20% of the contingency cells having expected values < 5 a Fisher's exact test maybe more appropriate. This test is one of a class of “exact tests”, because the significance of the deviation from a “null hypothesis” can be calculated exactly, rather than relying on an approximation.
Secondly, the chi-square test cannot be used on correlated data. When you are looking to test differences in proportions among matched pairs in a before/after scenario, an appropriate choice would be the McNemar's test. In essence, it is a chi-square goodness of fit test on the two discordant cells, with a null hypothesis stating that 50% of the changes (agreements or disagreements) go in each direction. This test requires the same subjects to be included in the before and after measurements i.e. the pairs should be matched one-on-one.
Chi-squared test of independence is a very useful tool for any predictive analytics professional. What other type of business problems are best solved by using these tools?
Allowed tags: <a> link, <b> bold, <i> italics