CHIDIST
function CHIDIST(arg1: number = null, arg2: number = null): number
Description
Returns the right-tailed probability of the chi-squared distribution.
Parameters
- arg1
number
null The value at which the distribution will be evaluated, a nonnegative number.
- arg2
number
null The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var avg = oFunction.CHIDIST(12, 10);
oWorksheet.GetRange("B2").SetValue(avg);