Question

In: Statistics and Probability

We have a random sample of size 10 from a normal distribution. We wish to estimate...

We have a random sample of size 10 from a normal distribution. We wish to estimate the population mean. Damjan suggests taking the average of the sample minimum and sample maximum. Allan thinks this will be a poor estimator and says we should use the sample mean instead. Do a simulation in R to compare these two estimators in terms of their bias and variance. Include a side-by-side boxplot that compares their sampling distributions.

Solutions

Expert Solution

We take 100 simulations at n=10

R-code with output-

> n=10
> sim=100
> th=2        ### Mean
> cnt=0
> eps=0.1
> for(i in 1:sim)
+ {
+   x=rnorm(n,th,2.3)
+   Tn=(min(x)+max(x))/2
+   if(abs(Tn-th)<eps)
+   {
+     cnt=cnt+1
+   }
+ }
> cnt
[1] 7
> prob=cnt/sim
> prob
[1] 0.07
>bias= Tn -th
>bias
[1] 0.6669769
> n=10
> sim=100
> th=2
> cnt=0
> eps=0.1
> for(i in 1:sim)
+ {
+   x=rnorm(n,th,2.3)
+   Tn=mean(x)
+   if(abs(Tn-th)<eps)
+   {
+     cnt=cnt+1
+   }
+ }
> cnt
[1] 14
> prob=cnt/sim
> prob
[1] 0.14

>bias= Tn -th
>bias

[1] -1.418102

_________________________________________________________________________________________

In 100 simulations to estimate mean(th), if we use estimator Tn=(min(x)+max(x))/2 then probability of estimating th (mean) is 0.07 and it's bias is 0.6669769 and if we use estimator Tn=mean(x) then probability of estimating th (mean) is 0.14 this means Tn=mean(x) is a good estimator and its bias is -1.418102 which is 0.


Related Solutions

We have a random sample of size 10 from a normal distribution. We wish to estimate...
We have a random sample of size 10 from a normal distribution. We wish to estimate the population mean. joseph suggests taking the average of the sample minimum and sample maximum.steve thinks this will be a poor estimator and says we should use the sample mean instead. Do a simulation in R to compare these two estimators in terms of their bias and variance. Include a side-by-side boxplot that compares their sampling distribut showing R output also
For this question assume that we have a random sample from a normal distribution with unknown...
For this question assume that we have a random sample from a normal distribution with unknown mean but known variance. (a) Suppose that we have 36 observations, the sample mean is 5, and the population variance is 9. Construct a 95% confidence interval for the population mean. (b) Repeat the preceding with a population variance of 25 rather than 9. (c) Repeat the preceding with a sample size of 25 rather than 36. (d) Repeat the preceding but construct a...
We have a random sample of size n (which is large), and we wish to test...
We have a random sample of size n (which is large), and we wish to test - Ho: X~UNIF(0,1) vs Ha: X~exp(1). How would you conduct hypothesis testing? Describe procedure.
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to...
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to test H0: μ=10 versus H1: μ=10. The sample moments are x ̄ = 13.4508 and s2 = 65.8016. (a) Find the critical region C and test the null hypothesis at the 5% level. What is your decision? (b) What is the p-value for your decision? (c) What is a 95% confidence interval for μ?
A random sample of size 16 from a normal distribution with known population standard deviation �...
A random sample of size 16 from a normal distribution with known population standard deviation � = 3.1 yields sample average � = 23.2. What probability distribution should we use for our sampling distributions of the means? a) Normal Distribution b) T-distribution c) Binomial Distribution d) Poisson Distribution What is the error bound (error) for this sample average for a 90% confidence interval? What is the 90% confidence interval for the population mean?
We draw a random sample of size 49 from a normal population with variance 2.1. If...
We draw a random sample of size 49 from a normal population with variance 2.1. If the sample mean is 21.5, what is a 99% confidence interval for the population mean?
A random sample of size 22 from a normal distribution has standard deviation =s50 . Test...
A random sample of size 22 from a normal distribution has standard deviation =s50 . Test =:H0σ58 versus ≠:H1σ58 . Use the =α0.10 level of significance.
Let x be a normal distribution with sigma equals 8 . A random sample size of...
Let x be a normal distribution with sigma equals 8 . A random sample size of 16 has sample mean 50. a) Construct the 90% confidence interval for the population mean mu. b)interpret the confidence interval computed in an above.
Suppose, for a random sample selected from a normal population, we have the values of the...
Suppose, for a random sample selected from a normal population, we have the values of the sample mean x ̄ = 67.95 and the standard deviation s = 9. a. Construct a 95% confidence interval for population mean μ assuming the sample size n = 16. b. Construct a 90% confidence interval for population mean μ assuming n = 16. c. Obtain the width of the confidence intervals calculated in a and b. Is the width of 90% confidence interval...
Suppose we wish to generate a sample from the exponential ($\beta$) distribution, and only have access...
Suppose we wish to generate a sample from the exponential ($\beta$) distribution, and only have access to a computer which generates numbers from the skew logistic distribution. It turns out that if $X$~SkewLogistic ($\beta$), then log(1+exp($-X$)) is exponential ($\beta$). Show that this is true and check by simulation that this transformation is correct.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT