A general method for finding a confidence interval for the difference between two means of normal populations

Question:

A general method for finding a confidence interval for the difference between two means of normal populations 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.

a. Let nX = 10, nY = 10, σX = 1, and σY = 1. Generate 10,000 pairs of samples: X1, . . . , XnX from a N(0, σ2X ) distribution, and Y1 , . . . , YnY from a N(0, σ2Y ) 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. 

b. Repeat part (a), using nX = 10, nY = 10, σX = 1, and σY = 5.

c. Repeat part (a), using nX = 5, nY = 20, σX = 1, and σY = 5.

d. Repeat part (a), using nX = 20, nY = 5, σX = 1, and σY = 5.

e. 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.)

f. Based on the results in parts (a) through (d), under which conditions does the pooled method perform most poorly?

i. When the sample sizes are equal and the variances differ.

ii. When both the sample sizes and the variances differ, and the larger sample comes from the population with the larger variance.

iii. When both the sample sizes and the variances differ, and the smaller sample comes from the population with the larger variance.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: