Open stonebig opened 9 years ago
also in FreqBayes3.ipynb cell 6 (and 7, and after):
# Now we ask how many of these mu values fall in our credible region
mu_good = mu[i]
CR = bayes_CR_mu(D, 10)
within_CR = (CR[0] < mu_good) & (mu_good < CR[1])
print ("Fraction of means in Credible Region: {0:.3f}".format(within_CR.sum() * 1. / within_CR.size))
Some parenthesis are missing to make it Python 3 compatible