# Enter your data for Chi-Square Test for Association

Stat > Tables > Chi-Square Test for Association

Select the option that best describes your data.

## Raw data (categorical variables)

Complete the following steps if the raw data for each categorical variable are in separate columns.

1. From the drop-down list, select Raw data (categorical variables).
2. In Rows, enter the column that contains the categories that define the rows of the table.
3. In Columns, enter the column that contains the categories that define the columns of the table.
In this worksheet, Machine indicates which machine produced the defective handle. Shift indicates which shift produced the defective handle. The first row of the worksheet indicates that the defective handle was produced by Machine 1 during Shift A.
C1 C2-T
Machine Shift
1 A
1 B
1 A
1 A
1 A

## Summarized data in a two-way table

Complete the following steps if the data are summarized in separate columns.

1. From the drop-down list, select Summarized data in a two-way table.
2. In Columns containing the table, enter the columns that contain the summarized data.
3. Under Labels for the table (optional), enter the columns that contains the row and column labels.
• In Rows, enter the column that contains the categories that define the rows of the table.
• In Columns, type the name that Minitab will use to label the columns of the output table.
In this worksheet, 1st shift, 2nd shift, and 3rd shift are the table of columns that contain the counts of rejected products for each work shift. Machine ID is the column of row labels and indicates which machine manufactured the rejected products.
C1 C2 C3 C4
Machine ID 1st shift 2nd shift 3rd shift
1 48 47 48
2 76 47 32
3 36 40 34