StatisticalTools plugin

StatisticalTools plugin - Sample Estimators, Probability Density Functions, Cumulative Density Functions, Quantile functions… - Сообщения

#1 Опубликовано: 05.11.2012 07:30:15
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Hi all,

Just a seed for statistical purposes


Plugin handles primitives listed below:

Sample Estimators

Показать спойлер


Probability Density Functions

Показать спойлер


Cumulative Density Functions

Показать спойлер


Quantile functions

Показать спойлер


Random Numbers

Показать спойлер


Tools

Показать спойлер




PLEASE REPORT HERE ANY ISSUE.


requirements: .Net Framework 3.5 (Windows) / Mono 2.0 (Linux) / SMath Studio 0.97.5581
installation: Tools > Plugins > change "Local Storage" to "Online Gallery" > Statistical Tools
sources: if you want to see the plugin sources, look in the SVN repository.
embedded plugins: Meta Numerics library 2.2.1.0 (website, license)
StatisticalTools_docs.zip (34 КиБ) скачан 528 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 05.11.2012 07:50:00
#2 Опубликовано: 05.11.2012 08:01:07
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

I remained almost speechless by seeing this

Have no words to express my gratitude for this plugin

Just hope that the inverse cumulative distributions would be applied as well.

Just one suggestion if you would not mind. There is a naming convention in Mathcad and R ("lingua franca" for statistics).

pdf (probability density starts with d - like dnorm)
cdf (cumulative probability function starts with p - like pnorm)
inverse cdf (inverse cumulative probability function starts with q - like qnorm)
random numbers from a distribution starting with r - like rnorm

Regards,
Radovan

EDIT: Maybe redundant to say, but besides normal there are t-student, chi-squared and F which are "must have" continuous distributions.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 05.11.2012 19:18:00
#3 Опубликовано: 05.11.2012 15:08:53
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

thank you for the great work. I just got one question. As far as I understand, the Mode function gives the value (or a vector of values) with the highest number of occurences in a dataset.

Then, in the following the result should be a vector of (1 2 3 5) with 4 occurences.

[MATH lang=ENG]Mode(mat(1,3,5,1,6,2,3,2,5,2,3,5,5,2,1,3,4,1,3,6),1)=mat(mat(5,1,1),mat(2,1,1),2,1)@#[/MATH]

Best regards, Martin

BTW, I like the smart handling of vector arguments in functions!
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Опубликовано: 05.11.2012 19:17:40
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Hello w3b5urf3r,

thank you for the great work. I just got one question. As far as I understand, the Mode function gives the value (or a vector of values) with the highest number of occurences in a dataset.

Then, in the following the result should be a vector of (1 2 3 5) with 4 occurences.

[MATH lang=ENG]Mode(mat(1,3,5,1,6,2,3,2,5,2,3,5,5,2,1,3,4,1,3,6),1)=mat(mat(5,1,1),mat(2,1,1),2,1)@#[/MATH]

Best regards, Martin

BTW, I like the smart handling of vector arguments in functions!



Thank you Martin, I've lost 2 lines of code cleaning the sources...

fixed & updated


best regards

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Опубликовано: 06.11.2012 19:23:55
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

some minor doc issues:

in pdf.sm, the doc for pdf.uniform needs a little correction:

[MATH lang=ENG]f(x,a,b):line(if(a>b,line(swap:a,a:b,b:swap,3,1),0),if((x≥a)&(x≤b),1/{b-a},0),2,1)[/MATH]

Also, the pdf.Rayleigh(2) and cdf.Rayleigh(2) help strings seem to have a copy-paste error.

Best regards, Martin
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 07.11.2012 05:03:45
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

I would kindly ask you to insert into this plugin at least intercept(x,y) and slope(x,y) functions for calculating the least square intercept and slope of a straight line giving two data vectors.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 08.11.2012 10:36:35
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Hello w3b5urf3r,

I would kindly ask you to insert into this plugin at least intercept(x,y) and slope(x,y) functions for calculating the least square intercept and slope of a straight line giving two data vectors.

Regards,
Radovan


Ok :d .

Wrote

Hello w3b5urf3r,

some minor doc issues:

in pdf.sm, the doc for pdf.uniform needs a little correction:

[MATH lang=ENG]f(x,a,b):line(if(a>b,line(swap:a,a:b,b:swap,3,1),0),if((x≥a)&(x≤b),1/{b-a},0),2,1)[/MATH]

Also, the pdf.Rayleigh(2) and cdf.Rayleigh(2) help strings seem to have a copy-paste error.

Best regards, Martin


Done, will be available in the next relase .


regards,

