Skip to content

Add an example of predicting on a new, unseen group in the existing notebook about hierarchical models #418

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

Open
cbrummitt opened this issue Sep 12, 2022 · 1 comment
Assignees
Labels
proposal New notebook proposal still up for discussion

Comments

@cbrummitt
Copy link

Proposal

In the existing notebook A Primer on Bayesian Methods for Multilevel Modeling, add an example at the bottom, in the section about prediction, about making predictions on a new, unseen group.

Why should this notebook be added to pymc-examples?

The prediction section of the tutorial on multilevel models says that one can make predictions on existing and new groups. But it only gives an example of predicting on an existing group. This addition would fill a gap noted in this Discourse thread.

References

Luciano's reply in the aforementioned Discourse thread has some clues for what the example might look like, though it needs to be updated from pymc3 to pymc.

@cbrummitt cbrummitt added the proposal New notebook proposal still up for discussion label Sep 12, 2022
@lucianopaz
Copy link
Collaborator

Thanks for opening the issue @cbrummitt. I had completely lost your question over on discourse. In v4 we wrote a new way to do posterior predictive sampling that is flexible and doesn’t require the use of model factory functions to do out of sample predictions. You’re totally right that this functionality has not been properly showcased and isn’t visible in any of our pymc-examples. When I finish some project related work, I’ll focus on this.

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

2 participants