-
Notifications
You must be signed in to change notification settings - Fork 25
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
Create convenience quantile functions for various probability distributions #19
Comments
@KZARCA if you have any other suggestion regarding probability distribution that will be needed? |
We should add lognormal and logit normal distributions, even if the latter @KZARCA https://github.com/KZARCA if you have any other suggestion — |
Support for Dirichlet distribution will be non trivial. Suggested implementation:
Example for {a, b, c} ~ Dirichlet(20, 30, 50) and {d, e} ~ Dirichlet(5, 10): define_resample(
a = r_multinomial(n = 20),
b = r_multinomial(n = 30),
c = r_multinomial(n = 50),
d = r_multinomial(n = 5),
e = r_multinomial(n = 10),
define_multinomial(a, b, c),
define_multinomial(d, e)
) This implementation should check:
Programming:
The a = a / (a+b+c),
b = b / (a+b+c),
c = c / (a+b+c),
d = d / (d+e),
e = e / (d+e) |
Actually solving everything UI-wise with a formula interface: define_resample(
a + b + c ~ multinom(20, 30, 50),
d + e ~ multinom(5, 10),
# also works for standard distributions
f ~ norm(0, 1)
) Only the interface changed, the rest is the same behind the hood (and it's a mess, see #30). |
Should include:
The text was updated successfully, but these errors were encountered: