# ChiDist Script and chart function

`ChiDist()` returns the one-tailed probability of the chi^2^ distribution. The chi^2^ distribution is associated with a chi^2^ test.

Syntax:

CHIDIST(value, degrees\_freedom)

Return data type: number

Arguments:

Arguments

| Argument | Description |
| --- | --- |
| value | The value at which<br>you want to evaluate the distribution. The value<br>must not be negative. |
| degrees\_freedom | A positive integer stating the number of degrees of freedom. |

This function is related to the ChiInv function in the following way:   
`If prob = CHIDIST(value,df), 
 then CHIINV(prob, df) = value`

Limitations:

All arguments must be numeric, else NULL will be returned.

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiDist.htm)

#### Examples and results:

| Example | Result |
| --- | --- |
| CHIDIST(<br>8, 15) | Returns<br>0.9238 |

## Learn more

* [ChiInv Script and chart function](https://help.qlik.com/en-US/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiInv.htm)