Contact

CHISQ.TEST in Collabora Office: Compare Observed and Expected Counts

Statistical Intermediate Collabora Office Calc

CHITEST syntax, worked checks and Collabora-specific limits. Use Collabora CHISQ.TEST on count arrays, reproduce the six-category p-value, audit chi-square contributions, and interpret the result without treating it as proof.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: For the vendor’s six observed counts 195,151,148,189,183,154 against expected counts 170 in each category, =CHISQ.TEST(A2:A7;B2:B7) returns a documented probability approximately 0.0209708029.

Syntax and the two arrays

=CHISQ.TEST(DataB; DataE)

DataB is the observed-count array and DataE is the corresponding expected-count range. Both are required. Keep the same category or table-cell ordering in the two arrays; swapping categories in only one changes the comparison.

The output is a probability associated with the chi-square comparison, not the chi-square statistic itself. In the independently checked source example it is the right-tail probability for the calculated statistic.

Use counts and a clearly specified expected model. An arbitrary list of percentages is not automatically an equivalent test, because sample size affects the statistic.

Example: reproduce the official six-category control

Enter A2:B7:

Row Observed Expected
2 195 170
3 151 170
4 148 170
5 189 170
6 183 170
7 154 170

The two totals are both 1020. In D2 enter =CHISQ.TEST(A2:A7;B2:B7). The documented result is approximately 0.0209708029, or 2.09708029%.

A small p-value is not the probability that the expected model is true or false. It summarizes how unusual the discrepancy is under the specified statistical comparison and its assumptions.

Independently reconstruct the statistic

In C2 enter =(A2-B2)^2/B2 and fill down through C7. The squared differences are 625,361,484,361,169,256, each divided by 170. Their sum is 2256/170, approximately 13.2705882353.

For this six-category fixed-expectation example, an independent chi-square survival calculation with 5 degrees of freedom gives approximately 0.0209708029, matching the vendor control. The statistic 13.2706 and probability 0.02097 are different outputs and should have different labels.

SUM can total the contributions. Do not use a left-tail cumulative probability as though it were the test’s right-tail result: its complement answers a different probability question.

Advanced example: construct expected counts for a 2×2 table

Use observed rows 30,20 and 10,40. Row totals are 50,50, column totals are 40,60, and the grand total is 100.

Under an independence model, each expected count is row total×column total/grand total. The expected rows are therefore 20,30 and 20,30. The independent statistic is approximately 16.666666667 and the chi-square right-tail probability with one degree of freedom is approximately 0.0000445571.

These are independently calculated mathematical expectations for the supplied 2×2 model, not a captured Collabora result. Put observed and expected tables in matching 2×2 ranges before passing them to CHISQ.TEST. Do not compare row totals alone when the question concerns association between the row and column classifications.

Advanced interpretation: sample size matters

If every count in the six-category example is doubled, each contribution (O−E)^2/E doubles, so the statistic becomes approximately 26.541176471. The category proportions are unchanged, but the evidence supplied by the larger count total is different.

This is why converting all counts to percentages and testing those percentages can give a misleading result. Preserve the sample counts and explain how expected counts were obtained.

Errors, assumptions, and compatibility

Expected counts in these calculations are positive; zero expected values make the displayed contribution formula divide by zero. Check matching dimensions, numeric counts, totals, and the validity of the expected model before interpreting the result. Small expected counts or dependent observations can undermine the approximation; the function’s successful calculation does not validate the study design.

The dedicated help does not comprehensively list native error codes, missing-data coercion, or every degrees-of-freedom adjustment for estimated model parameters. The controls here use fixed expectations or a transparent independence table.

The vendor identifies namespace COM.MICROSOFT.CHISQ.TEST, outside OpenDocument 1.3 OpenFormula. It does not establish full cross-product compatibility or identical behavior for every input.

Availability and verification

The exact function is documented in Collabora Office 26.04 desktop help, retrieved and reviewed on October 17, 2026. This establishes a documentation scope, not the first release that introduced the function or the last version in which it works; those versions and any retirement date remain unestablished. Collabora Online and mobile support are not inferred from desktop help, nor is behavior in another spreadsheet product.

The examples are documentation-based expectations with independent calculations. They have not been executed in Collabora Office. No application screenshot or native error/coercion certification is implied. Formulas use English function names and semicolon argument separators.

References

CHITEST: documented Collabora spelling and complete contract

Collabora’s dedicated Help documents CHITEST. In the Collabora Office 26.04 source snapshot, this spelling and CHISQ.TEST use the same evaluator and identical argument metadata. The coverage here is for that verified family, not a general promise about other spreadsheet products.

CHITEST syntax and arguments

=CHITEST(DataB; DataE)

DataB contains observed frequencies and DataE contains matching expected frequencies. Both are required, with matching row and column dimensions. The return value is a right-tail p-value, not the chi-square statistic or a probability that a hypothesis is true. Expected frequencies must be supplied; the function does not construct them from table margins.

Independent CHITEST worked checks

Enter observations 8, 10, 12 in A2:A4 and expectations 10, 10, 10 in B2:B4. =CHITEST(A2:A4;B2:B4) independently targets 0.6703200460356393. The statistic is (8-10)^2/10+(10-10)^2/10+(12-10)^2/10=0.8; three categories give df=2, whose right tail is EXP(-0.8/2). Changing observations to 6, 10, 14 gives statistic 3.2 and target 0.20189651799465538. Totals remain equal in both examples.

The stated results are independently calculated mathematical expectations, not values observed in Collabora. Use semicolons as shown for the documented syntax; a configured locale may require different separators.

CHITEST boundaries and error conditions

The pinned evaluator rejects mismatched dimensions and nonnumeric nonempty paired entries. A pair with an empty cell is skipped; all-empty usable pairs are rejected. A numeric expected zero reports DivisionByZero. For a row or column, df is the total number of cells minus one; for a two-dimensional table it is (rows-1)*(columns-1). A single-cell input has no valid degrees of freedom and follows the NoValue path. Skipped empties do not reduce the dimension-derived df, so use complete numeric ranges. Negative expectations are not explicitly rejected here, but are invalid for the statistical model and must not be used. Error names in this section identify implementation branches, not verified on-screen labels.

Choosing the correct family and preserving workbook meaning

CHITEST and CHISQ.TEST share ScChiTest. CHIDIST instead receives an already calculated statistic and degrees of freedom. For a goodness-of-fit model with fitted parameters, the automatic dimensions-based df may not be the adjusted df required by the study; compute the statistic and correct tail separately.

Evidence and version limits for CHITEST

Reviewed 2026-10-19 using Collabora’s dedicated CHITEST Help archived on 2026-10-17, the pinned evaluator, and paired dispatch. The source is Collabora’s co-26.04 branch pinned to c1013fad0d38683630b48c01b6d5208b8d81181e. Fresh Help access on 2026-10-19 was unsuccessful, so the archived page is not described as newly retrieved. No Collabora desktop, Online or mobile execution was performed. First introduction, last functioning build, deployment-specific support, array-entry behavior and cross-format round trips are not established by this check.