# TDist 指令碼與圖表函數

`TDist()` 傳回學生 `t` 分佈的機率，其中的數值是要計算機率的 `t` 計算值。

語法：

TDist(value, degrees\_freedom, tails)

傳回的資料類型： 數字

引數：

引數

| 引數 | 描述 |
| --- | --- |
| value | 要評估分佈的值。該值不得為負值。 |
| degrees\_freedom | 表示自由度數字的正整數。 |
| tails | 必須是 1 (單尾分佈) 或 2 (雙尾分佈)。 |

此函數與 TInv 函數的關係如下：   
`If prob = TDIST(value, df ,2), 
 then TINV(prob, df) = value`

限制：

所有的引數必須都是數值，否則會傳回 NULL。

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

#### 範例與結果：

| 範例 | 結果 |
| --- | --- |
| TDIST(1, 30, 2) | 傳回 0.3253 |

## 瞭解更多資訊

* [TInv 指令碼與圖表函數](https://help.qlik.com/zh-TW/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/TInv.htm)