Question: 4. (a) ('3) Generate X1, . ..,X20 from N(0,1). Consider testing H0 : n = 0 vs Ha : a 79 0. Compute the pvalue

 4. (a) ('3) Generate X1, . ..,X20 from N(0,1). Consider testing

4. (a) ('3) Generate X1, . ..,X20 from N(0,1). Consider testing H0 : n = 0 vs Ha : a 79 0. Compute the pvalue from (1) one sample ttest and (2) exact wilcoxon signed rank test. Repeat this prooess 1000 times. Estimate the empirical Type I error for both tests at o: = 0.05. (Hint: Empirical Type I error is the proportion of wrongly rejected null hypothesis). Now generate X1, . .. ,ng from N(0.5,1). Consider testing H0 : a = 0 vs Ha : p: % 0. Compute the pvalue from [1) one sample ttest and (2) exact wilcoxon signed rank test. Repeat this process 1000 times Estimate the empirical power for both tests at a = 0.05

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!