Testing Hypothesis using Chi square test