# Statistics > Multinomial > Chi-Square Contingency Table

A contingency table contains frequencies corresponding to two variables, one used to categorize rows and another used to categorize columns. A test of independence tests whether the row and column variables in a contingency table are independent. The null hypothesis of such a test is that the row and column are independent. The test statistic for a test of independence in a contingency table is

where the expected frequency of a cell in the contingency table is (row total)(column total)/(grand total). The Chi-Square distribution is used, and the degrees of freedom is given by (number of rows - 1)(number of columns - 1).

When using this utility, you must provide the observed frequencies and the confidence level of the test.

### Dialog Inputs

#### Contingency Table

- The columns of a contingency table should be placed in separate columns in the Datasheet. All the columns in a contingency table must have the same number of rows.
- To specify a column of a contingency table, select the column in the Select a column of the table: drop-down menu, and click the Add Column button. The columns will be added to the Columns containing the contingency table: list. To remove a column that has been added to the list, select the column in the list and click the Remove Column button.

#### Significance Level

Enter the significance level in the given text box. The significance level must be between 0 and 1.