[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data fitting with fmins

From: Andreas Stahel
Subject: Re: Data fitting with fmins
Date: Wed, 20 Jul 2016 06:37:28 +0000 (UTC)
User-agent: Loom/3.14 (

Tweety <ftjp <at>> writes:

> Am 19.07.2016 um 18:35 schrieb Andreas Stahel:
> > Tweety <ftjp <at>> writes:
> >
> >> Dear group,
> Dear Andreas,
> thanks for the eplanation. I am still trying to figure out the tricks 
> you used. To be fair, I arbitrarily picked the dataset. I have others 
> which can be fitted much much better with a double exponential. The 
> devil is in the detail.
> But thanks, this is solved now.
> Best regards,
> Jan

Dear Jan
Thank you for the good news, but I doubt that your problem is solved.
Have a look at the graphical output and try to restart you computation with
your supposed solution. Other codes can not determine the variances of your
parameters p(). This is a strong indication of a problem.
Compare with the fit of one exponential only.

Nonlinear regression is often more difficult than just throwing some
standard code at it. You have to proceed step by step and do visual
verifications, if possible.

Hope this helps


P.S. please correct the typo in my code for the function f2 

%% now with two exponential, which will fail miserably
function res = f2(x,p)
   res = p(1) + p(2)*exp(p(3)*x) + p(4)*exp(p(5)*x);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]