Please solve the problem using R

Question Please solve the problem using R Image transcription text3. (Bonus, 5pts) In this question, you will apply the EM algorithm to estimate the pa- rameters of thetwo-component exponential mixture model, where a random sample Y1, …, Y, are i.i.d. with density fr(y) = phi(y)+ (1 -p)fz(y), y>0. Let G; 6 {1, 2} be the unobserved membership of the ith observation. . pe (0, … Show more… Show morePlease solve the problem using R Math Statistics and Probability STAT 428 Share QuestionEmailCopy link Comments (0)