alashworth / test-issue-import

0 stars 0 forks source link

Mean and count priors parameterizations for Beta and Dirichlet #76

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bob-carpenter Wednesday Jul 22, 2015 at 18:01 GMT Originally opened as https://github.com/stan-dev/stan/issues/1563


Beta_mean(theta | mu, phi) = Beta(theta | mu * phi, (1 - mu) * phi)

We could add it without any customized gradients first.

Dirichlet_mean(theta | mu, phi) = Dirichlet(theta | mu * phi)
Dirichlet_sym(theta | alpha) = Dirichlet(theta | rep(alpha, size(theta))
Beta_sym(theta | alpha) = Beta(theta | alpha, alpha)

The latter two will save memory by allowing simpler vari implementations.

alashworth commented 5 years ago

Comment by bgoodri Friday Mar 04, 2016 at 23:10 GMT


I think this should be in stan-dev/math.