Hi PyMC3,
Is there a principled way to determine the precision of the HPD estimate? In this case I’m not referring to precision of the estimated parameters, but the actual significant digits.
Perhaps one way to achieve this is performing inference multiple times, and identifying the digits that are changing in the hpd estimates? This could be estimated using bootstrapping, ie:
data = example_trace['mu_prior']
for i in range(10):
bstrap = np.random.choice(data, data.shape[0])
print(pm.stats.hpd(bstrap))
This obeys intuition, in that if you repeat the example code above but increase the number of samples to 5000, you get more sigfigs (this uses a new random sample so the estimate is slightly different):