Question: I need to code this in MATLAB (a) Generate a random sample of size 500 from Gamma (2,3), where we assume a=2 is fixed and
I need to code this in MATLAB

(a) Generate a random sample of size 500 from Gamma (2,3), where we assume a=2 is fixed and B is to be estimated. This is your raw data. (b) Use the Newton-Raphson method to obtain the MLE for B. Compare the estimate with the MME for B. (see the note for the MME) (c) Plot the log likelihood over the sample space for Band indicate the location of the MLE in the plot. (a) Generate a random sample of size 500 from Gamma (2,3), where we assume a=2 is fixed and B is to be estimated. This is your raw data. (b) Use the Newton-Raphson method to obtain the MLE for B. Compare the estimate with the MME for B. (see the note for the MME) (c) Plot the log likelihood over the sample space for Band indicate the location of the MLE in the plot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
