The chi-square test is a hypothesis testing method used for categorical data frequencies to determine if an observed distribution matches a theoretical one or if there is a relationship between two ...