Chi-square test is the deviation between the actual observation value and the theoretical inference value of statistical samples. The deviation between the actual observed value and the theoretical inferred value determines the chi-square value. The greater the chi-square value, the greater the deviation between them. On the contrary, the smaller the deviation between them; If the two values are completely equal, the chi-square value is 0, indicating that the theoretical values are completely consistent.