跳到主要内容

CHISQ_INV_RT

返回卡方分布右尾概率的逆函数。

语法

expression.CHISQ_INV_RT(arg1, arg2);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number与卡方分布相关的概率,一个介于 0 和 1 之间(含 0 和 1)的值。
arg2必需ApiRange | ApiName | number自由度数,一个介于 1 和 10^10 之间的数字,不包括 10^10。

返回值

number

示例

在电子表格中将上尾概率转换为匹配的卡方临界值。

// Determine the boundary value for statistical significance at a given right-tail probability in a spreadsheet.

// Find the threshold point used to evaluate extreme results in hypothesis testing in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.CHISQ_INV_RT(0.4, 10);
worksheet.GetRange("B2").SetValue(ans);