Excel 16.0 build 20131
Windows, bitness not recorded, AMD Ryzen 7 4800H with Radeon Graphics
5 captured inputs are indexed for this environment. Capture dates: 2026-07-12 to 2026-07-12. This is a reading count, not a comparison with another build.
Statistical functions
Close: 2 of 18 recorded answers differ in the last bits, worst 3 ULP
Everything else matches (5 in the answer bank and 13 workbook cells). Last-bit means a finite number within 16 ULP of Excel's. How we measure this · See the Rust code
| Language | Name in Excel |
|---|---|
| Arabic | CHISQ.TEST |
| Bulgarian | CHISQ.TEST |
| Czech | CHISQ.TEST |
| Danish | CHI2.TEST |
| German | CHISQ.TEST |
| Greek | CHISQ.TEST |
| English (Australia) | CHISQ.TEST |
| English (United Kingdom) | CHISQ.TEST |
| English (United States) | CHISQ.TEST |
| Spanish | PRUEBA.CHICUAD |
| Estonian | CHISQ.TEST |
| Finnish | CHINELIÖ.TESTI |
| French | CHISQ.TEST |
| Hebrew | CHISQ.TEST |
| Croatian | CHISQ.TEST |
| Hungarian | KHINÉGYZET.PRÓBA |
| Indonesian | CHISQ.TEST |
| Italian | CHISQ.TEST |
| Japanese | CHISQ.TEST |
| Korean | CHISQ.TEST |
| Lithuanian | CHISQ.TEST |
| Latvian | CHISQ.TEST |
| Norwegian | CHISQ.TEST |
| Dutch | CHIKW.TEST |
| Polish | CHI.TEST |
| Portuguese (Brazil) | CHISQ.TEST |
| Portuguese (Portugal) | TESTE.CHIQ |
| Romanian | CHISQ.TEST |
| Russian | ХИ2.ТЕСТ |
| Slovak | CHISQ.TEST |
| Slovenian | CHISQ.TEST |
| Serbian (Latin) | CHISQ.TEST |
| Swedish | CHI2.TEST |
| Thai | CHISQ.TEST |
| Turkish | KİKARE.TEST |
| Ukrainian | CHISQ.TEST |
| Vietnamese | CHISQ.TEST |
| Chinese (Simplified) | CHISQ.TEST |
| Chinese (Hong Kong) | CHISQ.TEST |
| Chinese (Traditional) | CHISQ.TEST |
Names from Microsoft's support site.
CHISQ.TEST(actual_range, expected_range)
CHISQ.TEST(actual_range, expected_range) returns a chi-square right-tail test probability from observed and expected frequencies. Supply the expected counts explicitly; the function does not infer them from labels.
=CHISQ.TEST({12,8},{10,10}) is about 0.37109337. The statistic is (12-10)^2/10+(8-10)^2/10=0.8, with one degree of freedom for a one-row, two-category comparison.
The arrays need matching shapes; a mismatch gives #N/A in the current wrapper. A one-cell comparison also gives #N/A because it supplies no positive degree count. The output is a tail probability, rather than the chi-square statistic itself.
The current wrapper requires a numeric value at every paired position and returns #VALUE! for text, logical or blank cells; it does not compact those cells into a shorter sample. It propagates a direct argument error before comparing shapes, then checks cell errors during traversal. A nonpositive expected count gives #NUM! in this code.
For an independence table, calculate expected counts from row total times column total divided by grand total before calling the function. The function takes those expected values as inputs. Its p-value is conditional on the chosen model and expected table.
(rows-1)*(columns-1) when both dimensions exceed one, columns-1 for one row or rows-1 for one column. Reject zero degrees.delta=actual-expected, square=delta*delta, contribution=square/expected and statistic=statistic+contribution from an initial zero.The starter example contributes 4/10=0.4 from each category, giving statistic 0.8 and one degree. For an independence layout {12,8;8,12}, both row totals and both column totals are twenty and the grand total forty, so every expected count is ten. Its four contributions total 1.6, still with one degree because (2-1)*(2-1)=1.
Keep admission, statistic reduction and the numerical right-tail routine as separate stages. The loop describes current code; the forward distribution’s last bits and other recorded residuals remain unresolved.
Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.
CHISQ.TEST · 3 lines · calc-func/src/catalogue/distributions.rs on GitHub100 chisq_test "CHISQ.TEST" (2, 2) [R "actual_range", R "expected_range"] |s, a, sv| {
chisq_test_of(s, a, sv)
}
chisq_test_of catalogue/distributionstruncate_positive_integer ported/chi_f_t_familyvalidate_nonnegative_x ported/chi_f_t_familychisq_dist_rt_kernel ported/chi_f_t_familybinary_with ported/excel_numericexcel_expm1_internal ported/excel_numericexpm1_internal_graph ported/excel_numericexcel_x87_add ported/excel_numericexcel_x87_sub ported/excel_numericexcel_x87_mul ported/excel_numericexcel_x87_temme_finish ported/excel_numericexcel_x87_div ported/excel_numericmul ported/excel_numeric/x87add ported/excel_numeric/x87sub ported/excel_numeric/x87div ported/excel_numeric/x87pow2_positive ported/excel_numeric/x87_chainspow2 ported/excel_numeric/x87_chainsexp_ext ported/excel_numeric/x87_chainsexp_with ported/excel_numeric/x87_chainsexcel_exp ported/excel_numeric/x87_chainslog_with ported/excel_numeric/x87_chainsexcel_log ported/excel_numeric/x87_chainsstored_horner ported/normal_dist_commonerf_approx ported/normal_dist_commonerfc_upper ported/normal_dist_commonerfc_of_sqrt_half_x ported/special_dist_familyerfc_kernel ported/special_dist_familyerfc_precise_kernel ported/special_dist_familygratio_norm_gamma ported/special_math_commongratio_rexp ported/special_math_commongratio_rlog ported/special_math_commongratio_gam1 ported/special_math_commongratio ported/special_math_commonseries_prefactor ported/special_math_commongratio_after40 ported/special_math_commongratio_cf ported/special_math_commongratio_temme_270 ported/special_math_commongratio_temme_340 ported/special_math_commongratio_temme_330 ported/special_math_commongratio_temme_finish ported/special_math_commonregularized_gamma_q ported/special_math_commonNo implementation has been published with a Handbook test suite for this function.
The recorded environments below distinguish a reading from a same-input comparison. Counts describe captured inputs in each environment; overlapping captures and comparisons are not totals of unique worksheet calls.
| Excel 16.0 build | Platform and CPU | Captured inputs |
|---|---|---|
| 20131 | Windows, bitness not recorded, AMD Ryzen 7 4800H with Radeon Graphics | 5 |
The record contains no same-input comparison between these environments. Reading different inputs on different builds does not establish either a version change or cross-build agreement.
Recorded environments and comparison details.
Windows, bitness not recorded, AMD Ryzen 7 4800H with Radeon Graphics
5 captured inputs are indexed for this environment. Capture dates: 2026-07-12 to 2026-07-12. This is a reading count, not a comparison with another build.
CHISQ.DIST.RT evaluates a supplied statistic; CHISQ.INV.RT finds a critical value. F.TEST compares sample variances.
No named variants are recorded yet.
Suggest a correction or contribute an implementation · For agents