I meet some trouble about the model, if someone can give me advices, I would be grateful if anyone could give me some advice.
When I give the parameter a uniform distribution as a priori, and the likelihood under the parameter is a beta distribution, then the parameter value obtained by the model must be in the range of 0 to 1.
This is right?
Here is my code:
alpha = 3 with pm.Model() as test: beta = pm.Uniform('beta', lower=0.0, upper=1.0) temp1 = alpha*beta temp2 = alpha*(1-beta) obs_Y = pm.Beta('obs_Y', alpha=temp1, beta=temp2, observed=np.random.rand(100)) trace = pm.sample(100)