Statistical Inference 2

Posted by JongHyun on September 4, 2017

Let's deal with bayesian theorem more detail. In the equation, It is often hard to calculate integral of denominator. Actually, the denominator is the meaning of normalizing const. So, the important part is numerator side. f(θ|y)=f(y|θ)f(θ)f(y)=f(y|θ)f(θ)f(y|θ)f(θ)

f(θ|y)=likelihoodpriornormalizingconstlikelihoodprior

Suppose we are looking at the coin and it has unkown probability theta of coming up heads. Also suppose we express ignorance about the value of theta by assigning it a uniform distribution. We can update our prior with data if there are one head event in one flip like this. θU[0,1]

f(θ)=I0θ1
f(θ|Y=1)=f(y=1|θ)f(θ)f(y)=θ1(1θ)11I0θ1θ1(1θ)11I0θ1dθ
=θI0θ110θdθ=2θI0θ1
f(θ|y)f(y|θ)f(θ)=θI0θ1

We can also plot the prior distribution and posterior distribution after one event. There are changes due to one head observation.

prior