CHISQ.DIST
Returns the chi-square probability for x with the specified degrees of freedom.
Use CHISQ.DIST in cumulative mode for left-tail probability or density mode for the PDF.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=CHISQ.DIST(x, deg_freedom, cumulative)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
x | number | Required | — |
deg_freedom | number | Required | — |
cumulative | number | Required | — |
How it works
The chi-squared distribution with ν degrees of freedom is a gamma distribution with shape ν/2 and scale 2. Use a nonnegative statistic and positive degrees of freedom. The cumulative flag selects probability from zero through x or the density at x.
Remarks
- Set
cumulativeto non-zero for CDF mode, or0for PDF mode. - Requires
x >= 0anddeg_freedom >= 1. - Invalid numeric coercions propagate as spreadsheet errors.
Error cases
- Returns
#NUM!for negativexor invalid degrees of freedom.
Examples
Evaluate cumulative probability up to a chi-square statistic of four.
Formula =CHISQ.DIST(4,3,TRUE)
Expected result 0.738535870050889
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate density at the same statistic.
Formula =CHISQ.DIST(4,3,FALSE)
Expected result 0.107981933026376
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate at the lower boundary of the distribution.
Formula =CHISQ.DIST(0,3,TRUE)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A negative statistic is outside the chi-square domain.
Formula =CHISQ.DIST(-1,3,TRUE)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Chi-square CDF at zero
Formula =CHISQ.DIST(0,4,TRUE)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Chi-square PDF example
Formula =CHISQ.DIST(2,2,FALSE)
Expected result 0.183939720585721
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.