Thankyou again ! I understand the importance of the model. The last thing I want to ask you, if I want to add to my model another distribution, but this time continuous distribution as the uniform one, like this:
with pm.Model() as model:
name_customers = pm.Bound(pm.Geometric, upper=100)('x', p=0.02685) id_customers = pm.Uniform('id', lower=12000000, upper=99999999) trace = pm.sample(10000, cores=1)
and I’m trying to get the logp (only of the name_customers in the value = 36) like you told me:
lp = model.logp({‘x’: 36})
x = np.exp(lp)
I have this Error:
TypeError: Missing required input: id_interval__
Can you tell me what I’m doing wrong?
Sorry for my basic knowledge, I’m trying to document myself and you are helping me a lot.