|
From: smms <sm...@ho...> - 2013-12-06 20:00:15
|
I am having difficulty in guessing initial parameters values for logistic fit plotting to my data set. The parameters I used actually from somebody else. Going through gnuplot helpf fit did not help at all. So I would appreciate if someone could refer me to a good reference of how to make good guessing of initial parameters. Also if you happen to find a good values for a nice fit, can you please explain your basis of choosing different parameters? Included below are graph, data and codes. This initial values are getting very frustrating and hence many thanks for your any feedback in advance. <http://gnuplot.10905.n7.nabble.com/file/n17874/lgfit.png> x y sd 2.50 9.04 0.03 2.25 9.06 0.05 1.11 9.12 0.19 0.71 9.97 0.18 0.60 11.36 0.24 0.56 12.44 0.55 0.50 14.23 0.37 0.43 16.93 1.20 0.38 19.18 1.12 0.32 24.83 2.26 0.30 28.87 1.39 0.25 34.23 2.07 0.21 39.52 0.53 0.16 44.10 1.81 0.13 49.73 1.19 a = 1e-7 b = 10 k = 0.5 g(x) = a/(1+b*exp(-k*x)) fit g(x) 'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3) via a,b,k plot g(x),'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3):($3/800**3) w errorbars not -- View this message in context: http://gnuplot.10905.n7.nabble.com/Probelm-in-guessing-logistic-growth-parameters-for-fitting-tp17874.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-12-06 21:46:32
|
On 06.12.2013 21:00, smms wrote: > So I would appreciate > if someone could refer me to a good reference of how to make good guessing > of initial parameters. That's evidently impossible. If it there were such a thing as a reference manual on how to do it, it would not be called "guessing". Initial values have to come from your own understanding of the problem. There is no magic bullet. It says in "help fit" that "Non-linear least-squares fitting is an art!" You're now learning just how true that statement is. Anyway, your problem is not with the initial values, it's with the scaling of the parameters themselves. You've missed an important lesson from "help fit" there. > a = 1e-7 > b = 10 > k = 0.5 > g(x) = a/(1+b*exp(-k*x)) > fit g(x) 'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3) via a,b,k > plot g(x),'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3):($3/800**3) w > errorbars not Hmmm... so why rescale your y axis so heavily, if all that achieves is giving your "a" paramter a magnitude that's wildly different from the others? a = 50.0 fit g(x) 'ss_nici_raw_processed_201.txt' u (1/$1):2:3 via a,b,k would have been equivalent, quicker to type, and with the additional benefit of actually using your y errors for the fit. |
|
From: smms <sm...@ho...> - 2013-12-09 02:27:50
|
Thanks Hans for your reply. I had to scale Y for data quantification. Date: Fri, 6 Dec 2013 13:48:00 -0800 From: ml-...@n7... To: sm...@ho... Subject: Re: Probelm in guessing logistic growth parameters for fitting On 06.12.2013 21:00, smms wrote: > So I would appreciate > if someone could refer me to a good reference of how to make good guessing > of initial parameters. That's evidently impossible. If it there were such a thing as a reference manual on how to do it, it would not be called "guessing". Initial values have to come from your own understanding of the problem. There is no magic bullet. It says in "help fit" that "Non-linear least-squares fitting is an art!" You're now learning just how true that statement is. Anyway, your problem is not with the initial values, it's with the scaling of the parameters themselves. You've missed an important lesson from "help fit" there. > a = 1e-7 > b = 10 > k = 0.5 > g(x) = a/(1+b*exp(-k*x)) > fit g(x) 'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3) via a,b,k > plot g(x),'ss_nici_raw_processed_201.txt' u (1/$1):($2/800**3):($3/800**3) w > errorbars not Hmmm... so why rescale your y axis so heavily, if all that achieves is giving your "a" paramter a magnitude that's wildly different from the others? a = 50.0 fit g(x) 'ss_nici_raw_processed_201.txt' u (1/$1):2:3 via a,b,k would have been equivalent, quicker to type, and with the additional benefit of actually using your y errors for the fit. ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list [hidden email] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info If you reply to this email, your message will be added to the discussion below: http://gnuplot.10905.n7.nabble.com/Probelm-in-guessing-logistic-growth-parameters-for-fitting-tp17874p17876.html To unsubscribe from Probelm in guessing logistic growth parameters for fitting, click here. NAML -- View this message in context: http://gnuplot.10905.n7.nabble.com/Probelm-in-guessing-logistic-growth-parameters-for-fitting-tp17874p17880.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |