google-summer-of-code icon indicating copy to clipboard operation
google-summer-of-code copied to clipboard

[Idea]: implement a broader range of statistical distributions

Open kgryte opened this issue 2 years ago • 2 comments

Idea

The goal of this idea is to implement all distributions found in SciPy stats. Distribution support will entail implementing APIs for computing PDFs, CDFs, quantiles, and other distribution properties. Additionally, stdlib should support APIs for drawing random variates from any implemented distributions.

Expected Outcomes

stdlib users will be able to construct, and compute various properties of, every statistical distribution present in SciPy in JavaScript.

Involved Software

No runtime dependencies should be necessary. SciPy will be necessary in order to provide reference test results.

Prerequisite Knowledge

JavaScript, Node.js. Familiarity with C/C++/Fortran would help.

Difficulty

Intermediate. Difficulties may arise for distributions whose properties and moments have complicated formulations. Developing JavaScript implementations will likely require consulting C/C++ and possibly Fortran code.

Project Length

350 hours.

kgryte avatar Jan 11 '23 09:01 kgryte

For the set of distributions which have already been added to stdlib, see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists.

kgryte avatar Mar 19 '24 07:03 kgryte

And for APIs for generating random variates from those distributions, see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/base.

kgryte avatar Mar 19 '24 07:03 kgryte