## Bayes Binomial-Beta Posterior Odds Ratio

If you have:

$X - Binomial(n,\theta)$

$H_0 : \theta = \theta_0$
$H_a : \theta \neq \theta_0$

$p(H_0) = \pi$
$p(H_a) = 1-\pi$

given $H_a$, $\theta$ is $Beta(\alpha,\beta)$

what is

$
\frac{p(x | H_0)}{p(x | H_a)} ?
$

I know $p(x | H_0)$ but how do you derive the $p(x | H_a)$?

Thanks for any help.