Evaluates the inverse of the chi-squared cumulative probability distribution function.
double
specifying the probability for which the inverse chi-squared function is to be evaluated. double
specifying the number of degrees of freedom. This must be at least 0.5. A double
specifying the probability that a chi-squared random variable takes a value less than or equal to this value is p.
Method InverseChi
evaluates the inverse distribution function of a chi-squared random variable with df
degrees of freedom, that is, with P = p and v = df, it determines x (equal to InverseChi(p, df)
), such that
where is the gamma function. The probability that the random variable takes a value less than or equal to x is P.
For , InverseChi
uses bisection, if or , or regula falsi to find the point at which the chi-squared distribution function is equal to P. The distribution function is evaluated using Chi
.
For , a modified Wilson-Hilferty approximation (Abramowitz and Stegun 1964, equation 26.4.18) to the normal distribution is used, and InverseNormal
is used to evaluate the inverse of the normal distribution function. For , the ordinary Wilson-Hilferty approximation (Abramowitz and Stegun 1964, equation 26.4.17) is used.
Cdf Class | Imsl.Stat Namespace | Example