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

Penalized Complexity Priors: Recipes for PyMC #558

Open
4 of 7 tasks
bwengals opened this issue Jul 10, 2023 · 0 comments
Open
4 of 7 tasks

Penalized Complexity Priors: Recipes for PyMC #558

bwengals opened this issue Jul 10, 2023 · 0 comments
Labels
proposal New notebook proposal still up for discussion

Comments

@bwengals
Copy link
Collaborator

Penalized Complexity Priors: Recipes for PyMC

Why should this notebook be added to pymc-examples?

The penalized complexity framework creates nice, informative "default" priors for common modeling situations. They're used a lot in INLA, and are mentioned in a few places in Stan's prior choice guide. Some are pretty easy to implement and others are more difficult. There are also PC priors derived for situations where setting picking a prior is tricky (negative binomial overdispersion, student T degrees of freedom, GPs). Right now if users want to implement PC priors, it takes a bit of work to go through the literature and adapt them to how distributions are parameterized in PyMC. This notebook would be a reference where users can understand how to set their hyperparameters and quickly implement them more or less via copy/paste (some should probably be done as an actual distribution like Student-T df since it takes more than a few lines to implement). The goal wont be to describe PC priors in depth or to try to convince people to use them.

Hopefully it will cover (checks where I've got something working, see here):

  • Gaussian random effects
  • Overdispersion, negative binomial
  • Student T degrees of freedom
  • GPs with Matern covariance functions
  • AR models
  • P-splines
  • BYM (or point to @daniel-saunders-phil's project)

Suggested categories:

  • Level: Intermediate
  • Diataxis type: Reference

Related Notebooks

Not aware of any

References

@bwengals bwengals added the proposal New notebook proposal still up for discussion label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal New notebook proposal still up for discussion
Projects
None yet
Development

No branches or pull requests

1 participant