Open ricardoV94 opened 1 year ago
Is this for hierarchical priors, or something more general?
Looking back on this, I can confirm BetaGeoModel
benefits from hyperpriors. The a
and b
parameters of the Beta dropout distribution seem to benefit from a hierarchical pooling approach:
https://mc-stan.org/users/documentation/case-studies/pool-binary-trials.html
Back when I was still maintaining the btyd
library, this was the only way I could get the posterior mean values to mach the MLE estimates from lifetimes
:
# Beta parameters.
a = pm.Deterministic("a", uniform_prior * pareto_prior)
b = pm.Deterministic("b", (1.0 - uniform_prior) * pareto_prior)
clv.ComposeModel(...)