Solution
= Solution
The <uniform prior> has $s=1$, so the posterior is $\operatorname{Beta}(X+1,n-X+1)$. Its mean and mode are
$$
\boxed{\mathbb E[\theta\mid X]=\frac{X+1}{n+2},\qquad m_{\theta\mid X}=\frac Xn.}
$$
Thus \b[the uniform-prior <posterior mode> is the <maximum-likelihood estimator>], including $X=0,n$. The mean shrinks toward $1/2$ and equals the <maximum-likelihood estimator> only when $X=n/2$.