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

Notification

Icon
Error

Login


3 Pages<123>
Options
Go to last post Go to first unread
Offline Davide Carpi  
#21 Posted : 16 September 2015 00:36:56(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
I know... Blush
I've tried to do all the job without external plugins, in the end the penultimate version of the Meta Numerics library is the best solution Happy

Here I've uploaded the manual of that plugin, if there is some useful function to implement let me know and I'l try to add it ASAP...
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline omorr  
#22 Posted : 16 September 2015 09:45:00(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Thank you Davide for your efforts Good

I just wish you to implement all the tings for which you have good will and spare time Good

You know that I am always in favor of Numerical ans Statistical functions implementation in SMath.

To be honest, the things are moving forward much slower that I would like to regarding SMath. Anyway, we just have to accept that.

Best Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Davide Carpi  
#23 Posted : 18 October 2015 15:50:43(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
PLUGIN UPDATED SMath Studio 0.97.5737

  • added Bessel, BesselJ, BesselY from Meta.Numerics;


If they works correctly and you want I can add also ModifiedBessel and SphericalBessel; Good

Edited by user 18 October 2015 18:07:39(UTC)  | Reason: meta

Davide Carpi attached the following image(s):
2015-10-18 14_46_09-SMath Studio Desktop - [Page1_].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 18/10/2015(UTC),  on 19/10/2015(UTC)
Offline Jean Giraud  
#24 Posted : 20 October 2015 07:40:11(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)
Just hope that the inverse cumulative distributions would be applied as well. [Radovan]

_______________________________________

Not that many have "inverse cumulative" [quantile] ... easy to check: Maple solve.

Very intersting package, but they are all native in my Smath version [April 2015]

______________________________________

Quite a few PDF are missing from a very quick check [my Mathcad 11 repository].
I may confuse myself with some of the ones in the package plugin.

Moyal, Weibull_3, Laplace, Hypergeometric, Gamma-Gamma [requires Bessel K],
Gumbel, Fréchet, Dbeta, F[Anova], Gamma, Logistic, Dnbinom, DnormConvolution,
Student 't', Lorentz, Voigt, Kaiser, InvPoly, Assymetric_2sigma ...

As well as quantile, many PDF don't have analytical CDF from symbolic integration.

Cheers, Jean.


Offline Jean Giraud  
#25 Posted : 20 October 2015 09:21:44(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)
What a mess that forum [no accusation]
Last night I added Bessel from source, Nobody replied or acknowledged,,, don't care.
____________________________________

Now, I can see my reply to "Stat Fnct's", superb piece of work. Just something
I don't like, in Scientific/engineering maths, any piece of work must be explicit,
in this "Plugin", fine, necessary functions are included. But whre I bloody hate Smath
is again about the derivative operator ,,, zap: none work. That is above my understanding.

I noticed all sorts of gadgets in the wish list but the essential like the derivative
operator work or do more than derivative of sin(x), absent in the wish list.
Next hyperpriority is the 64 bit floating.

The other complain about this forum is that it has no search engine,
Example: if you search "polylog" ,,, zap, nothing
Google , "Smath, polylog" = zap less than nothing.

Be all good, Jean



Offline omorr  
#26 Posted : 20 October 2015 10:07:28(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Jean,
Originally Posted by: Jean Giraud Go to Quoted Post
What a mess that forum [no accusation]
Last night I added Bessel from source, Nobody replied or acknowledged,,, don't care.
____________________________________

I could see lots of downloads of your posted files. People are very interested indeed Good

Originally Posted by: Jean Giraud Go to Quoted Post

....But whre I bloody hate Smath
is again about the derivative operator ,,, zap: none work. That is above my understanding.

It was actually mentioned many times that derivative operator is not working quite well.
There are lots of complaints from users - which is Ok. For example search the user Martin Kraska and his posts. You will find very constructive suggestions for improving SMath.

Originally Posted by: Jean Giraud Go to Quoted Post

The other complain about this forum is that it has no search engine,
Example: if you search "polylog" ,,, zap, nothing
Google , "Smath, polylog" = zap less than nothing.

