Question: when to use chi square?
Answer: They need to estimate how closely an observed distribution matches an expected distribution. This is referred to as a “goodness-of-fit” test. They need to estimate whether two random variables are independent.