w3b5urf3r
SMath Studio - [sample estimators.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 08.11.2012 11:33:00
#8 Опубликовано: 02.12.2012 08:07:42
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED

- added more tools: Regularized Beta function, Regularized Gamma functions (P and Q), Ceil, Floor, error function, inverse error function;
- added more estimators: Kurtosis, Kurtosis Excess, Moment, Skewness, Intercept, Slope;
- added more probability distributions: Student's t, Fisher-Snedecor, Chi-squared, Cauchy;
- added quantiles (all distributions except Student's t, Fisher-Snedecor and Chi-squared).


best regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 02.12.2012 14:19:00
#9 Опубликовано: 02.12.2012 14:43:33
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

Many thanks for this plugin .

Just played a bit, and have seen a problem with CDF.ChiSquare( "variable" )-(image attached). Did not quite understand why this problem appear at the moment. Also, do not quite understand what this description mean

CDF.ChiSquare( "variable" ) - Returns the Χ² sDOF CDF evaluated in "1:variable" points.

I suppose that sDOF means "single degree of freedom"

Regards,
Radovan
cumulative density functions.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 08.12.2012 13:15:00
#10 Опубликовано: 02.12.2012 16:02:26
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Hello w3b5urf3r,

Many thanks for this plugin .

Just played a bit, and have seen a problem with CDF.ChiSquare( "variable" )-(image attached). Did not quite understand why this problem appear at the moment. Also, do not quite understand what this description mean

CDF.ChiSquare( "variable" ) - Returns the Χ² sDOF CDF evaluated in "1:variable" points.

I suppose that sDOF means "single degree of freedom"

Regards,
Radovan



:d seem that some eval() in the Reguarized Gamma functions it's stricly necessary for some value.... fixed and updated

You supposed right :-p Now I've extended the acronym

EDIT: plugin updated again (Mean and StdDev names)

regards,

w3b5urf3r
SMath Studio - [Page1].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 03.12.2012 04:06:00
#11 Опубликовано: 03.12.2012 04:21:12
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello w3b5urf3r,

I wonder why all of the functions inside plugin are not in a separate function category. They are inside "Matrix and vector" function category now.
Not so important at the moment, I am just curious

Regards,
Radovan

P.S. I am looking forward to the missing ICDF's
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#12 Опубликовано: 03.12.2012 06:14:54
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Hello w3b5urf3r,

I wonder why all of the functions inside plugin are not in a separate function category. They are inside "Matrix and vector" function category now.
Not so important at the moment, I am just curious

Regards,
Radovan

P.S. I am looking forward to the missing ICDF's



Hi omorr,

I'd like to put them in a new category "Statistics" but I do not know if it is possible to expand the available categories through the plugin. Because all functions accept a vector as input i've grouped all as "matrix and vector".

About the missing ICDF I'm looking for a fast and accurate algorithm to compute each of them... if I find anything I will use a bisection algorithm


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 03.12.2012 10:05:00
#13 Опубликовано: 07.02.2013 15:16:18
turducken

turducken

0 сообщений из 4 понравились пользователям.

Группа: User

Will this plugin eventually have the ability to produce a random number from a normal or Gaussian distribution (rather than uniform distribution)?


I would be using this to create random white Gaussian noise to simulate measured/actual situations. For instance, Mathcad has the function rnorm() that does this.

Thank you, and I greatly appreciate SMath and am looking forward to transitioning to it once I understand it has all the capabilities I need.
#14 Опубликовано: 08.02.2013 06:50:45
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Will this plugin eventually have the ability to produce a random number from a normal or Gaussian distribution (rather than uniform distribution)?

I would be using this to create random white Gaussian noise to simulate measured/actual situations. For instance, Mathcad has the function rnorm() that does this.

Thank you, and I greatly appreciate SMath and am looking forward to transitioning to it once I understand it has all the capabilities I need.



Sure, soon or later...


best regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Опубликовано: 04.06.2013 02:51:08
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

A Nightly update for anyone are using SMath Studio 0.96.4902 (plugins -> online gallery) and for anyone are using the previous SMath Studio relases (1st post).

- improvements of existing Random() functions (seed issues)
- Added a Guid (after the download an error should appear using worksheets created with the old plugin, just continue and save again the file)
- Sources are moved to the SVN server (there is a link in the first post)


best regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 04.06.2013 03:06:00
#16 Опубликовано: 03.09.2013 09:20:39
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

There is a problem with plotting the Gamma function, see attachment. Might be an issue of plotregion rather than Statistical tools...
Gamma.sm (8 КиБ) скачан 132 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#17 Опубликовано: 03.09.2013 10:13:12
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Gamma(1) is a built-in function, don't know what's the issue
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Martin Kraska 03.09.2013 11:56:00
#18 Опубликовано: 03.09.2013 11:59:58
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Gamma(1) is a built-in function, don't know what's the issue


Sorry, I was tricked by the capital letter...
One more reason to mention the plugin in the description string in order to avoid such confusion. Sometimes I check plugin origin of a given function by switching off the guessed one and trying if I still get the function. As that is not really handy, I tend to be lazy just like in the given case :-(

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#19 Опубликовано: 15.09.2015 05:52:13
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.97.5581

  • .NET Framework 3.5 required;
  • (SS-91) Added missing quantiles (Chi Square, Student's t, F) using the Meta Numerics library 2.2.1.0 (website, license);
  • erf, erfc, erfinv from Mata.Numerics;
  • minor code changes;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 15.09.2015 13:28:00
#20 Опубликовано: 15.09.2015 13:32:05
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Thank you Davide,

At last...long awaited quantile functions

Best Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 15.09.2015 18:32:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений