Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future work #20

Open
hot9cups opened this issue Oct 28, 2020 · 8 comments
Open

Future work #20

hot9cups opened this issue Oct 28, 2020 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@hot9cups
Copy link
Owner

The library is growing at a good pace. It started with support for merely 2 distributions, and now it's on the path to support most of the major distributions I could think of.

What else do you think would a library on probability distribution ought to include?
Currently, it calculates the mean, standard deviation, adds random variables of two distributions(not for all distributions, eg: exponential), plots the pdf of the distributions and does all of this on user's input data.

Couple of things that are pending include:

  1. Creation of a proper documentation website, and its hosting(preferably using github.io)
  2. Using seaborn and improving the graph quality

There's another issue I thought of yesterday, which could be included - Inverting the probability distribution.
Ie, solving questions like "Given I have a Gaussian Distribution of x mean and y std, for what value of t is P(X < T) = z%"

I reckon that's easily solveable using Newton's method, because we're simple required to find the value of t such that
P(X<t) - z = 0
Using Newton's method, this simply boils down to:
1)Initialising t to a random value
2)Iterating till we have an accuracy we desire:
t -= (cdf(t) - z)/pdf(t)
we could stop, for example, when |dt| < 0.0001, where dt = (cdf(t)-y)/pdf(t)

So these are the ideas I have at the moment, but collective wisdom is always better.
If you think there are other features that could be included in the library, do comment your thoughts below :)

@hot9cups hot9cups added the help wanted Extra attention is needed label Oct 28, 2020
@codeperfectplus
Copy link
Contributor

I would like to create the documentation website for the probdists.
documentation will be visible on https://probdists.readthedocs.io/ as well as https://probdists.github.io.

@hot9cups

@hot9cups
Copy link
Owner Author

@codeperfectplus Great, could you please comment here so I could assign it to you? :)

@saeyma
Copy link

saeyma commented Oct 21, 2021

@hot9cups, I think we can add support for a few more distributions. We already have ~10 most common ones but we may have missed a few. Can you look into Student t-distribution, Weibull, and Kumaraswamy distributions.

If you affirm then I can open an issue.

@hot9cups
Copy link
Owner Author

@saeyma that sounds great, also would you be interested in connecting over discord? I'd like to discuss a couple of things about the repo there. My tag is hot9cups#3125

@saeyma
Copy link

saeyma commented Oct 25, 2021

Hey @hot9cups, did you look into this?

@hot9cups
Copy link
Owner Author

@saeyma Yes, by all means go ahead. As long as a distribution has a wikipedia page on it(which is to say it's 'known') and has compute-friendly formulae, we can keep adding 'em here.

@basil08
Copy link
Contributor

basil08 commented Oct 30, 2021

Hey, may I contribute something too? It's been a long time since I contributed to his repo :)

@hot9cups
Copy link
Owner Author

@basil08 welcome back, great to see you again! By all means, go ahead :)

@hot9cups hot9cups reopened this Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants