Question: 5. (a) Generate X1,- . . ,Xn from N(0, 1) and Y1, . . .,Y;,, from N(0.5,1.5). Consider testing Hg : #x pry = 0

 5. (a) Generate X1,- . . ,Xn from N(0, 1) and

5. (a) Generate X1,- . . ,Xn from N(0, 1) and Y1, . . .,Y;,, from N(0.5,1.5). Consider testing Hg : #x pry = 0 vs Ha : pix pry s 0. Compute the pvalue from two sample ttest. Repeat this process 1000 times. Estimate the empirical power for this test at a = 0.05 for n = 10, 20, 30, ..., 100. Based on your plot, what is the minimum sample size to achieve power > 80%. (b) An approximate sample size formula for comparing two population means using zrtest for the hypothesis in (a) is n = (m + was; + as (#x #142 Compare your results in (a) to this sample size formula. (Note: You do not need to show how the formula is derived.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

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

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!