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

Home » Public Forums » archive » LINFIT CHISQ and SIGMA values are correct??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
LINFIT CHISQ and SIGMA values are correct?? [message #91593] Tue, 04 August 2015 12:54 Go to previous message
Krishnakumar M.A is currently offline  Krishnakumar M.A
Messages: 19
Registered: March 2013
Junior Member
Hi,

I was trying to do a linfit in the following data (I'm using IDL 6.3).

---------------------------------------------------

x = [150.0, 235.0, 325.0, 410.0, 610.0]
y = [200.0, 35.0, 8.4, 3.0, 0.6]
err = [25.0, 5.0, 2.1, 0.8, 0.2]

result = linfit(alog10(x),alog10(y),MEASURE_ERRORS=alog10(err), CHISQ=chi, COVAR=covmatrix, SIGMA=error, YFIT=fit)

---------------------------------------------------

It gave me surprisingly odd values for CHISQ and SIGMA. The values are given below.

---------------------------------------------------

result
11.6899 -4.29070
chisq
0.00799291
sigma
4.32894 1.66352

---------------------------------------------------

Fit result looked good, but the values of sigma and chisq are way off. I believe that the chisq it gives is reduced chisq. Is there anything went wrong in the fitting procedure, or are there any issues with the linfit algorithm?

Please let me know whether I'm doing it right or not.

Thanks,
Krishnakumar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgscatter2d.pro 'keyword parameters not allowed to call' error
Next Topic: IDL crashing on call of TV

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

Current Time: Wed Oct 08 09:20:06 PDT 2025

Total time taken to generate the page: 0.00374 seconds