This exercise requires ideas from Section 2.6. In a two-sample experiment, when each item in one sample is paired with an item in the other,

Answered step by step
Verified Expert Solution
Question
71 users unlocked this solution today!

This exercise requires ideas from Section 2.6. In a two-sample experiment, when each item in one sample is paired with an item in the other, the paired t test (Section 6.8) can be used to test hypotheses regarding the difference between two population means. If one ignores the fact that the data are paired, one can use the two-sample t test (Section 6.7) as well. The question arises as to which test has the greater power. The following simulation experiment is designed to address this question. 

Let (X1, Y1), . . . , (X8, Y8) be a random sample of eight pairs, with X1, . . . , X8 drawn from an N(0, 1) population and Y1, . . . , Y8 drawn from an N(1, 1) population. It is desired to test H0X − μY = 0 versus H1X −μY = 0. Note that μX = 0 and μY = 1, so the true difference between the means is 1. Also note that the population variances are equal. If a test is to be made at the 5% significance level, which test has the greater power?

Let Di = Xi − Yi for i = 1, . . . , 10. The test statistic for the paired t test is D̅/(sD/√8), where sD is the standard deviation of the Di (see Section 6.8). Its null distribution is Student’s t with seven degrees of freedom. Therefore the paired t test will reject H0 if | D̅/(sD/√8)| > t7,.025 = 2.365, so the power is √(|D̅/(sD/√8)| > 2.365). 

For the two-sample t test when the population variances are equal, the test statistic is D̅/(sp√1/8 + 1/8) = D̅/(sp/2), where sp is the pooled standard deviation, which is equal in this case to p(s2X+ s2Y )/2. (See page 443. Note that D̅ =X –Y̅.) The null distribution is Student’s t with 14 degrees of freedom. Therefore the two-sample t test will reject H0 if | D̅/(sp√1/8 + 1/8)| > t14,.025 = 2.145, and the power is P(|D̅/(sp√1/8 + 1/8)| > 2.145). The power of these tests depends on the correlation between Xi and Yi .

a. Generate 10,000 samples X1i, . . . , X8i froman N(0, 1) population and 10,000 samples Y1i, . . . , Y8i from an N(1, 1) population. The random variables Xki and Yki are independent in this experiment, so their correlation is 0. For each sample, compute the test statistics D̅/(sD/√8)and D̅/(sp/2). Estimate the power of each test by computing the proportion of samples for which the test statistics exceeds its critical point (2.365 for the paired test, 2.145 for the two sample test). Which test has greater power?

b. As in part (a), generate 10,000 samples X1i, . . . , X8i from an N(0, 1) population. This time, instead of generating the values Y independently, generate them so the correlation between Xki and Yki is 0.8. This can be done as follows: Generate 10,000 samples Z1i, . . . , Z8i from an N(0, 1) population, independent of the X values. Then compute Yki = 1 + 0.8 Xki + 0.6 Zki. The sample Y1i, . . . , Y8i will come from an N(1, 1) population, and the correlation between Xki and Yki will be 0.8, which means that large values of Xki will tend to be paired with large values of Yki, and vice versa. Compute the test statistics and estimate the power of both tests, as in part (a). Which test has greater power?

Step by Step Solution

3.47 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Link Copied!

Step: 1

a The power of the twosample test is approximately 046 and t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

100% Satisfaction Guaranteed-or Get a Refund!

Step: 2Unlock detailed examples and clear explanations to master concepts

blur-text-image_2

Step: 3Unlock to practice, ask and learn with real-world examples

blur-text-image_3

See step-by-step solutions with expert insights and AI powered tools for academic success

  • tick Icon Access 30 Million+ textbook solutions.
  • tick Icon Ask unlimited questions from AI Tutors.
  • tick Icon Order free textbooks.
  • tick Icon 100% Satisfaction Guaranteed-or Get a Refund!

Claim Your Hoodie Now!

Recommended Textbook for

Statistics For Engineers And Scientists

Authors: William Navidi

4th Edition

73401331, 978-0073401331

More Books
flashcard-anime

Study Smart with AI Flashcards

Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge

Explore Flashcards

Students Have Also Explored These Related Statistics Engineers Scientists Questions!