Statistical Computing Activity #4

Create an R script, markdown file, or notebook to compare and contrast the simulated distributions of the method of moments and maximum likelihood estimators for the U(0, theta) distribution that were dervied in class. (See our class notes from October 9, 2020.) Which estimator do you prefer? Why? Provide a justification based on your simulation results.