Is there any statistical library for javascript? [closed]

谁说胖子不能爱 提交于 2019-12-20 11:53:10

问题


I need to implement some statistical tests like: T-test, Anova and Wilcoxon on javascript.

Similar to Java's - Apache Commons Math Library, is there any statistical tests library or codes for javascript?


回答1:


jStat : a JavaScript statistical library

http://www.jstat.org/




回答2:


OpenEpi is a Javascript stats library, is open source, and has ANOVA and t-tests. I've not tried it (it's a bit too focused on epidemiology for my needs) but it might be useful.


jStat is a javascript statistical library project, and it looks like it's got a great future, but it might not have all you need right now. Edit: as of Dec 2012 it looks like the jStat project page is no longer maintained but the project is continuing to be developed. There's more up to date documentation on github. It now does have anova tests and varieties of t-test. No sign of Wilcoxon signed-rank though.


If you need very specific statistical processing in javascript urgently, you might have most success by browsing Omegahat who have various little tools that bridge the established stats language R with others including javascript.

It'll depend on the details of exactly what you want to do, but you might have some success with packages such as RJavascript - a code translator which aims to help turn existing R features into Javascript (just don't expect quality results first time). Also, SpiderMonkey builds on R for browsers, so it might be useful for internal or personal uses (but it's unlikely to be suitable for public publishing).




回答3:


Some years ago I ported https://code.google.com/p/statistics-distributions-js/ so that I could use it in http://elem.com/~btilly/effective-ab-testing/ - it may have the functionality you need if you only need simple things.




回答4:


If you're looking for a simple library for descriptive statistics, you could use javascriptstats.com

It does:

  • Mean
  • Median
  • Mode
  • Range
  • Variance
  • Standard Deviation

Best!




回答5:


Leveraging a related answer:

The following blog post lists some recent packages: http://jgoodall.me/posts/2012/02/01/javascript-statistical-libraries/

As mentioned by others, native JS is a far cry from R, which web-wise has progressed from RApache (http://rapache.net/) to shiny (http://www.rstudio.com/shiny/). The latter uses node.js server-side, so this is quite promising. Of course both approaches will require you to code stats in R server-side, instead of using JS either on client or server.

Marc



来源:https://stackoverflow.com/questions/5656897/is-there-any-statistical-library-for-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!