Formulas and Functions Help
- Welcome
-
- ACCRINT
- ACCRINTM
- BONDDURATION
- BONDMDURATION
- COUPDAYBS
- COUPDAYS
- COUPDAYSNC
- COUPNUM
- CUMIPMT
- CUMPRINC
- CURRENCY
- CURRENCYCODE
- CURRENCYCONVERT
- CURRENCYH
- DB
- DDB
- DISC
- EFFECT
- FV
- INTRATE
- IPMT
- IRR
- ISPMT
- MIRR
- NOMINAL
- NPER
- NPV
- PMT
- PPMT
- PRICE
- PRICEDISC
- PRICEMAT
- PV
- RATE
- RECEIVED
- SLN
- STOCK
- STOCKH
- SYD
- VDB
- XIRR
- XNPV
- YIELD
- YIELDDISC
- YIELDMAT
-
- AVEDEV
- AVERAGE
- AVERAGEA
- AVERAGEIF
- AVERAGEIFS
- BETADIST
- BETAINV
- BINOMDIST
- CHIDIST
- CHIINV
- CHITEST
- CONFIDENCE
- CORREL
- COUNT
- COUNTA
- COUNTBLANK
- COUNTIF
- COUNTIFS
- COVAR
- CRITBINOM
- DEVSQ
- EXPONDIST
- FDIST
- FINV
- FORECAST
- FREQUENCY
- GAMMADIST
- GAMMAINV
- GAMMALN
- GEOMEAN
- HARMEAN
- INTERCEPT
- LARGE
- LINEST
- LOGINV
- LOGNORMDIST
- MAX
- MAXA
- MAXIFS
- MEDIAN
- MIN
- MINA
- MINIFS
- MODE
- NEGBINOMDIST
- NORMDIST
- NORMINV
- NORMSDIST
- NORMSINV
- PERCENTILE
- PERCENTRANK
- PERMUT
- POISSON
- PROB
- QUARTILE
- RANK
- SLOPE
- SMALL
- STANDARDIZE
- STDEV
- STDEVA
- STDEVP
- STDEVPA
- TDIST
- TINV
- TTEST
- VAR
- VARA
- VARP
- VARPA
- WEIBULL
- ZTEST
- Copyright
![](https://help.apple.com/assets/6467B9B3CF36103D3A318861/6467B9B8CF36103D3A318879/en_US/784be3dfed809d4b6bb7cc427d8c5f01.png)
CHITEST
The CHITEST function returns the value from the chi-square distribution for the given data. All values are number values.
CHITEST(actual-values, expected-values)
actual-values: The collection containing the actual values.
expected-values: The collection containing the expected values.
Notes
The degrees of freedom relating to the value returned is the number of rows in actual-values minus 1.
Each expected value is computed by multiplying the sum of the row by the sum of the column and dividing by the grand total.
Example |
---|
Suppose that for a particular question on a survey, the range of possible answers was 1 to 5. The survey results were accumulated separately for men and women. In the following table, cells B3:C7 contain the actual number of responses for each answer, split between men and women. Cells B9:C13 contain the calculated population expected values for a normal population, based on the sample. Each population expected value is computed by multiplying the sum of the row by the sum of the column and dividing by the grand total. |
A | B | C | |
---|---|---|---|
1 | Answer | Men | Women |
2 | Actual | Responses | Responses |
3 | 5 | 15 | 9 |
4 | 4 | 56 | 35 |
5 | 3 | 11 | 23 |
6 | 2 | 10 | 23 |
7 | 1 | 8 | 10 |
8 | Expected | Responses | Responses |
9 | 5 | 12.00 | 4.50 |
10 | 4 | 10.20 | 3.83 |
11 | 3 | 4.92 | 1.85 |
12 | 2 | 4.82 | 1.81 |
13 | 1 | 4.21 | 1.58 |
=CHITEST(B3:C7, B9:C13) returns approximately 1.3382569E-218. Using this value and the degrees of freedom (4 in this example because there are 5 rows of actual values), you could use a chi-square table to determine if there is a statistically significant difference between the sample result and the expected population result. |