WorksheetFunction.ChiSq_Dist (Excel)

Returns the chi-squared distribution.

If any argument is nonnumeric, ChiSq_Dist returns the #VALUE! error value. If x is negative, ChiSq_Dist returns the #NUM! error value. If deg_freedom is not an integer, it is truncated.

ChiSq_Dist (Arg1, Arg2, Arg3)


Dim dblArg1 As Double: dblArg1 = 
Dim dblArg2 As Double: dblArg2 = 
Dim dblChiSq_Dist As Double
dblChiSq_Dist = WorksheetFunction.ChiSq_Dist(Arg1:=dblArg1, Arg2:=dblArg2, Arg3:=True)

Arguments

Arg1, Arg2, Arg3

Arg1 (Double) - X - The value at which you want to evaluate the distribution.

Arg2 (Double) - Deg_freedom - The number of degrees of freedom.

Arg3 (Boolean) - Cumulative - A logical value that determines the form of the function. If cumulative is True, ChiSq_Dist returns the cumulative distribution function; if False, it returns the probability density function.