Chi-square test: goodness-of-fit vs independence, the data it needs, and its assumptions
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Overview: Describe the chi-square test, when to apply it as a goodness-of-fit test or as a test of independence in a contingency table, and what data it needs. The question tests your grasp of expected counts, degrees of freedom, the test's assumptions and what to use when they fail.