Since $p$ has a beta prior with parameters $\alpha=1$ and $\beta=1$, and $Y$ is a binomial random variable, the posterior distribution of $p$ given $Y$ is a beta distribution with parameters $\alpha=Y+1$ and $\beta=n-Y+1$. Therefore, the Bayes estimator for $p$ is
Show more…