Histogram Program

Histogram Program - Messages

#1 Posted: 6 years ago
Norm Schutzkus

Norm Schutzkus

9 likes in 90 posts.

Group: User

File not found.File not found.

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,
#2 Posted: 6 years ago
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,004 likes in 1,677 posts.

Group: User

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.
#3 Posted: 6 years ago
Davide Carpi

Davide Carpi

1,418 likes in 2,874 posts.

Group: Moderator

routine for X-Y plot

hist.sm (14 KiB) downloaded 143 time(s).

2019-01-12 12_48_16-Window.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
frapuano 6 years ago
#4 Posted: 6 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

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 (74 KiB) downloaded 101 time(s).
Stat Random normal USER.sm (123 KiB) downloaded 102 time(s).
Stat Histogram PW.sm (110 KiB) downloaded 98 time(s).

#5 Posted: 6 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

I welcome the collabs review


... Oh ! forgot to return your original

Probability Fitting[1].sm (90 KiB) downloaded 95 time(s).
#6 Posted: 6 years ago
Norm Schutzkus

Norm Schutzkus

9 likes in 90 posts.

Group: User

Prob Fitting.xmcd (182 KiB) downloaded 84 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!
#7 Posted: 6 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

I believe by Tom Gutman


Yes, Tom Gutman
This demo to illustrate the CLT

Stat Histogram DEMO.sm (23 KiB) downloaded 95 time(s).

#8 Posted: 6 years ago
Martin Kraska

Martin Kraska

1,230 likes in 2,156 posts.

Group: Moderator

See Maxima docs for available functions and options

2019-01-13 01_24_47-SMath Studio 0.99.6884 - [Streuung.sm].png
Streuung.sm (45 KiB) downloaded 96 time(s).
streug.rar (291 B) downloaded 91 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
frapuano 6 years ago
#9 Posted: 6 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

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 (26 KiB) downloaded 103 time(s).

#10 Posted: 6 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

... or like this.

HistoBarGray.PNG
  • New Posts New Posts
  • No New Posts No New Posts