Evaluates the chi-squared cumulative probability distribution function.
double
specifying the argument at which the 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 values less than or equal to chsq.
Method Chi
evaluates the distribution function, F, of a chi-squared random variable with df
degrees of freedom, that is, with , and ,
where is the gamma function. The value of the distribution function at the point x is the probability that the random variable takes a value less than or equal to x.
For , Chi
uses the Wilson-Hilferty approximation (Abramowitz and Stegun 1964, equation 26.4.17) to the normal distribution, and method Normal
is used to evaluate the normal distribution function.
For , Chi
uses series expansions to evaluate the distribution function. If , Chi
uses the series 6.5.29 in Abramowitz and Stegun (1964), otherwise, it uses the asymptotic expansion 6.5.32 in Abramowitz and Stegun.
For greater right tail accuracy, Cdf.ComplementaryChi.
Cdf Class | Imsl.Stat Namespace | Example