 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,532  Was thanked: 941 time(s) in 769 post(s)
|
linfitCheby is one so many fitting techniques. In this example doing extraordinary well where none else cut the mustard. Coefficients are transited/isolated via spool to file. It should create the C:\SmathFile by itself, if not => create it. Data set from unknown source/application. Jean Genfit linfitCheby.sm (72kb) downloaded 35 time(s).
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 318 time(s) in 268 post(s)
|
Hello Jean,
I appreciate very much many of your fitting/interpolation examples. However, if I recall well I think that all of your examples were based on a single independent and a single dependent variable with many unknown parameters. If I was wrong, please excuse me.
On the other hand, I find almost impossible to solve in SMath a nonlinear (based on parameters) fitting problem with a single dependent variable and many independent ones. There are no similar functions like Mathcad mineer(), genfit() or LeastSquaresFit() which will solve the general nonlinear fitting problem with many independent variables.
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,532  Was thanked: 941 time(s) in 769 post(s)
|
Originally Posted by: omorr  I appreciate very much many of your fitting/interpolation examples. However, if I recall well I think that all of your examples were based on a single independent and a single dependent variable with many unknown parameters. Hello Radovan, I read you well, tough we don't have the Mathcad basis Genfit, the core component of Minerr, the Smath Genfit fits unknown parameters. Easy or not easy to fit depends upon the reflexivity of the model function. Even so, Mathcad can't fit some model functions. The limit in Smath Genfit is at least 4 or more from recollection. Actually, there is an immense brew of fitting techniques, it might turn Vodka with age. Post your example(s) of raw data, will try. Cheers Radovan ... see you soon ... Jean.
|
 1 user thanked Jean Giraud for this useful post.
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 318 time(s) in 268 post(s)
|
Hello Jean, Here is an example posted few times somewhere here in this Forum 6-7 years ago. It is still a univariate fitting problem, but nonlinear in parameters.I think these examples motivated Davide Carpi to make the NonlinearSolvers plugin. You can find there lots of similar discussion (from my side) where I constantly nagged about numerical solvers for nonlinear equations and optimization. There is no plugin solution in SMath yet concerning these problems.  NLMinimization-9c.sm (43kb) downloaded 26 time(s).I simply do not know, for years now, how to solve in SMath the general nonlinear fitting problem y=f( X, b ), y - given vector of size n; X - given matrix of size n rows, m columns; b - unknown parameters of size m (m<n). Just pick whatever example you want with, say, n=10 and m=3 with an f( X,b ) function highly nonlinear in b parameters. For example, like this one (also remained unsolved for me in SMath for years) linfit_multiple-1.sm (23kb) downloaded 29 time(s). linfit_multiple-1-1.sm (23kb) downloaded 19 time(s).Regards, Radovan Edited by user 22 February 2019 12:28:49(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,532  Was thanked: 941 time(s) in 769 post(s)
|
Originally Posted by: omorr  I simply do not know, for years now, how to solve in SMath the general nonlinear fitting problem y=f( X, b ), y - given vector of size n; X - given matrix of size n rows, m columns; b - unknown parameters of size m (m Hello Radovan, let me examine your unsolved examples. In the mean time, these two examples non-linear are educative for new visitors. 1. solves by itself directly from Cholesky LS solver. 2. is hyper robust from the Smath Genfit module [3 iterates] F.B. Hildebrand wrote "fitting is an art". Many broke their nose inventing the art of fitting. The worst is that each case is specific and the fitting techniques is immense. All in all, Smath did and surely will do all Mathcad 11, Can't tell more about PTC/Mathcad "cluster fuck" None of Paul, Robert, Tom exploded the Mathsoft Proprietary Minerr. Maybe Viacheslav could do, he is a smart cat enough for that. Cheers ... Jean.  Genfit NonLinearFit [Revisit].sm (110kb) downloaded 24 time(s).
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,811  Was thanked: 999 time(s) in 639 post(s)
|
Originally Posted by: omorr  For example, like this one (also remained unsolved for me in SMath for years) linfit_multiple-1.sm (23kb) downloaded 29 time(s). I don't know whether this counts as a reasonable fit, but at least you get a solution. ![2019-02-22 18_58_15-SMath Studio 0.99.6988 - [linfit_multiple-1_Kr.sm].png](/forum/resource.ashx?a=30263&b=2) linfit_multiple-1_Kr.sm (163kb) downloaded 23 time(s).Edit: second example shows the same MSE, and nearly the same b2 and b3. ![2019-02-22 19_29_55-SMath Studio 0.99.6988 - [linfit_multiple-1-1.sm_].png](/forum/resource.ashx?a=30266&b=2) Edited by user 22 February 2019 21:33:21(UTC)
| Reason: Not specified |
|
 1 user thanked mkraska for this useful post.
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,532  Was thanked: 941 time(s) in 769 post(s)
|
Originally Posted by: Jean Giraud  Hello Radovan, let me examine your unsolved examples. ... part 1 NLMinimization-9c doctors by itself ... part 2 LM complains ,,, not doctored yet Thanks for this LM NLMinimization-9c Scrap.sm (44kb) downloaded 18 time(s).
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 318 time(s) in 268 post(s)
|
Thank you Martin. It was a direct answer to my question - Fit() function from Maxima. Thank you for reminding us of this once more. Fortunately, we have Maxima plugin for nonlinear fitting (it slipped my mind) and I am glad that I was wrong. I also would have liked to be wrong by saying that this is the only function in SMath performing this task (maple plugin maybe?). Regards, Radovan Edited by user 22 February 2019 22:55:24(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,156  Was thanked: 674 time(s) in 421 post(s)
|
Originally Posted by: omorr  I also would have liked to be wrong by saying that this is the only function in SMath performing this task (maple plugin maybe?).
Hi Radovan. In the attached, one of the two maple's fitting functions. Issues at the end. maple_fit.sm (21kb) downloaded 29 time(s).Best regards. Alvaro.
|
 1 user thanked Razonar for this useful post.
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 318 time(s) in 268 post(s)
|
Thank you Alvaro,
You pointed out some issues with the maple module and using subpackeges.
BTW, could you remind me where can I find the Help for Maple V rev 5. I know I've used it but I forgot where it was.
Regards, Radovan
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,156  Was thanked: 674 time(s) in 421 post(s)
|
Originally Posted by: omorr 
BTW, could you remind me where can I find the Help for Maple V rev 5. I know I've used it but I forgot where it was.
Hi Radovan. In the online help: statsBest regards. Alvaro. Edited by user 23 February 2019 12:03:31(UTC)
| Reason: Not specified
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,532  Was thanked: 941 time(s) in 769 post(s)
|
... you can as well apply Medfit to the Y data. It will have some smoothing effect on the bivariate, considering enough data points are in cause. Not 1/1 Mathcad, but very close. Maths SlopeIntercept [Medfit].sm (14kb) downloaded 25 time(s).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.