comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: chi-squared of poly_fit and polyfitw results
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: chi-squared of poly_fit and polyfitw results [message #34924] Fri, 02 May 2003 20:00 Go to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Chris Boshuizen" <chrisb@newsgroup.usyd.edu.au> writes:


> Hi group,
>
> I was wondering how I relate the sigma values from these routines to a
> chi-squared value. Is it a simple statistical relation? I tried a google
> search and didn't find out how, so I hope someone can offer a suggestion.

As Sergey says, there is not a direct formulaic relation between the
the "sigma" values and the chi-squared value. Generally speaking, the
chi-squared statistic measures goodness of fit. The sigma values
establish confidence regions for each parameter.

It is worth checking the discussions of statistics and fitting in
either Numerical Recipes or Bevington to understand this better. When
estimating useful confidence regions, it is common to vary parameter
values until the chi-squared value changes by a set threshold. So
there is indeed a connection between the those two sets of quantities,
but it is usually not a formula you can write down explicitly.

Happy fitting,
Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: chi-squared of poly_fit and polyfitw results [message #34933 is a reply to message #34924] Fri, 02 May 2003 04:41 Go to previous messageGo to next message
Sergey Koposov is currently offline  Sergey Koposov
Messages: 7
Registered: April 2003
Junior Member
Hello Chris,
In principle, chi-square is not directly related with sigma.

The function poly_fit have the keyword
CHISQ=variable, which allow to put the chi-square value of fit into the
variable.

You want the chi-squared value of parameters , or of fit?

Cheers,
Sergey


Chris Boshuizen wrote:
> Hi group,
>
> I was wondering how I relate the sigma values from these routines to a
> chi-squared value. Is it a simple statistical relation? I tried a google
> search and didn't find out how, so I hope someone can offer a suggestion.
> Thanks.
>
> Best regards,
> Chris Boshuizen
>
> To reply via email, replace 'newsgroup' with 'student'.
>
>
Re: chi-squared of poly_fit and polyfitw results [message #35016 is a reply to message #34924] Sun, 04 May 2003 18:26 Go to previous message
Chris Boshuizen is currently offline  Chris Boshuizen
Messages: 2
Registered: May 2003
Junior Member
Thank you Craig and Sergey, that all makes sense.

Thanks again,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Threshold value from histogram plot
Next Topic: Fortran unformatted data: Big or little endian

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:51:16 PDT 2025

Total time taken to generate the page: 0.01097 seconds