I am making inference on the parameters of a power law y = \lambda x ^ {\alpha} with 0 <b <1. Obviously, the parameters a and b are somehow dependent on each other and the plot demonstrates this. At this point, I would like to apply the Thompson Sampling algorithm for extracting the curve and I would like to draw a sample from the posterior probability for each parameter, such that I am respecting the density of the sampling. However, if I randomly extracted parameters I have the impression that I would not respect the dependence of the parameters, so I wonder if there could be a way to condition the extraction of one parameter to the value of the other, or something that can make the extraction taking into the account the dependence of the parameters.
First of all, how PyMC3 manages the dependence between parameters?
Thanks a lot guys in advance, below the spec of my model.
Sorry, if my questions could sound dumb ![]()
This is the model:
with pm.Model() as model:
alpha = pm.Beta('alpha', alpha= 3, beta= 2) # prior probability of alpha parameter
epsilon = pm.HalfNormal('epsilon', sigma= 5) # prior probability of error
lam = pm.HalfNormal('lam', sigma= 5) # prior probability of lambda parameter
link = pm.Deterministic('link', lam*cost**alpha)
likelihood = pm.Normal('conversions', mu=link, sd=epsilon, observed=lead)
trace = pm.sample(25000, chains = 2, cores=2, target_accept=0.95, return_inferencedata=True)
And this is the pair plot
