chi-square table

L

Li Chen

Hi all,

I need to build a chi-square table with 100 degree of freedom at
0.05,0.01, 0.001 level using Ruby. Does anyone out there know what the
formula is for this table ?

Thanks,

Li
 
A

Axel Etzold

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
 
L

Li Chen

Hi Axel,

Thank you very much for the link. Currently I am more interested in
finding the critical value correponding to my chi-square value. But I
will try to figure out how to do it latter.

Li
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top