# CHITEST

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function calculates the test for independence from the chi-squared distribution.

## Syntax

CHITEST(*obs\_array*,*exp\_array*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *obs\_array* | Array of observed values to test against expected values |
| *exp\_array* | Array of expected values against which to test observed values |

The arrays in the arguments must be of the same size.

## Data Types

Accepts arrays of numeric data for both arguments. Returns numeric data.

## Examples

`CHITEST(B1:C8,B12:C19)`
`CHITEST(R1C2:R8C3,R12C2:R19C3)`

## Version Available

This function is available in product version 1.0 or later.

## See Also

[CHIDIST](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCHIDIST) \| [CHIINV](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCHIINV) \| [AVERAGE](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionAVERAGE) \| [Statistical Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsstats)