# CHITEST Function

The CHITEST function is one of the statistical functions. It is used to return the test for independence, the value from the chi-squared (χ2) distribution for the statistic and the appropriate degrees of freedom.

The CHITEST function syntax is:

CHITEST(actual-range, expected-range)

where

actual-range is the range of observed (actual) values.

expected-range is the range of expected values.

The ranges must contain the same number of values. Each of the expected values should be greater than or equal to 5. The values can be entered manually or included into the cells you make reference to.

To apply the CHITEST function,

1. select the cell where you wish to display the result,
2. click the Insert function icon situated at the top toolbar,
   or right-click within a selected cell and select the Insert Function option from the menu,
   or click the icon situated at the formula bar,
3. select the Statistical function group from the list,
4. click the CHITEST function,
5. enter the required arguments separating them by commas,
6. press the Enter button.

The result will be displayed in the selected cell.