Question: rcode please 1. (30 points) Let X be a random variable with variance o'. Given a random sample X1, ..., Xn, the usual estimator of

rcode please

rcode please 1. (30 points) Let X be a random variable with

1. (30 points) Let X be a random variable with variance o'. Given a random sample X1, ..., Xn, the usual estimator of o is the sample variance given by $2 E (Xi - X). n - 1=1 Another estimator for o is the Inter-Quartile Range which is defined as the difference between the 3rd quartile and the 1st quartile: IQR = Q3 - Q1, where Q1 is the 25th quantile and Q3 is the 75th quantile. In R, S' is computed using the command var and the IQR is computed using the command IQR. Conduct a small Monte Carlo study to compare the performance of the two estimators S' and IQR when used for estimating the variance oz of (i) the N(u = 0,02 =1) distribution and (ii) a contaminated normal distribution defined by 0.95N (0, 1) + 0.05N(2, 1) for which the variance o' = 1.99. Use m = 10, 000 Monte Carlo samples each of size n = 50 from each distribution to compare the bias, variance and MSE of the two estimators. Comment on your results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!