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

Home » Public Forums » archive » Re: Getting the errors on the fitted parameters using mpfit2dpeak
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: Getting the errors on the fitted parameters using mpfit2dpeak [message #36178] Wed, 13 August 2003 13:36
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
dbarkats@princeton.edu (Denis Barkats) writes:

> Hi everyone,
>
> I have been trying to understand the returned errors on parameters
> using Craig's mpfit2dpeak function. Because things just did not make
> sense, I decided to make some simualtions:
>
...
> -Original distribution of FWHM_X, mean=0.08 and sigma=0.01
> -Mean and sigma of recovered distribution of FWHM_X, mean=0.079 and
> sigma=0.0097 which is fine,
> BUT!!!!!
> - Mean of recovered distribution of error of FWHM_X , mean=0.000103.
> In other words, the recoved error on FWHM_X is 100 times smaller than
> the inputted error. This is exactly why I decided to do some
> simulation in the 1st place. I was getting much too small recovered
> parameter errors.

Greetings Denis--

I examined your simulation. From what I can tell, you are not
assigning the proper uncertainty estimates to the image.

The resulting chi-square value is very low, about 0.0002 per degree of
freedom, when it should be closer to 1. This usually indicates that
you are overestimating the data uncertainties by a factor of about
1/sqrt(0.0002) = 100, and hence underestimating the parameter
uncertainties by the same amount. This is almost exactly the factor
you are talking about.

Your procedure computes a perfectly smooth gaussian function, but then
assigns a much bigger error bar than is warranted. To be realistic,
you should add gaussian noise of a similar magnitude to what you
expect.

Happy fitting,
Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Can one test if the GIF license installed?
Next Topic: SAR image formation code??

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

Current Time: Fri Oct 10 06:52:06 PDT 2025

Total time taken to generate the page: 0.64252 seconds