# ChiInv - script and chart function

ChiInv() returns the inverse of the one-tailed probability of the chi^2^ distribution.

Syntax:

ChiInv(prob, degrees\_freedom)

Return data type: number

Arguments:

CHIINV arguments

| Argument | Description |
| --- | --- |
| prob | A probability associated with the chi^2^ distribution. It must be a number<br>between 0 and 1. |
| degrees\_freedom | An integer stating the number of degrees of freedom. |

This function is related to the ChiDist 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 |
| --- | --- |
| ChiInv(0.9237827,<br>15 ) | Returns 8.0000 |

## Learn more

* [ChiDist - script and chart function](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StatisticalDistributionFunctions/ChiDist.htm)