Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started