You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple sources describing the icdf function for any specific distribution can be found, you're free to choose which one is working for you. To start with I recommend checking:
New tests have to be added in test_continuous.py for continuous distributions, and test_discrete.py for discrete ones. You can use existing tests as a template:
Don't hesitate to ask any questions. You can grab as many distributions to implement moments as you want. Just make sure to write in this issue so that we can keep track of it.
Profit with your new open source KARMA!
The following distributions don't have an icdf method implemented:
Mixture (requires an interative algorithm based on the logcdf, see here)
Note that not all of the icdf equations will have closed solution, so it's recommended to first start with the ones that can be found in closed form, as they will be easier to implement and will contribute to the task further with providing other contributors with templates to understand the topic better. The list above is not final, and I'll try to update it to contain all distributions available for taking.
Description
We are looking for help to implement inverse cumulative distribution (ICDF) functions for our distributions!
How to help?
This PR should give a template on how to implement and test new icdf functions for distributions: #6528
ICDF functions allow users to get the value associated with a specific cumulative probability.
So far we've added 2 examples for continuous distribution
pymc/pymc/distributions/continuous.py
Lines 348 to 351 in 2fcce43
pymc/pymc/distributions/continuous.py
Lines 541 to 548 in 2fcce43
And an example for a discrete distribution:
pymc/pymc/distributions/discrete.py
Lines 824 to 832 in 2fcce43
Multiple sources describing the icdf function for any specific distribution can be found, you're free to choose which one is working for you. To start with I recommend checking:
E.g.: https://en.wikipedia.org/wiki/Normal_distribution
It should be called "Quantile" as on the screenshot above.
New tests have to be added in test_continuous.py for continuous distributions, and test_discrete.py for discrete ones. You can use existing tests as a template:
pymc/tests/distributions/test_continuous.py
Lines 282 to 286 in 2fcce43
Don't hesitate to ask any questions. You can grab as many distributions to implement moments as you want. Just make sure to write in this issue so that we can keep track of it.
Profit with your new open source KARMA!
The following distributions don't have an icdf method implemented:
Note that not all of the icdf equations will have closed solution, so it's recommended to first start with the ones that can be found in closed form, as they will be easier to implement and will contribute to the task further with providing other contributors with templates to understand the topic better. The list above is not final, and I'll try to update it to contain all distributions available for taking.