Contact

CHIDIST Function (OpenOffice Calc)

Statistical Intermediate OpenOffice Calc

Evaluate right-tail chi-square probabilities with Apache OpenOffice CHIDIST, including negative cutoffs, integer degrees of freedom and test-statistic examples.

Verification status: Eight reference formulas and 1 boundary case were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816 after XLSX import; other explanatory calculations are independent references. How formula examples are checked

Quick answer: =CHIDIST(2;2) has independent reference value 0.367879441171.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this is not a final supported version.
  • Scope: Desktop Calc with English semicolon-separated formulas. Locale and other-product contracts may differ.
  • Checked: October 14, 2026. Eight reference formulas and 1 boundary case were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816 after XLSX import; other explanatory calculations are independent references.

What CHIDIST returns

CHIDIST returns the upper-tail probability P(Q≥X) for a chi-square variable Q. Larger positive cutoffs have smaller upper-tail probabilities. It is different from CHISQDIST’s lower-tail cumulative mode and from a chi-square probability density. Release implementation.

Syntax and arguments

=CHIDIST(X; DegreesOfFreedom)

Exactly two arguments are required. DegreesOfFreedom is rounded down and must then be at least 1. X is a real cutoff; this implementation returns 1 when X≤0. It does not reject a negative cutoff merely because chi-square variables are nonnegative. Use the intended integer degrees of freedom rather than relying on fractional-input coercion.

The numeric helper supplies the corresponding endpoint and evaluation branches.

Reproducible reference examples

Values below are rounded to twelve decimal places. These eight formulas were also recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816 after XLSX import. Saved results agree with the independent references to the checked precision. The X≤0 rows additionally follow the documented source extension of the right-tail CDF.

Formula Independent reference
=CHIDIST(0;2) 1
=CHIDIST(2;2) 0.367879441171
=CHIDIST(5;4) 0.287297495184
=CHIDIST(10;6) 0.124652019483
=CHIDIST(3.841458820694;1) 0.05
=CHIDIST(-1;2) 1
=CHIDIST(2;2.9) 0.367879441171
=CHIDIST(20;10) 0.029252688077

Practical worksheet

A test statistic of 10 with 6 degrees of freedom gives =CHIDIST(10;6), approximately 0.124652019483. Under the specified chi-square null model, this is the probability of a statistic at least as large as 10. It is not the probability that the null hypothesis is true.

For a worksheet, put the statistic in A2 and the independently determined degrees of freedom in B2, then enter =CHIDIST(A2;B2). Document how both were obtained. For a goodness-of-fit test, the degrees of freedom may need adjustment for estimated parameters; do not infer them from the number of nonempty cells alone.

Advanced interpretation and checks

At 2 degrees of freedom, the upper tail has the simple form exp(−X/2). Thus =CHIDIST(2;2) is approximately 0.367879441171, a convenient independent numerical check. The corresponding lower tail is approximately 0.632120558829.

For a central chi-square probability interval, remember that smaller upper-tail probabilities produce larger cutoffs. Use CHIINV for a cutoff from an upper-tail probability, then feed it back to CHIDIST with the same degrees of freedom. If working with a two-sided variance procedure, both relevant tails and the model assumptions must be specified separately; CHIDIST alone does not turn an arbitrary statistic into a valid test.

Boundaries and troubleshooting

The helper returns 1 for X≤0, while DegreesOfFreedom<1 after flooring is invalid. =CHIDIST(2;2.9) therefore uses 2 degrees of freedom. This precise source behavior matters when migrating a formula from a program that uses different negative-cutoff or fractional-degree rules.

A displayed result 0 in an extreme upper tail may reflect finite floating-point range rather than a mathematically impossible event. Prefer the direct right-tail function to subtracting a nearly 1 lower-tail result when calculating small upper-tail probabilities. Neither choice certifies extreme-tail precision beyond the checked examples.

Observed boundary checks

These additional cases were saved from the same 4.1.16 import session. Error displays are errors even where the ODS numeric attribute is zero.

Formula Native result or error
=CHIDIST(2;0) Err:502

Evidence and checking scope

The saved import workbook retained the stated formula identities. A deliberately stale SUM cache became 3 and an uncached SUM became 7, confirming recalculation. The observed scope is the named release and method only; explanatory composite formulas are independently calculated unless specifically listed among the native cases. Other releases, locales and extreme-value limits were not established by these ordinary examples.