chi-square test
The chi-square test is used in two similar but distinct circumstances:
(1)how closely an observed distribution matches an expected distribution,referred as the goodness-of-fit test
(2)whether two random variables are independent(no association)