# ChiDist - script and chart function

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

Syntax:

ChiDist(value, degrees\_freedom)

Return data type: number

Arguments:

CHIDIST 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.

Examples and results:

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/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StatisticalDistributionFunctions/ChiInv.htm)