I'm trying to set limits on fitting variables using the MCMC approach using PyMC For example, I defined the following stochastic models in PyMC
import pymc as pm
a=pm.Uniform('a',lower=0.,upper=1.,value=0.2)
b=pm.Uniform('b',lower=0.,upper=1.,value=0.2)
How can I define a model so that b is always less than or equal? Is this the right approach?
a=pm.Uniform('a',lower=0.,upper=1.,value=0.2)
b=pm.Uniform('b',lower=0.,upper=b,value=0.2)
source
share