Answer to Question #191316 in Statistics and Probability for tejaswini

Question #191316

Let (Z1, Y1), . . . , (Zn, Yn) be generated as follows:

Zi ∼ Bernoulli(p)

Yi ∼ { N(0, 1) if Zi = 0 , N(5, 1) if Zi = 1

(a) Assume we do not observe the Zi ’s. Write the pdf f(y) of Y as a mixture of two normal distribution pdf. (Use the notation φ(·) which is the standard normal pdf.)

(b) Write down the likelihood function for p (without Zi ’s).

(c) Write down the complete likelihood function for p (assuming the Zi ’s are observed).

(d) Find the maximum likelihood estimation of p using the likelihood from (c). 

1
Expert's answer
2021-05-13T08:40:51-0400

we see that N(0,1) and N(5,1) with probability 1-p and p respectively.


Thus density is R(y)=(1p)12πey22+p12πe(y5)22R(y)=(1-p)\dfrac{1}{\sqrt{2\pi}}e^{-\frac{y^2}{2}}+p\dfrac{1}{\sqrt{2\pi}}e^{-\frac{(y-5)^2}{2}}


(b) The likelihood function from the above density, the likelihood function without the z's is:


Ln(P)=((1p)12πeyi22+p12πe(yi5)22L_n(P)= ((1-p)\dfrac{1}{\sqrt{2\pi}}e^{-\frac{y_i^2}{2}}+p\dfrac{1}{\sqrt{2\pi}}e^{-\frac{(y_i-5)^2}{2}}


(c) Note that if the ziz_i is known, then the likelihood for p depend exclusively on ZiZ_i as y/z has a normal distribution independent of p.


Thus the complete likelihood function is-


Ln(P)=((1p)12πeyi22+p12πe(yi5)22L_n(P)= ((1-p)\dfrac{1}{\sqrt{2\pi}}e^{-\frac{y_i^2}{2}}+p\dfrac{1}{\sqrt{2\pi}}e^{-\frac{(y_i-5)^2}{2}}


.


(d) As we know, The likelihood for p depends exclusively on Zis as YZZ_i's \text{ as } Y|Z has a normal distribution of p.


Thus the likelihood of p now is

 Ln(p)=fn(Y,Zp)=fn(Zp)×fn(YZ),L_n(p)=f_n(Y,Z|p)=f_n(Z|p)\times f_n(Y|Z), where fnf_n is the joint density of the sample. Here fn(YZ)f_n(Y|Z) is independent of p and thus


     Ln(p)fn(Zp)L_n(p) \propto f_n(Z|p)


But now, note that Z1,Z2,...,ZnZ_1,Z_2,...,Z_n


fn(Zp)=Πi=1nPZi(1p)1Zi\Rightarrow f_n(Z|p)=\Pi_{i=1}^n P^{Z_i}(1-p)^{1-Z_i}

'

         =pZi(1p)nZi=p^{\sum Z_i}(1-p)^{n-\sum Z_i}


Thus the likelihood function is-


Ln(p)pZi(1p)nZiL_n(p) \propto p^{\sum Z_i}(1-p)^{n-\sum Z_i}


Taking log of above equation and we get-


LogLn=logPzi+(1zi)log(1p)LogL_n=logP\sum z_i+(1-\sum z_i)log(1-p)


Thus dLndp=0\dfrac{dL_n}{dp}=0


=zip11p(nzi)=0=\dfrac{\sum z_i}{p}-\dfrac{1}{1-p}\sum (n-\sum z_i)=0


=1Pzi=\dfrac{1}{P}\sum z_i


=11P(nzi)=n=\dfrac{1}{1-P}(n-\sum z_i)=n


p^=1nzi=zˉ\Rightarrow \hat{p}=\dfrac{1}{n}\sum z_i=\bar{z}

This is the required MLE.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment