Formualizer Docs

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

ArgumentTypeRequiredDefault
xnumberRequired—
deg_freedomnumberRequired—
cumulativenumberRequired—

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 cumulative to non-zero for CDF mode, or 0 for PDF mode.
  • Requires x >= 0 and deg_freedom >= 1.
  • Invalid numeric coercions propagate as spreadsheet errors.

Error cases

  • Returns #NUM! for negative x or 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?.

Implementation

Engine source

On this page