Question: Write the code that will compute the log likelihood over the entire dataset. Report the log likelihood for each of the three considered estimates of
Write the code that will compute the log likelihood over the entire dataset. Report the log likelihood for each of the three considered estimates
of theta Which of the estimates gives the highest loglikelihood?
# Please write your code below
thetahats
Answer:
Question :
Finding the Maximum Likelihood Estimator
We want to find the parameter value hat that makes our data set most likely:
hat
As shown in lecture, we know that hat for the MLE and the one that minimizes MSE is:
hathat
Compute and report thetahatMLE using the formula above
#################################################################################################################################
# Compute thetahatMLE
Plot the log likelihood for thetas at a range of values between and Does the peak of this curve match the value calculated above?
### generate plot of the curve below and you can estimate the peak by eye
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
