Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Engineering Mathematics

Authors: ERWIN KREYSZIG

9th Edition

0471488852, 978-0471488859

More Books

Students also viewed these Mathematics questions

Question

u = 5 j , v = 6 i Find the angle between the vectors.

Answered: 1 week ago

Question

LO5.2 Discuss government failure and explain why it happens.

Answered: 1 week ago