WorksheetFunction.ChiInv Method

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function ChiInv ( _
    Arg1 As Double, _
    Arg2 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim returnValue As Double

returnValue = instance.ChiInv(Arg1, Arg2)
double ChiInv(
    double Arg1,
    double Arg2
)

Parameters

  • Arg1
    Type: System.Double

    A probability associated with the chi-squared distribution.

Return Value

Type: System.Double

Remarks

Important

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new functions, see the ChiSq_Inv_RT(Double, Double) and ChiSq_Inv(Double, Double) methods.

If probability = ChiDist(x,...), then ChiInv(probability,...) = x. Use this function to compare observed results with expected ones in order to decide whether your original hypothesis is valid.

If either argument is nonnumeric, ChiInv generates an error.

If probability < 0 or probability > 1, ChiInv generates an error.

If degrees_freedom is not an integer, it is truncated.

If degrees_freedom < 1 or degrees_freedom ≥ 10^10, ChiInv generates an error.

Given a value for probability, ChiInv seeks that value x such that ChiDist(x, degrees_freedom) = probability. Thus, precision of ChiInv depends on precision of ChiDist(Double, Double). ChiInv uses an iterative search technique. If the search has not converged after 64 iterations, the function generates an error.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace