WorksheetFunction.ChiSq_Inv_RT Method

Returns the inverse of the right-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 ChiSq_Inv_RT ( _
    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.ChiSq_Inv_RT(Arg1, _
    Arg2)
double ChiSq_Inv_RT(
    double Arg1,
    double Arg2
)

Parameters

  • Arg1
    Type: System.Double

    A probability associated with the chi-squared distribution.

Return Value

Type: System.Double

Remarks

If probability = ChiSq_Dist_RT(x,...), then ChiSq_Inv_RT(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, ChiSq_Inv_RT generates an error.

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

If degrees_freedom is not an integer, it is truncated.

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

Given a value for probability, ChiSq_Inv_RT seeks that value x such that ChiSq_Dist_RT(x, degrees_freedom) = probability. Thus, precision of ChiSq_Inv_RT depends on precision of ChiSq_Dist_RT(Double, Double). ChiSq_Inv_RT 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