In: Math
2.1. The following data are an i.i.d. sample from a Cauchy(θ, 1)
distribution: 1.77, -0.23, 2.76, 3.80, 3.47, 56.75, -1.34, 4.24,
-2.44, 3.29, 3.71, -2.40, 4.53, -0.07, -1.05, -13.87, -2.53, -1.75,
0.27, 43.21.
a. Graph the log likelihood function. Find the MLE for θ using the
Newton–Raphson method. Try all of the following starting points:
-11, -1, 0, 1.5, 4, 4.7, 7, 8, and 38. Discuss your results. Is the
mean of the data a good starting point?
Please submit the code in R, thanks.