Re: P-value from chi-square value: source code



On 9 Apr 2005 12:28:26 -0700, "Reef Fish"
<Large_Nassau_Grouper@xxxxxxxxx> wrote:

>
> DZ wrote:
> > P.S. The p-value is 1-chi_cdf(ChiSquare, df)
>
> If so, why do you need any ChiSquare software, let along coding it?
> Why wouldn't any standard normal software suffice?

Are you mis-reading that the way that I did at first?
- The routine has d.f. as a parameter, so it is returning
the cdf for any chisquared.

I notice, further -- If the definition of "df" as
double precision was not a red-herring, then the d.f.
does not have to be integer, which is a limitation you
should expect, and test before you trust otherwise.

[... ]

--
Rich Ulrich, wpilib@xxxxxxxx
http://www.pitt.edu/~wpilib/index.html
.



Relevant Pages


Quantcast