Hi, I have a data list like this:
data = [0.0152, 0.0075, 0.0095, 0.0071, 0.0017, 0.0038, 0.005 , 0.0015,
0.0042, 0.0014, 0.0022, 0.0011, 0.008 , 0.0055, 0.0027, 0.0011,
0.0013, 0.0035, 0.0024, 0.0012, 0.0015, 0.0009, 0.0027, 0.0029,
0.0034, 0.0009, 0.0048, 0.0031, 0.0022, 0.0026, 0.0033, 0.0037,
0.0025, 0.0017, 0.0016, 0.003 , 0.0012, 0.0024, 0.0028, 0.0031,
0.0021, 0.0038, 0.0025, 0.0012, 0.0014, 0.0049, 0.0014, 0.0014,
0.0014, 0.0008, 0.0009, 0.0012, 0.0023, 0.002 , 0.002 , 0.0015,
0.001 , 0.001 , 0.0023, 0.0015, 0.0025, 0.0014, 0.001 , 0.0008,
0.001 , 0.0013, 0.002 , 0.0013, 0.0017, 0.0023, 0.002 , 0.0008,
0.0011, 0.0008, 0.0014, 0.0013, 0.0018, 0.0013, 0.001 , 0.0023,
0.0024, 0.001 , 0.0008, 0.0013, 0.0015, 0.0014, 0.0012, 0.0008,
0.0009, 0.0009, 0.0009, 0.0012, 0.0012, 0.0015, 0.0015, 0.0016,
0.0009, 0.0008, 0.0009, 0.0017] all data is close to zero, my prior is the worst data should be less than 0.001, I want to use model like this:
with pm.Model() as model_beta:
mu = pm.Uniform('mu',0, 0.001)
sd = pm.Uniform('sd',0, 1)
y = pm.Beta('y', mu=mu, sd=sd, observed=data)
trace_beta = pm.sample(1100)
chain_beta = trace_beta[100:]
pymc3 return a Bad initial energy…
how to set the prior properly? Thanks…