Write a program in (mathrm{R}) that simulates 1000 samples of size (n) from a (mathrm{N}(theta, 1)) distribution.

Question:

Write a program in \(\mathrm{R}\) that simulates 1000 samples of size \(n\) from a \(\mathrm{N}(\theta, 1)\) distribution. For each sample compute the sample mean given by \(\bar{X}_{n}\) and the Hodges super-efficient estimator \(\hat{\theta}_{n}=\bar{X}_{n}+(a-1) \bar{X}_{n} \delta_{n}\) where \(\delta_{n}=\) \(\delta\left\{\left|\bar{X}_{n}ight| ;\left[0, n^{-1 / 4}ight)ight\}\). Using the results of the 1000 simulated samples estimate the standard error of each estimator for each combination of \(n=5,10,25\), 50 , and 100 and \(a=0.25,0.50,1.00\) and 2.00. Repeat the entire experiment once for \(\theta=0\) and once for \(\theta=1\). Compare the estimated standard errors of the two estimators for each combination of parameters given above and comment on the results in terms of the theory presented in Example 10.9.

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: