# ChiDist - 脚本和图表函数

`ChiDist()`返回 chi^2^ 分布的单尾概率。chi^2^ 分布与 chi^2^ 检测相关联。

语法：

CHIDIST(value, degrees\_freedom)

返回数据类型： 数字

参数：

参数

| 参数 | 说明 |
| --- | --- |
| value | 您想要用于评估分布的值。值必须不能为负数。 |
| degrees\_freedom | 表示自由度数的正整数。 |

此函数通过以下方式与 ChiInv 函数关联：   
`If prob = CHIDIST(value,df), 
 then CHIINV(prob, df) = value`

限制：

所有参数均必须为数字，如不是则会返回 NULL 值。

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

#### 示例和结果：

| 示例 | 结果 |
| --- | --- |
| CHIDIST(<br>8, 15) | 返回 0.9238 |

## 了解详情

* [ChiInv - 脚本和图表函数](https://help.qlik.com/zh-CN/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiInv.htm)