Given $\theta_i$, $0 < \theta_i < 1$, a sequence of independent Bernoulli ($\theta_i$) random variables from i subpopulations, that are also independent across subpopulations. Suppose i=2 (2 distinct subpopulations in the population, $\pi_1$ and $\pi_2$ are subpopulation proportions with $\sum \pi_i = 1$), how do we go about simultaneous estimation of $\theta_1$ and $\theta_2$ with the following properties –
- $\theta_1$ and $\theta_2$ have a beta prior distribution
- $\pi_1$ and $\pi_2$ have Dirichlet prior distribution
- $\pi$ is unknown, $\theta$ and $\pi$ are independent
- Estimation loss is sum of component losses and component loss is squared error loss,
$L(\theta_i, \hat \theta_i) = (\theta_i, \hat \theta_i)^2$
How do we find the Bayes estimator of $\theta$ = ($\theta_1$, $\theta_2$) and its posterior expected loss?
Any solved example/direction/text/links would be helpful!