[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

chi-square table

Li Chen

7/1/2007 2:31:00 PM

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

--
Posted via http://www.ruby-....

5 Answers

G.Durga Prasad

7/1/2007 2:53:00 PM

0

On 7/1/07, Li Chen <chen_li3@yahoo.com> wrote:
> 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
>
> --
> Posted via http://www.ruby-....
>
>
The following may be useful to you:
http://en.wikipedia.org/wiki/Chi-square_di...

Prasad

Xeno Campanoli

7/1/2007 3:15:00 PM

0

G.Durga Prasad wrote:
> On 7/1/07, Li Chen <chen_li3@yahoo.com> wrote:
>> Hi all,
>>

http://en.wikipedia.org/wiki/Chi-square_di...

>> 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
>>
>> --
>> Posted via http://www.ruby-....
>>
>>
> The following may be useful to you:
> http://en.wikipedia.org/wiki/Chi-square_di...
>
> Prasad
>
>


--
The only sustainable organizing methods focus not on scale,
but on good design of the functional unit,
not on winning battles, but on preservation.

Axel Etzold

7/1/2007 3:46:00 PM

0

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/mult...

Li Chen

7/1/2007 4:41:00 PM

0

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

--
Posted via http://www.ruby-....

Axel Etzold

7/1/2007 7:12:00 PM

0

Dear Li,

glad to be of help.

> Currently I am more interested in
> finding the critical value correponding to my chi-square value.

Maybe a worked-through example like this one:

http://stattrek.com/AP-Statistics-4/Goodness-Of-Fit.aspx?T...

can clarify things further.

Best regards,

Axel
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/g...