A general, method for finding a confidence interval for
Chapter 5, Problem 10E(choose chapter or problem)
A general method for finding a confidence interval for the difference between two means of normal popu- lations is given by expression (5.21) on page 365. A pooled method that can be used when the variances of the populations are known to be equal is given by expression (5.22) on page 367. This exercise is designed to compare the coverage probabilities of these methods under a variety of conditions. A fair amount of coding may be required, depending on the software used.
Let nX = 10, nY = 10, σX = 1, and σY = 1. Generate 10,000 pairs of samples: \(X_{1}^{*}, \ldots, X_{n_{x}}^{*}\) from a N(0, \(\sigma_{x}^{2}\)) distribution, and \(Y_{1}^{*}, \ldots, Y_{n_{y}}^{*}\) from a N(0, \(\sigma_{y}^{2}) ) distribution. For each pair of samples, compute a 95% confidence interval using the general method, and a 95% confidence interval using the pooled method. Note that each population has mean 0, so the true difference between the means is 0. Estimate the coverage probability for each method by computing the proportion of confidence intervals that cover the true value 0.Repeat part (a), using \(n_{x}\) = 10, \(n_{y}\) = 10, \(\sigma_{x}\) = 1, and \(\sigma_{y}\) = 5.Repeat part (a), using \(n_{x}\) = 5, \(n_{y}\) = 20, \(\sigma_{x}\) = 1, and \(\sigma_{y}\) = 5.Repeat part (a), using \(n_{x}\) = 20, \(n_{y}\) = 5, \(\sigma_{x}\) = 1, and \(\sigma_{y}\) = 5.Does the coverage probability for the general method differ substantially from 95% under any of the conditions in parts (a) through (d)? (It shouldn’t.)Based on the results in parts (a) through (d), under which conditions does the pooled method perform most poorly?When the sample sizes are equal and the variances differ.When both the sample sizes and the variances differ, and the larger sample comes from the population with the larger variance. When both the sample sizes and the variances differ, and the smaller sample comes from the population with the larger variance.
Equation transcription:
Text transcription:
N_{x}
n_{y}
\sigma_{x}
\sigma_{y}
X_{1}^{*}, \ldots, X_{n_{x}}^{*}
\sigma_{x}^{2}
Y_{1}^{*}, \ldots, Y_{n_{y}}^{*}
\sigma_{y}^{2}
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer