CHIINV

CHIINV(arg1, arg2) → { number }

Returns the inverse of the right-tailed probability of the chi-squared distribution.

Parameters:

Name Type Description
arg1 number

A probability associated with the chi-squared distribution, a value between 0 and 1 inclusive.

arg2 number

The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var avg = oFunction.CHIDIST(0.4, 10);
oWorksheet.GetRange("B2").SetValue(avg);
builder.SaveFile("xlsx", "CHIDIST.xlsx");
builder.CloseFile();

Resulting document