Bayesian sample size estimation for given HPD

(1) you need to work out the inverse CDF of Beta distribution and compute inverseCDF_Beta(.975) - inverseCDF_Beta(.025)
(2) The X does not change size as you are setting the value using np.sum(new_observed_X)

1 Like