This function computes P ( χ2(n) > Q ), i.e. the probability that the χ2 random variable with the specified number of degrees of freedom n exceeds the given number Q. |
Adapted from Algorithm 299 in I. D. Hill and M. C. Pike, Collected Algorithms for the CACM, 1967 p. 243. Updated for rounding errors based on remark in ACM TOMS June 1985, page 185. |