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

Generate statistical description from model #33

Open
null-a opened this issue Oct 11, 2019 · 0 comments
Open

Generate statistical description from model #33

null-a opened this issue Oct 11, 2019 · 0 comments
Labels
discussion Requires broader discussion

Comments

@null-a
Copy link
Collaborator

null-a commented Oct 11, 2019

I wonder if it would be useful to be able to generate a description of a brmp model in the form of a series of statistical formulas. Something like:

model = defm('hits | player', df, family=Binomial(num_trials=45))

# Produces:
#
# hits_i ~ Binomial(p_i, num_trials=45)
# logit(p_i) ~ a_player
# a_player ~ Normal(0,1)

We might be able to implement this as a backend (degenerate -- no inference methods), thereby making it available to users through something like:

model.generate(backend=math)

Presumably this could generate LaTeX for pretty rendering in notebooks.

@null-a null-a added the discussion Requires broader discussion label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Requires broader discussion
Projects
None yet
Development

No branches or pull requests

1 participant