How to implement a function of a random variable in PyMC which could be sampled by MCMC Metropolis?
问题 If you have a random variable $X$ and a function $f$, you can define $y=f(X)$ as a new random variable with a probability density function as follows: $p(y)=(f^{-1})'(y)p(x)$. For details see here. Now I have defined a random variable alpha, with an exponential distribution in the following code. I want to add to my model, log(alpha) as a new random variable. How should I implement it in my model? I already made an effort but it seems that it is wrong, and the reason as been pointed out in