Question: Answer two and three 2. (25 pts) Marimum Likelihood Estimation. Consider the data sequence { 71, T2, . . . , In } of length
Answer two and three

2. (25 pts) Marimum Likelihood Estimation. Consider the data sequence { 71, T2, . . . , In } of length n - 100000 provided in the file 'data. txt'. It is known that the data is normally distributed. However, the mean / and variance o? of this normal dis- tribution is unknown. In this problem, you are required to estimate / and o using methods learned in the course. Assume that the data points are i.i.d. random vari- ables {X1, X2, X's, . . ., X} where each X. ~ N(#, ?). The data set { 71, 12, . . ., In } provided in 'data. txt are the observed value of these random variables. You will determine u and o for the data so that the data matches to its most likely Gaussian bell curve. Mathematically, you determine a and o that maximize the probability of observing the data given the choice of u and o. Let fx, x2,.x, (11, 12, 13, . . . , In | #, 0 ) be the joint density of the RVs {X1, X2, Xs, .. ., X, } evaluated at our data points {21, 12, . . . , Im } given our choice of # and o. Note that fx, X2,.,x. (11, 12, 13, . . .; In | #, G) is a function of # and o. The maximum likelihood estimates AMLE and OMLE for / and o are found as follows: HMLE - argmax log (fx, x2. .x. (F1, 72, 23, - . . , In | 4, G)) (1) OMLE - argmax log (fx, x,.,x. (F1, 22, F3, . . . , In | HMLE, ")) (2) where log is taken to the base e. Note that we use the AMLE from Eqn. (1) in Eqn. (2) (a) Analytically show that log (fX1,X....X.. (21, 72, 23. . . . . ". | p, .)) - - log 2402 -) (2 -/)? 202 In this part of the problem, you need to mathematically (i.e., by hand) prove that the above equation is true. Clearly show and explain all the steps that you use in your proof. (b) Find analytical expressions for AMLE and OMLE in terms of the data { 71, 12, . .., In} by using the equation derived in (a) in Eqn. (1) and (2). For the data provided in 'data. txt', find the values of AMLE and OMZE using the analytical expressions derived. The first part of the question needs to be solved by hand to find analytical expressions for #MLE and OMLE. Clearly show all your work in obtaining the analytical expressions. For the next part, write a code to find the AMLE and OMLE values for the data in 'data. txt'. and provide screenshots of the #MLE and GMLE outputs that your get when you run your code. (c) Plot the PDF of X, by plotting the histogram of the data {21, 72, . .., In} in 'data. txt'. For the AMLE and OMLE obtained in (b), superimpose the histogram with the PDF of a Gaussian random variable with mean AMLE and variance MLE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
