From: Axel Etzold Date: 2007-07-02T00:45:35+09:00 Subject: Re: chi-square table Dear Li, if you're interested in the values rather than in doing a programming exercise, you can use the statistics2 package by Shin-ichi Hara: blade.nagaokaut.ac.jp/~sinara/ruby/math/statistics2/statistics2-0.50/README From the README: --- Statistics2.chi2dist(n, x) Returns the integral of Chi-squared distribution with n degrees of freedom over (-Infty, x]. --- Statistics2.pchi2dist(n, pr) Returns the P-value of chi2dist(). --- Statistics2.chi2X_(n, x) Returns the integral of Chi-squared distribution with n degrees of freedom over [0, x]. --- Statistics2.chi2_x(n, x) Returns the integral of Chi-squared distribution with n degrees of freedom over [x, Infty). --- Statistics2.pchi2X_(n, pr) --- Statistics2.pchi2_x(n, pr) Return the P-value of the corresponding integral. Best regards, Axel -- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger