Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 14 October 2023 21:31:44(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
See please the end of the attached file.
6-1-Mister-Class.sm (34kb) downloaded 10 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 15 October 2023 03:38:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
See please the end of the attached file.

Triplet roots ... FindRoot not doctored.

6-1-Mister-Class (1).sm (67kb) downloaded 3 time(s).

Offline mkraska  
#3 Posted : 15 October 2023 03:42:14(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1124 time(s) in 721 post(s)
The first error can be handled by wrapping the function in eval(). For the second one this does not help.

I take the opportunity to advertise the Maxima Fit() function.

It is explained in https://doi.org/10.25933/opus4-2949 chapter 6 (English) and in https://doi.org/10.25933/opus4-2948, chapter 9 (German).

6-1-Mister-Class Kr.sm (57kb) downloaded 5 time(s).
2023-10-14 16_31_26-SMath Solver - [6-1-Mister-Class (2).sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 15/10/2023(UTC)
Offline OchkovVF  
#4 Posted : 15 October 2023 03:53:20(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
And the Lord God created the function eval and the lord said this is good!
And the Lord God created the Maxima and the lord said this is sehr kompliziert!

Edited by user 15 October 2023 04:00:33(UTC)  | Reason: Not specified

Offline mkraska  
#5 Posted : 15 October 2023 04:52:25(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1124 time(s) in 721 post(s)
Hm, where exactly do you see the most severe сложности in the use of the Maxima plugin? Perhaps everything that needs a handbook is too complicated nowadays Sad
I really like the curve fitting interface with the Fit() function, which might even be comprehensible from the подсказка in the dynamic help.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Razonar  
#6 Posted : 15 October 2023 06:19:13(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Polynomial fitting, returning the same values that Excel returns. From this post.

fit_CKO.sm (52kb) downloaded 5 time(s).

Best regards.
Alvaro.
Offline OchkovVF  
#7 Posted : 15 October 2023 20:35:01(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
Sorry!
But the question was Why not How
Why.png
Offline Razonar  
#8 Posted : 16 October 2023 01:51:16(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
Sorry!
But the question was Why not How


Hi Valery. Martin showed why. But for the quadratic case Máxima's Fit function does not return the same result as Excel, which could be said to have been taken as standard, since they are also the same as those usually obtained with the 'all powerful' (talking about of gods) a\b of Matlab. I made the post to show how those mythical values can also be obtained in SMath.

Because SMath' solver isn't very powerful you can get those same values with your method using another, like the following one

Clipboard01.png

About the error vectorizing, you can see why taking a look of this

Clipboard02.png

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 16/10/2023(UTC)
Offline OchkovVF  
#9 Posted : 16 October 2023 02:04:14(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
Originally Posted by: Razonar Go to Quoted Post
Originally Posted by: OchkovVF Go to Quoted Post
Sorry!
But the question was Why not How


Hi Valery. Martin showed why. But for the quadratic case Máxima's Fit function does not return the same result as Excel, which could be said to have been taken as standard, since they are also the same as those usually obtained with the 'all powerful' (talking about of gods) a\b of Matlab. I made the post to show how those mythical values can also be obtained in SMath.

Because SMath' solver isn't very powerful you can get those same values with your method using another, like the following one

Clipboard01.png

About the error vectorizing, you can see why taking a look of this

Clipboard02.png

Best regards.
Alvaro.

Send please sm-file!

Offline Razonar  
#10 Posted : 16 October 2023 02:48:34(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
Send please sm-file!


6-1-Mister-Class with polyfit.sm (40kb) downloaded 5 time(s).
6-1-Mister-Class with polyfit.pdf (227kb) downloaded 5 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 16/10/2023(UTC)
Offline mkraska  
#11 Posted : 16 October 2023 05:25:44(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1124 time(s) in 721 post(s)
There is not much sense in fitting functions with many degrees of freedom to data containing not much information. Any function which goes through the centroid of the data points will come up with a similar MSE.

Is the second result really the best just because of it's lowest MSE?

2023-10-15 18_24_01-SMath Solver - [6-1-Mister-Class Kr.sm].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#12 Posted : 16 October 2023 06:33:28(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Valery, as it looks all doctored.
Thanks Alvaro for the robust Broyden.
Curious, Solver 30405 Slope/Intercept back on foot.

6-1-Mister-Class (1).sm (66kb) downloaded 1 time(s).
Offline OchkovVF  
#13 Posted : 16 October 2023 07:06:59(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
And what about 3D fitting in SMath?

See please my old problem in Mathcad
http://twt.mpei.ac.ru/ochkov/car/c_e.html

Online calculation
http://twt.mpei.ac.ru/MCS/Worksheets/old-car.xmcd

Offline mkraska  
#14 Posted : 16 October 2023 11:57:28(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1124 time(s) in 721 post(s)
The second and third fit aren't really robust (quite some dependence on initial guesses)


Gebrauchtwagen.png
Gebrauchtwagen.txt (1kb) downloaded 7 time(s).
Gebrauchtwagen.sm (91kb) downloaded 7 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 16/10/2023(UTC)
Offline OchkovVF  
#15 Posted : 16 October 2023 18:13:21(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
Wunderbar!
Send me please the M matrix as sm-file!
Offline Razonar  
#16 Posted : 16 October 2023 18:48:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
And what about 3D fitting in SMath?

See please my old problem in Mathcad
http://twt.mpei.ac.ru/ochkov/car/c_e.html

Online calculation
http://twt.mpei.ac.ru/MCS/Worksheets/old-car.xmcd



Another way, from the same previous post .

fit cars.sm (84kb) downloaded 7 time(s).

Best regards.
Alvaro.


Offline OchkovVF  
#17 Posted : 16 October 2023 19:45:10(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
Thanks!

But the last plot must be so
MCS-Old-Car.png

Offline mkraska  
#18 Posted : 16 October 2023 21:32:33(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
Wunderbar!
Send me please the M matrix as sm-file!


The data is from your website. I copy-pasted the table to a new text file and imported it. Just use the files provided in my post.

As to the last plot: I guess the mileage limits of the individual lines are taken from the minimum and maximum slope observed in the age-mileage plot (fig.2 in your reference)?

Do you see any particular problem or do you just want the work getting done?
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline OchkovVF  
#19 Posted : 17 October 2023 00:38:46(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 339
Man
Russian Federation

Was thanked: 26 time(s) in 25 post(s)
do you just want the work getting done?
Yes ;-)
Offline Jean Giraud  
#20 Posted : 17 October 2023 06:58:58(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Global fit Cholesky
Frequently, you can manage the Phi vector for a best regional fit.

Project fit cars Cholesky.sm (20kb) downloaded 3 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 17/10/2023(UTC)
Users browsing this topic
Guest
2 Pages12>
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.