Chi-square test, or chi-square test, is a widely used hypothesis testing method. It can be divided into two categories: group comparison (unpaired data) and individual comparison (paired, or comparison of two treatments of the same object).
The following data is an example of x2 test for four-grid table data.