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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline - Norm -  
#1 Posted : 11 January 2019 23:41:50(UTC)
- Norm -


Rank: Advanced Member

Groups: Registered
Joined: 29/11/2017(UTC)
Posts: 82
United States
Location: Midwest

Was thanked: 9 time(s) in 7 post(s)
Prob Fitting.pdf (2,819kb) downloaded 42 time(s). Probability Fitting.sm (87kb) downloaded 21 time(s).

I've come across a mathcad2000i worksheet that I converted to prime4, the attached pdf shows the results. I've attempted to reproduce the Histogram(X) routine in SMath but can't seem to get past the "Argument must be a vector..." error. I welcome the collabs review and recommendations if this routine will work.

Thank you,

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

Offline Razonar  
#2 Posted : 12 January 2019 09:12:54(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. Do you have the original Mathcad2000 worksheet?
Instead of parse a variable parameter number f(x,p1,p2,p3,...) you can use just f(x,p) but with p as a vector columns. With that you don't need replicate, Vec2Vec&Size and the other similar utilities.

Best regards.
Alvaro.

Edited by user 12 January 2019 09:37:09(UTC)  | Reason: Not specified

Offline Davide Carpi  
#3 Posted : 12 January 2019 13:47:15(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
routine for X-Y plot

hist.sm (15kb) downloaded 52 time(s).

2019-01-12 12_48_16-Window.png

Edited by user 12 January 2019 14:57:18(UTC)  | Reason: fixes

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 12/01/2019(UTC)
Offline Jean Giraud  
#4 Posted : 12 January 2019 17:30:09(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: nasch Go to Quoted Post
I've come across a mathcad2000i worksheet that I converted to prime4, the attached pdf shows the results. I've attempted to reproduce the Histogram(X) routine in SMath but can't seem to get past the "Argument must be a vector..." error. I welcome the collabs review and recommendations if this routine will work.

I think, don't understand what you are trying to do ... few points:
1. NaN what introduce by Mathsoft during design of DAEP [2003]
2. NaN is not ∞ ... rather it is based on floating point error,
a pure decoration in Smath except if related to Maple.
3. Tom G. didn't have DAEP [300 $ in 2003]. Tom did lot of work based on NaN.
From recollection, he used ^307. I tried simulate NaN in Smath not to avail.4
4. In Mathcad, there are 17 styles random, all built-in from the universal
random uniform found in most systems.
5. 'rlogis' is useful in Monte-Carlo stuff, included in the attached.
6. Also attached: how to simulate normal random from the CLT
Central Limit Theorem.
7. If you are given a data set that looks bell shape, trying to fit that is
like lottery ... Why ?
8. Data are just data, they don't collect bell shape by themselves.
Some smart have binned them. Depending upon the binning you will get
all sorts of misleading PDF.
9. Added the PW weighted histogram c/w the original application that lasted
weeks that the originator had none of "thanks or equivalent" in his vocabulary.

Cheers ... Jean

Stat Monte Carlo [rlogis].sm (75kb) downloaded 23 time(s).
Stat Random normal USER.sm (124kb) downloaded 21 time(s).
Stat Histogram PW.sm (111kb) downloaded 20 time(s).

Offline Jean Giraud  
#5 Posted : 12 January 2019 17:45:31(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: nasch Go to Quoted Post
I welcome the collabs review

... Oh ! forgot to return your original

Probability Fitting[1].sm (91kb) downloaded 20 time(s).
Offline - Norm -  
#6 Posted : 12 January 2019 20:20:25(UTC)
- Norm -


Rank: Advanced Member

Groups: Registered
Joined: 29/11/2017(UTC)
Posts: 82
United States
Location: Midwest

Was thanked: 9 time(s) in 7 post(s)
Prob Fitting.xmcd (183kb) downloaded 12 time(s).

Thank you, David & Jean for your help and direction.

Alvaro, for your reference, attached is the worksheet, I believe by Tom Gutman.

Again, many thanks!
Offline Jean Giraud  
#7 Posted : 12 January 2019 20:30:37(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: nasch Go to Quoted Post
I believe by Tom Gutman

Yes, Tom Gutman
This demo to illustrate the CLT

Stat Histogram DEMO.sm (24kb) downloaded 20 time(s).

Offline mkraska  
#8 Posted : 13 January 2019 03:33:48(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1120 time(s) in 718 post(s)
See Maxima docs for available functions and options

2019-01-13 01_24_47-SMath Studio 0.99.6884 - [Streuung.sm].png
Streuung.sm (46kb) downloaded 18 time(s).
streug.rar (1kb) downloaded 14 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 13/01/2019(UTC)
Offline Jean Giraud  
#9 Posted : 14 January 2019 02:48:58(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
This demo to illustrate the CLT

From native Smath, you can have:
1. colors at will [rich from X_Y plot], even white to imitate no bar.
2. Slightly separated, joined, slightly overlapped.
3. solid or hatched at will.

HistoBar.PNG

Stat Histogram BarColor.sm (27kb) downloaded 28 time(s).

Offline Jean Giraud  
#10 Posted : 14 January 2019 06:48:22(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... or like this.

HistoBarGray.PNG
Users browsing this topic
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.