WorksheetFunction.ChiInv(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the inverse of the one-tailed probability of the chi-squared distribution.
public:
double ChiInv(double Arg1, double Arg2);
public double ChiInv (double Arg1, double Arg2);
Public Function ChiInv (Arg1 As Double, Arg2 As Double) As Double
Parameters
- Arg1
- Double
A probability associated with the chi-squared distribution.
- Arg2
- Double
The number of degrees of freedom.
Returns
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.