# posterior distribution of Bernoulli distribution

The pdf of X | $$\theta$$ is given by $$\theta^x (1- \theta)^{1-x}$$

and its prior distribution is given by $$p(\theta) \frac {1} {B(\alpha, \beta)} \theta^{\alpha - 1} (1 - \theta)^{\beta - 1}$$

where $$B(\alpha, \beta) = \int_0^1 x^{\alpha - 1} (1-x)^{\beta -1} dx$$

Can someone help me determine posterior distribution of $$\theta$$ and to show that its a weighted average between the MLE and the prior estimate of $$\theta$$ under the beta prior?

New contributor
Aditi Akolkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.