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

Home » Public Forums » archive » MPFIT: 95% Confidence Interval ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: MPFIT: 95% Confidence Interval ? [message #90216 is a reply to message #90206] Wed, 11 February 2015 13:44 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Tuesday, February 10, 2015 at 7:20:42 PM UTC-5, Lim wrote:
> Hi everyone,
>
> I was wondering if someone knows how to plot the 95% CI using the MPFIT curve fitting (http://www.physics.wisc.edu/~craigm/idl/fitting.html).
>
> In the example I can fit my model but now I need to plot the 95% CI as well as the prediction intervals.

For advanced usage I recommend using MPFITFUN instead of MPFITEXPR. Both functions return the 1-sigma standard errors with the PERROR keyword, and the covariance matrix with the COVAR keyword.

The MPPROPERR function can produce propagated confidence limits on your model function. An example is included in the documentation.

Note that 68% confidence is +/- 1 sigma, and
95% confidence is +/- 2 sigma, so just multiply the 1-sigma errors by 2.

I should also say that in my field of research, it's not simply enough to compute the parameter errors via the covariance matrix. Usually one does a parameter grid search. Numerical Recipes discusses this type of work.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: image function question
Next Topic: Motley library on Sourceforge

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

Current Time: Wed Oct 08 17:53:26 PDT 2025

Total time taken to generate the page: 0.00429 seconds