-
Notifications
You must be signed in to change notification settings - Fork 235
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
Hierarchical distributions for all parameters in model config #708
Comments
I've been wanting to nest distributions on the https://discourse.pymc.io/t/prior-distribution-for-certainty-parameter-of-beta-distribution/1071 However, as-written |
Good to know. Thanks for the link Can you point out where you had this in mind in clv module for reference. Will Beta be the only likelihood you use? Or do they overlap with the mmm likelihood stored in that method? In my mind, there will be some overlap in functionality so itd make sense to at least pull out the method into function. Then maybe have two separate main functions if needed |
Pooling distributions like Pareto and Uniform would also be needed. I used both in my fork of https://github.com/ColtAllen/btyd/blob/main/btyd/models/beta_geo_model.py#L110 This was the only way I could get the MCMC posterior means to match the MLE results from research during testing. Right now
Could also move |
Yes! This would be great indeed! |
The _create_likelihood_distribution accepts a nested dictionary. i.e.
pymc-marketing/pymc_marketing/mmm/delayed_saturated_mmm.py
Lines 540 to 545 in b763c12
That is based on the single recursive section of that method
It might be beneficial to allow this nesting for other parameters in the model. For example, a spin on the current gamma_control can be viewed as hierarchical parameters for the control coefficients. Where the "gamma_control_mu" and "gamma_control_sigma" are then scaler population parameters for "gamma_control"
Overall, think it would be easy to add and would consolidate the model_config logic in the process.
Open to other's thoughts
The text was updated successfully, but these errors were encountered: