# 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-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiInv.htm)