In SubsectionΒ 10.3.2 we compare the average against the mid-range as estimators of the expectation of the measurement. The goal of this exercise is to repeat the analysis, but this time compare the average to the median as estimators of the expectation in symmetric distributions.
-
Simulate the sampling distribution of average and the median of a sample of size \(n=100\) from the \(\mathrm{Normal}(3,2)\) distribution. Compute the expectation and the variance of the sample average and of the sample median. Which of the two estimators has a smaller mean square error?
-
Simulate the sampling distribution of average and the median of a sample of size \(n=100\) from the \(\mathrm{Uniform}(0.5,5.5)\) distribution. Compute the expectation and the variance of the sample average and of the sample median. Which of the two estimators has a smaller mean square error?