Search engine is not ideal, but it can be helpful


Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 20/10/2015(UTC)
Offline Davide Carpi  
#27 Posted : 20 October 2015 13:31:21(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Very intersting package, but they are all native in my Smath version [April 2015]

Shok this isn't possible... probably they're from some other plugin (Maple, Maxima, ...)

Quote:
Quite a few PDF are missing from a very quick check [my Mathcad 11 repository].
I may confuse myself with some of the ones in the package plugin.

Moyal, Weibull_3, Laplace, Hypergeometric, Gamma-Gamma [requires Bessel K],
Gumbel, Fréchet, Dbeta, F[Anova], Gamma, Logistic, Dnbinom, DnormConvolution,
Student 't', Lorentz, Voigt, Kaiser, InvPoly, Assymetric_2sigma ...

You're right, most of them are missing (as well as the random generators that are useful too). Where it is possible I'll add them.

Originally Posted by: Jean Giraud Go to Quoted Post
What a mess that forum [no accusation]

Some mechanisms are still mysterious also for me... Biggrin

Originally Posted by: Jean Giraud Go to Quoted Post
in this "Plugin", fine, necessary functions are included. But whre I bloody hate Smath
is again about the derivative operator ,,, zap: none work. That is above my understanding.

I noticed all sorts of gadgets in the wish list but the essential like the derivative
operator work or do more than derivative of sin(x), absent in the wish list.
Next hyperpriority is the 64 bit floating.

Andrey has worked and he is working to some keystones, I hope this will let him in a reasonable soon future to improve derivative & integrals.

Edited by user 20 October 2015 14:06:38(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Davide Carpi  
#28 Posted : 03 March 2016 21:06:49(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
PLUGIN UPDATED SMath Studio 0.97.5737 and later

- Ceil() and Floor() improved [now with support of units, imaginary numbers, nested matrices/systems];
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 03/03/2016(UTC),  on 03/03/2016(UTC)
Offline Davide Carpi  
#29 Posted : 23 January 2017 15:35:39(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
PLUGIN UPDATED SMath Studio 0.98.6179 and later

  • [SS-2422] fixed issues with undefined arguments;
  • Weibull.pdf - fixed "blue worksheet crash" with shape factor < 1

Edited by user 23 January 2017 15:41:16(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 3 users thanked Davide Carpi for this useful post.
on 23/01/2017(UTC),  on 23/01/2017(UTC),  on 23/01/2017(UTC)
Offline Chris Battles  
#30 Posted : 04 May 2018 18:59:58(UTC)
Chris Battles

Rank: Newbie

Groups: Registered
Joined: 04/05/2018(UTC)
Posts: 5
United States

Was thanked: 1 time(s) in 1 post(s)
Davide,

Thank you very much for this plug-in. I have a couple of comments.

The CDF for the binomial distribution returns 0 for 0 successes when it should return the same value as the PDF with 0 successes.

The formula that you are using to calculate the PDF uses factorials:
[f(x,n,p):{n!}/{(x!)*((n-x)!)}*p^x*(1-p)^{n-x}]
This limits the value of the number of trial to less than 170 or an overflow occurs (which SMath catches). A better way may be to use the multiplicative formula to calculate the binomial coefficent term of the PDF which won't overflow until 980 and only then when x = n/2. As x tends away from n/2, the number of trials entered can be significantly increased without overflow. In this case, you need to add the condition that if x = 0 then the binomial coefficient = 1 due to a div/0.

Since the CDF just sums over the PDF as x goes from 0 to x, the same issue exists there as well.

None of this is very robust, but it should make the binomial functions a bit more usable.

Thank you,
Christopher Battles
Offline Chris Battles  
#31 Posted : 04 May 2018 20:20:37(UTC)
Chris Battles

Rank: Newbie

Groups: Registered
Joined: 04/05/2018(UTC)
Posts: 5
United States

Was thanked: 1 time(s) in 1 post(s)
forgot the references...
Multiplicative method for binomial coefficients:
https://en.wikipedia.org...t#Multiplicative_formula


An all around better method would be detailed here (as is a full multiplicative method for calculating the PDF):
http://octave.1599824.n4...107/0/loader2000Fast.pdf
thanks 1 user thanked Chris Battles for this useful post.
on 04/05/2018(UTC)
Offline Jean Giraud  
#32 Posted : 06 May 2018 04:18:30(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: Chris Battles Go to Quoted Post
An all around better method would be detailed here (as is a full multiplicative method for calculating the PDF):
http://octave.1599824.n4...107/0/loader2000Fast.pdf

1. limit 170 => confirmed
2. try to propram "multiplicative"
3. OBSERVE: CDF ... 1-CDF

Binomial.PNG

Offline Jean Giraud  
#33 Posted : 06 May 2018 16:49:38(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)
... do you have a real application for n> 170.

BinomialRevisit.PNG
Offline Davide Carpi  
#34 Posted : 06 May 2018 19:57:25(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Thank you both, I'll check it ASAP Good


(messages moved in the appropriate thread)

Edited by user 06 May 2018 19:59:12(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#35 Posted : 07 May 2018 05:41:38(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: Davide Carpi Go to Quoted Post
Thank you both, I'll check it ASAP


Maybe like this above 170 ... ?

Stat Treasury_6 Dbin Multiplicative.sm (14kb) downloaded 36 time(s).
Offline Chris Battles  
#36 Posted : 07 May 2018 20:29:48(UTC)
Chris Battles

Rank: Newbie

Groups: Registered
Joined: 04/05/2018(UTC)
Posts: 5
United States

Was thanked: 1 time(s) in 1 post(s)
The application that I'm currently working on involves attribute testing and the calculation of confidence and probability of a certain number of events occurring in a set of samples. For example, if there are zero events in 299 trials, then we have 95% confidence that there is a 99% probability that the outcome will not occur.

Some information here from Minitab blog:
http://blog.minitab.com/...ent-your-product-is-good

Very useful in product design testing. And depending on the risk involved, we may need to test to higher confidence levels than that, which leads to higher sample sizes, and therefore higher numbers of trials in the binomial distribution.


Christopher Battles
Offline Jean Giraud  
#37 Posted : 08 May 2018 07:02:13(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: Chris Battles Go to Quoted Post
The application that I'm currently working on involves attribute testing ...

I read you carefully. As it looks, you are confusing yourself
Testing is essentially an Hypergeometric distribution.
Let me check what I have ... not from "dark ages" Minitab.

Jean
Offline Chris Battles  
#38 Posted : 08 May 2018 14:27:01(UTC)
Chris Battles

Rank: Newbie

Groups: Registered
Joined: 04/05/2018(UTC)
Posts: 5
United States

Was thanked: 1 time(s) in 1 post(s)
I agree, the hypergeometric distribution is correct given a finite population. But in this case we assume an infinite (or very large) population that we sample from. Therefore the probability does not change due to the sampling. An assumption, yes, but one that is accepted for large populations.

https://www.itl.nist.gov.../pmc/section2/pmc232.htm

I don't see the hypergeometric distribution in the source for this plug-in, but the same overflow issue will arise with that calculation as well since it requires calculating the binomial coefficients. So n! will raise it's ugly head again.
Offline Jean Giraud  
#39 Posted : 08 May 2018 14:55:23(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: Chris Battles Go to Quoted Post
I don't see the hypergeometric distribution in the source for this plug-in

Here is AOQ, ATI from Hypergeometric just installed an as function.
No need for a plugin for that, just a function.

Stat Hypergeometric [A_T_I].sm (42kb) downloaded 39 time(s).
Stat Hypergeometric.sm (78kb) downloaded 43 time(s).
Stat Hypergeometric Edu. Copy.sm (63kb) downloaded 38 time(s).
Offline Chris Battles  
#40 Posted : 08 May 2018 18:05:04(UTC)
Chris Battles

Rank: Newbie

Groups: Registered
Joined: 04/05/2018(UTC)
Posts: 5
United States

Was thanked: 1 time(s) in 1 post(s)
Jean,
Very nice workbooks. I'll have to study them a bit.
Thank you very much!
Chris
Users browsing this topic
3 Pages<123>
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.