Statistics, P Value, Bayesian Statistics, Hypothesis Testing, Binomial Distribution.
probability distribution and (2) Beta is a conjugate prior to Binomial distribution. So, if you assume uniform / Beta prior, then the posterior will be a Beta distribution. Given this mathematical fact, you can estimate P(H0|x) through sampling (see statsexchange), and then compute the posterior