=CHISQ.TEST(actual_range,expected_range)
=CHISQ.TEST(A2:B4,A6:B8)
This example uses the CHISQ.TEST function to test whether the data in A2:B4 and A6:B8 are independent. The results of the test will show whether the data from the two ranges are related or not.
=CHISQ.TEST(A2:B4,A6:B8)
This example will return a #N/A error if the number of data points in A2:B4 and A6:B8 are different. This means that the two sets of data must have the same number of points in order to test if they are independent or not.
The CHISQ.TEST function is used to test for independence and calculate the chi-squared statistic. The result of the test is used to determine if a hypothesis is verified by an experiment. An error will be returned if the number of data points in the actual_range and expected_range are different.