Uniform Prior#
Using a uniform prior, the MAP becomes the MLE
Suppose we want to find the chance of head \(p\) of a possibly unfair coin. However we have no reason to expect the coin to be unfair as most coin tosses are fair-ish. We take the uniform prior.
We perform \(n\) trials with the coin and got \(H=k\) heads. The likelihood is binomial. The posterior distribution is then,
Since \(p\) is a random variable the posterior distribution is,
With expectation and MAP,
At large \(n\), these two are nearly equal. We have found that the observed propotion of heads is the MAP.
Disproportionate Prior#
Suppose you want to determine the chance of an event \(p\). If you believe the event is disproportionate, that is, you believe on average there is \(x\) events out of \(n\).
In general the proposed \(E(p)\) does not have to be a rational number.
Using the unfair coin example above, suppose in life, we have experience a lot of cheating so we think that the coin is unfair. Our prior knowledge motivates us to propose the coin lands head at chance \(70\%\),
We take the prior distribution to be \(p \sim \text{Beta}(7, 3)\).