This exercise requires ideas from Section 2.6. In a two-sample experiment, when each item in one sample
Question:
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 H0 :μX − μY = 0 versus H1 :μX −μ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 X∗1i, . . . , X∗8i froman N(0, 1) population and 10,000 samples Y∗1i, . . . , Y∗8i from an N(1, 1) population. The random variables X∗ki and Y∗ki are independent in this experiment, so their correlation is 0. For each sample, compute the test statistics D̅∗/(s∗D/√8)and D̅∗/(s∗p/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 X∗1i, . . . , X∗8i from an N(0, 1) population. This time, instead of generating the values Y∗ independently, generate them so the correlation between X∗ki and Y∗ki is 0.8. This can be done as follows: Generate 10,000 samples Z∗1i, . . . , Z8i from an N(0, 1) population, independent of the X∗ values. Then compute Yki = 1 + 0.8 X∗ki + 0.6 Z∗ki. The sample Y∗1i, . . . , Y∗8i will come from an N(1, 1) population, and the correlation between X∗ki and Y∗ki will be 0.8, which means that large values of X∗ki will tend to be paired with large values of Y∗ki, and vice versa. Compute the test statistics and estimate the power of both tests, as in part (a). Which test has greater power?
DistributionThe word "distribution" has several meanings in the financial world, most of them pertaining to the payment of assets from a fund, account, or individual security to an investor or beneficiary. Retirement account distributions are among the most...
Step by Step Answer: